:root {
  color-scheme: light;
  --bg: #f8f3ee;
  --surface: #fffaf5;
  --surface-strong: #ffffff;
  --text: #211d1b;
  --muted: #6b625c;
  --line: #e4d9cf;
  --brand: #183a59;
  --brand-dark: #0d253d;
  --accent: #c66f5c;
  --sky: #edf3f6;
  --blush: #fff0eb;
  --sand: #f7eadb;
  --success: #65724f;
  --radius: 8px;
  --shadow: 0 18px 48px rgba(33, 29, 27, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  max-width: 1120px;
  margin: 0 auto;
  background: var(--surface);
  min-height: 100vh;
}

.dashboard-shell {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 100vh;
  background: linear-gradient(180deg, #ffffff 0, #fbf7f2 260px, #f8f3ee 100%);
  padding-bottom: 32px;
}

.agency-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-strong);
  position: sticky;
  top: 0;
  z-index: 10;
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: var(--surface-strong);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.agency-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: white;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 760;
}

.agency-name {
  margin: 0;
  font-weight: 750;
}

.agency-contact {
  margin-left: auto;
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration: none;
}

.secondary-link {
  margin-left: auto;
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration: none;
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.topbar-actions .secondary-link,
.topbar-logout .secondary-link {
  margin-left: 0;
}

.topbar-logout {
  display: block;
  gap: 0;
}

.topbar-logout button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.login-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 20px;
  background: #fbf7f2;
}

.login-panel {
  width: min(420px, 100%);
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: 0 8px 22px rgba(58, 42, 26, 0.06);
}

.login-panel h1 {
  font-size: 2.2rem;
}

.hero {
  display: grid;
  gap: 0;
  background: var(--surface-strong);
}

.public-hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
  background: var(--brand-dark);
}

.public-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(9, 24, 39, 0.78) 0%, rgba(9, 24, 39, 0.52) 48%, rgba(9, 24, 39, 0.18) 100%),
    linear-gradient(0deg, rgba(9, 24, 39, 0.42), rgba(9, 24, 39, 0.08));
}

.hero-photo {
  display: block;
  width: 100%;
  height: 260px;
  min-height: 260px;
  object-fit: cover;
  object-position: center 46%;
}

.public-hero .hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  height: 100%;
  min-height: 100%;
  object-position: center;
}

.hero-content {
  padding: 24px 18px 28px;
}

.public-hero .hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: end;
  justify-items: start;
  min-height: inherit;
  max-width: 640px;
  padding: 56px 24px 48px;
  color: white;
}

.public-hero .eyebrow,
.public-hero .event-date,
.public-hero .intro {
  color: rgba(255, 255, 255, 0.9);
}

.public-hero h1 {
  max-width: 9ch;
  text-wrap: balance;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.24);
}

.public-hero .intro {
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.public-hero .primary-cta {
  background: #ffffff;
  color: var(--brand-dark);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.unpublished-panel {
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: calc(100vh - 59px);
  padding: 32px 18px;
  background: var(--surface-strong);
}

.unpublished-panel p:not(.eyebrow):not(.event-date) {
  max-width: 48ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 9vw, 4.2rem);
  line-height: 0.98;
}

h2 {
  margin: 0;
  font-size: 1.5rem;
}

h3 {
  margin: 10px 0 8px;
  font-size: 1.1rem;
}

.event-date {
  margin: 10px 0 0;
  color: var(--brand-dark);
  font-weight: 800;
}

.intro {
  margin: 18px 0 22px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 54ch;
}

.primary-cta,
.secondary-cta,
.gift-action {
  min-height: 44px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 760;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
}

.primary-cta {
  background: var(--brand);
  color: white;
  box-shadow: 0 8px 20px rgba(24, 58, 89, 0.22);
}

.primary-cta:hover,
.gift-action:hover {
  transform: translateY(-1px);
}

.primary-cta:disabled,
.secondary-cta:disabled,
.secondary-button:disabled,
.mini-action-button:disabled,
.gift-action:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
}

.secondary-cta {
  background: var(--sky);
  color: var(--brand-dark);
}

.secondary-button,
.text-button,
.task-row button,
.link-box button {
  min-height: 40px;
  border: 1px solid #d7dce0;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--brand-dark);
  cursor: pointer;
  font-weight: 800;
  padding: 0 12px;
}

.secondary-button,
.text-button,
.mini-action-button {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.text-button {
  border-color: transparent;
  background: transparent;
}

.trust-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: #e7ded5;
  border-block: 1px solid var(--line);
}

.trust-panel > div {
  background: #ffffff;
  padding: 16px 20px;
}

.trust-panel strong,
.trust-panel span {
  display: block;
}

.trust-panel span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.94rem;
}

.section-block {
  padding: 34px 18px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-lead {
  max-width: 62ch;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.gift-grid {
  display: grid;
  gap: 14px;
}

.funding-goal-card {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
  padding: 20px;
  border: 1px solid #e6cfc6;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff5f1 0, #ffffff 100%);
  box-shadow: 0 14px 34px rgba(74, 43, 35, 0.08);
}

.funding-goal-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.funding-progress {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.funding-progress-bar {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #eadbd2;
}

.funding-progress-bar span {
  display: block;
  height: 100%;
  max-width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.funding-meta.strong {
  color: var(--brand-dark);
  font-weight: 800;
}

.funding-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
  padding: 12px;
  border: 1px solid #eadbd2;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.funding-actions-title {
  grid-column: 1 / -1;
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.funding-actions .gift-action,
.funding-actions .secondary-button {
  width: 100%;
  margin-left: 0;
}

.gift-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(58, 42, 26, 0.07);
  display: grid;
  grid-template-rows: auto 1fr;
}

.gift-image {
  min-height: 176px;
  background-size: cover;
  background-position: center;
}

.image-kyoto {
  background-image: url("https://images.unsplash.com/photo-1493976040374-85c8e12f0c0e?auto=format&fit=crop&w=900&q=80");
}

.image-temple {
  background-image: url("https://images.unsplash.com/photo-1526481280693-3bfa7568e0f3?auto=format&fit=crop&w=900&q=80");
}

.image-sea {
  background-image: url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=900&q=80");
}

.gift-body {
  display: grid;
  align-content: start;
  padding: 18px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef1ea;
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 800;
}

.status-badge.almost {
  background: #fff1dc;
  color: #9a5d16;
}

.status-badge.warning {
  background: #fff1dc;
  color: #9a5d16;
}

.status-badge.success {
  background: #eef1ea;
  color: var(--success);
}

.status-badge.free {
  background: #edf3f6;
  color: var(--brand-dark);
}

.status-badge.external {
  background: #f0ece7;
  color: #6f5a47;
}

.gift-card.external-proposal {
  border-color: #d8c8bc;
  background: #fffaf4;
}

.gift-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.gift-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.gift-footer strong {
  font-size: 1.1rem;
}

.gift-action {
  margin-left: auto;
  background: var(--brand-dark);
  color: white;
  min-width: 92px;
}

.gift-footer .mini-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  text-decoration: none;
}

.free-amount {
  background: var(--blush);
  border-color: #efcbb8;
}

.payment-note {
  background: #edf3f6;
  border-top: 1px solid #d8e1e6;
}

.payment-note p {
  color: var(--muted);
  line-height: 1.55;
}

.dashboard-hero {
  display: grid;
  gap: 18px;
  padding: 28px 18px;
  background: var(--surface-strong);
  border-bottom: 1px solid var(--line);
}

.dashboard-hero h1 {
  font-size: clamp(2rem, 8vw, 3.4rem);
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.metric-card,
.panel {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(58, 42, 26, 0.06);
}

.metric-card {
  padding: 16px;
  min-height: 112px;
}

.metric-card strong {
  display: block;
  font-size: 1.65rem;
  line-height: 1.1;
}

.metric-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.metric-card.warning {
  border-color: #e5bd7c;
  background: #fff8ea;
}

.dashboard-layout {
  display: grid;
  gap: 16px;
  padding: 0 18px 18px;
}

.funding-dashboard-panel {
  margin: 0 18px 18px;
}

.funding-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.funding-dashboard-grid div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
}

.funding-dashboard-grid span,
.funding-dashboard-grid strong {
  display: block;
}

.funding-dashboard-grid span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.lists-layout {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.panel {
  padding: 18px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.task-list,
.contribution-list,
.list-overview {
  display: grid;
  gap: 10px;
}

.task-row,
.contribution-row,
.list-row {
  display: grid;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
}

.task-row {
  grid-template-columns: auto 1fr auto;
}

.task-row:first-child {
  border-color: #e6bd86;
  background: #fff8ea;
}

.task-row p,
.contribution-row p,
.list-row p,
.public-link-panel p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.task-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
}

.warning-dot {
  background: var(--accent);
}

.amount-status {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.inline-action-form {
  display: block;
}

.mini-action-button {
  min-height: 34px;
  border: 1px solid #d7dce0;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--brand-dark);
  cursor: pointer;
  font-weight: 800;
  padding: 0 10px;
}

.list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contribution-page-panel {
  margin: 0 16px;
}

.contribution-row-detailed {
  align-items: start;
}

.contribution-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.contribution-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.dedication-box {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #edf3f6;
  color: var(--brand-dark);
  line-height: 1.45;
}

.dedication-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
}

.couple-dedications-panel {
  order: -1;
}

.dedication-card blockquote {
  margin: 0;
  color: var(--brand-dark);
  line-height: 1.5;
}

.dedication-card strong,
.dedication-card span {
  display: block;
}

.dedication-card span,
.empty-state,
.muted-note {
  color: var(--muted);
}

.empty-state {
  margin: 0;
  line-height: 1.45;
}

.public-link-panel {
  display: grid;
  gap: 14px;
  margin: 0 16px;
}

.guest-share-panel {
  border-color: #e6cfc6;
  background: linear-gradient(180deg, #ffffff 0, #fff8f4 100%);
}

.share-message-preview {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #eadbd2;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--brand-dark);
  line-height: 1.5;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.share-actions > * {
  min-width: 154px;
}

.share-box {
  display: grid;
  gap: 12px;
}

.qr-box {
  width: min(168px, 100%);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.qr-box img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
}

.setup-layout {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.setup-form {
  display: grid;
  gap: 16px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.setup-toggle {
  margin-top: 6px;
}

.setup-gift-list {
  display: grid;
  gap: 12px;
  margin-top: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
}

.setup-gift-list > div:first-child {
  border-bottom: 1px solid #eee5dc;
  padding-bottom: 10px;
}

.share-setup-section {
  border-color: #e6cfc6;
  background: linear-gradient(180deg, #ffffff 0, #fff8f4 100%);
}

.setup-share-preview {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid #eadbd2;
  border-radius: var(--radius);
  background: #ffffff;
}

.setup-share-preview span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.setup-share-preview p {
  margin: 0;
  color: var(--brand-dark);
  line-height: 1.45;
}

.section-help {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.list-mode-options {
  display: grid;
  gap: 8px;
}

.mode-option {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  cursor: pointer;
}

.mode-option:has(input:checked) {
  border-color: #d99987;
  background: #fff0eb;
}

.mode-option input {
  min-height: auto;
  margin-top: 3px;
}

.mode-option strong,
.mode-option small {
  display: block;
}

.mode-option small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
}

.cover-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f3eee7;
  aspect-ratio: 16 / 9;
}

.is-primary-control {
  padding: 12px;
  border: 1px solid #d7dce0;
  border-radius: var(--radius);
  background: #fbf7f2;
}

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

.cover-control {
  display: grid;
  gap: 8px;
}

.cover-upload-box {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px dashed #d7b8ad;
  border-radius: var(--radius);
  background: #fff5f1;
}

.cover-upload-box input {
  border-color: #d7dce0;
  background: #ffffff;
}

.cover-upload-box p {
  margin: 0;
  line-height: 1.4;
}

.cover-url-details {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.cover-url-details summary {
  width: fit-content;
  color: var(--brand-dark);
  cursor: pointer;
  font-weight: 800;
}

.cover-url-details label {
  display: block;
  margin-top: 10px;
}

.setup-gift-row {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.setup-gift-row.is-external-proposal {
  border-color: #d8c8bc;
  background: #fffaf4;
}

.setup-gift-toggle {
  margin: 0;
}

.setup-gift-description {
  display: grid;
  gap: 6px;
}

.setup-gift-hint {
  margin: 0;
}

.setup-status p {
  color: var(--muted);
  line-height: 1.45;
}

.publication-timeline {
  display: grid;
  gap: 10px;
  margin: 16px 0 4px;
  padding: 0;
  list-style: none;
}

.publication-timeline.compact {
  margin-bottom: 0;
}

.publication-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  color: var(--muted);
}

.publication-step span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--muted);
  font-weight: 850;
}

.publication-step strong,
.publication-step small {
  display: block;
}

.publication-step small {
  margin-top: 2px;
  font-size: 0.86rem;
}

.publication-step.is-done,
.publication-step.is-current {
  color: var(--text);
}

.publication-step.is-done span {
  border-color: #d8d9c8;
  background: #f2f3ea;
  color: var(--success);
}

.publication-step.is-current span {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
}

.form-success {
  margin: 0 0 12px;
  border: 1px solid #d8d9c8;
  border-radius: var(--radius);
  background: #f2f3ea;
  color: #4f5f3d;
  font-weight: 750;
  line-height: 1.35;
  padding: 10px 12px;
}

.issue-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.link-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px dashed #d9c5bb;
  border-radius: var(--radius);
  background: #edf3f6;
}

.link-box code {
  color: var(--brand-dark);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 16, 0.52);
}

.modal-card {
  position: absolute;
  inset-inline: 10px;
  bottom: 10px;
  max-height: calc(100vh - 20px);
  overflow: auto;
  scrollbar-gutter: stable;
  background: var(--surface-strong);
  border-radius: 12px 12px var(--radius) var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 20px 20px;
}

.modal-card form {
  gap: 6px;
}

.modal-card h2 {
  margin-bottom: 2px;
}

.modal-card label {
  margin-top: 2px;
}

.modal-card input {
  min-height: 36px;
}

.modal-card textarea {
  min-height: 64px;
}

.modal-card .full-width {
  margin-top: 6px;
}

.icon-button {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--text);
  cursor: pointer;
}

form {
  display: grid;
  gap: 10px;
}

.form-error {
  margin: 0;
  border: 1px solid #e5bd7c;
  border-radius: var(--radius);
  background: #fff8ea;
  color: #7a4300;
  font-weight: 750;
  line-height: 1.35;
  padding: 10px 12px;
}

label {
  font-weight: 750;
  margin-top: 6px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 44px;
  padding: 10px 12px;
  background: white;
  color: var(--text);
}

textarea {
  resize: vertical;
}

.amount-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
}

.amount-row span {
  color: var(--muted);
  font-weight: 800;
}

.checkbox-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.35;
}

.checkbox-row input {
  min-height: auto;
  margin-top: 2px;
}

.full-width {
  width: 100%;
  margin-top: 10px;
}

.confirmation {
  display: grid;
  gap: 12px;
}

.payment-box {
  background: #f7f3ed;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.fine-print {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.94rem;
}

dl {
  margin: 0;
}

dl div + div {
  margin-top: 12px;
}

dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

dd {
  margin: 4px 0 0;
  font-weight: 750;
}

dd {
  display: grid;
  gap: 8px;
}

.copy-button {
  width: fit-content;
  min-height: 34px;
  border: 1px solid #d7dce0;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--brand-dark);
  cursor: pointer;
  font-weight: 800;
  padding: 0 12px;
}

@media (max-width: 719px) {
  .public-hero {
    min-height: 500px;
  }

  .public-hero .hero-content {
    padding: 44px 18px 38px;
  }

  .public-hero h1 {
    font-size: clamp(2.8rem, 14vw, 4rem);
  }

  .dashboard-topbar,
  .agency-strip {
    align-items: flex-start;
  }

  .topbar-actions {
    gap: 8px;
    font-size: 0.92rem;
  }

  .dashboard-actions {
    width: 100%;
  }

  .dashboard-actions > * {
    flex: 1 1 auto;
  }

  .funding-actions {
    grid-template-columns: 1fr;
  }

  .task-row {
    grid-template-columns: auto 1fr;
  }

  .task-row .mini-action-button {
    grid-column: 2;
    width: fit-content;
  }
}

@media (min-width: 720px) {
  .hero {
    grid-template-columns: minmax(280px, 0.92fr) 1fr;
    align-items: stretch;
  }

  .hero-photo {
    height: 460px;
    min-height: 460px;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px;
  }

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

  .public-hero .hero-photo {
    height: 100%;
    min-height: 100%;
  }

  .public-hero .hero-content {
    display: grid;
    justify-content: start;
    padding: 72px 64px 58px;
  }

  .unpublished-panel {
    padding: 54px 42px;
  }

  .trust-panel {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-block {
    padding: 42px;
  }

  .gift-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .funding-goal-card {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
    align-items: start;
  }

  .modal-card {
    inset: 50%;
    transform: translate(-50%, -50%);
    width: min(560px, calc(100vw - 28px));
    max-height: min(760px, calc(100vh - 48px));
    bottom: auto;
    border-radius: var(--radius);
  }

  .dashboard-hero {
    grid-template-columns: 1fr auto;
    align-items: end;
    padding: 34px 28px;
  }

  .metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 20px 28px;
  }

  .dashboard-layout {
    grid-template-columns: 0.92fr 1.08fr;
    padding: 0 28px 20px;
  }

  .funding-dashboard-panel {
    margin: 0 28px 20px;
  }

  .funding-dashboard-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lists-layout {
    grid-template-columns: minmax(300px, 0.42fr) minmax(0, 1fr);
    align-items: start;
    padding: 20px 28px;
  }

  .contribution-row,
  .list-row {
    grid-template-columns: 1fr auto;
  }

  .list-actions {
    justify-content: flex-end;
  }

  .contribution-page-panel {
    margin: 0 28px;
  }

  .amount-status {
    justify-items: end;
    text-align: right;
  }

  .public-link-panel {
    grid-template-columns: 1fr minmax(280px, 0.8fr);
    align-items: center;
    margin: 0 28px;
  }

  .share-box {
    grid-template-columns: 148px 1fr;
    align-items: center;
  }

  .setup-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    padding: 20px 28px;
  }

  .setup-status {
    position: sticky;
    top: 82px;
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .setup-gift-row {
    grid-template-columns: minmax(96px, 0.35fr) minmax(170px, 0.85fr) minmax(180px, 1fr) minmax(110px, 0.45fr) minmax(210px, 1fr);
    align-items: end;
  }

  .setup-gift-description {
    grid-column: 1 / -1;
  }
}
