@font-face {
  font-family: "Cormorant Garamond";
  src: url("/cormorant-garamond-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fbfaf6;
  --canvas: #f2f1eb;
  --ink: #282923;
  --muted: #635e56;
  --line: #dedbd1;
  --accent: #6e2a3d;
  --accent-dark: #501e2d;
  --dark: #272e26;
  --serif: "Instrument Serif", Georgia, serif;
  font-family: Inter, "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.03; }
h1 { font-size: clamp(2.35rem, 5vw, 3.45rem); letter-spacing: -.045em; }
h2 { font-size: 1.7rem; letter-spacing: -.025em; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: default; opacity: .58; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid #a56239;
  outline-offset: 3px;
}
.muted { color: var(--muted); }
.small { font-size: .83rem; line-height: 1.45; }
.eyebrow { font-size: .65rem; font-weight: 750; letter-spacing: .18em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.button {
  display: inline-flex; min-height: 42px; justify-content: center; align-items: center; gap: .65rem;
  padding: .65rem 1rem; border-radius: 7px; border: 1px solid transparent;
  font-size: .9rem; font-weight: 670; text-decoration: none;
}
.primary { background: var(--accent-dark); color: #fff8f0; }
.primary:hover:not(:disabled) { background: var(--accent); }
.secondary { border-color: var(--line); background: var(--paper); color: var(--ink); }
.secondary:hover:not(:disabled) { background: #efede3; }
.full { width: 100%; justify-content: space-between; min-height: 51px; padding-inline: 1.1rem; }
input:not([type="checkbox"]), select, textarea {
  width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 7px;
  background: #fffefb; padding: .64rem .75rem; color: var(--ink);
}
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #746f65; }
label { display: block; font-size: .85rem; font-weight: 650; }
label > input:not([type="checkbox"]), label > textarea { margin-top: .35rem; }
.form-message { color: #923845; font-size: .85rem; line-height: 1.45; }
.form-message:not(:empty) { margin: .7rem 0; }

.connect-body {
  background: #211e19;
}
.connect-layout {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  min-height: 100svh;
  background:
    linear-gradient(0deg, #100d0ac9, transparent 36%),
    linear-gradient(90deg, #241f1726 20%, #211e1980 59%, #211e19 91%),
    url('/heritage-arch.webp') 35% center / cover no-repeat;
}
.brand-panel {
  display: grid; align-items: end; min-width: 0; padding: clamp(2rem, 6vw, 6rem);
  background: linear-gradient(0deg, #181610a8, transparent 55%);
  color: #f0e0c6;
}
.brand-lockup { width: fit-content; max-width: 100%; text-align: left; }
.brand-name {
  max-width: 15ch;
  overflow-wrap: anywhere;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.3rem, 4.55vw, 4.65rem);
  font-weight: 500;
  line-height: .98;
  letter-spacing: .045em;
  text-transform: uppercase;
  text-shadow: 0 2px 20px #100d0a;
}
.brand-subtitle {
  margin-top: .85rem;
  color: #ddc6a3;
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  font-size: .85rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .31em;
  text-shadow: 0 1px 8px #100d0a;
}
.connect-card {
  align-self: center; width: min(100%, 37rem); min-width: 0; color: #f5ebdc;
  padding: 3.5rem clamp(1.8rem, 5vw, 4rem) 3.5rem clamp(1.7rem, 3.4vw, 3.2rem);
  font-family: Calibri, Carlito, "Segoe UI", system-ui, sans-serif;
}
.connect-card h1 { font-family: "Baskervville", Georgia, serif; font-size: clamp(2.45rem, 5vw, 4.4rem); letter-spacing: -.06em; }
.connect-card .muted, .connect-card .consent { color: #d4c8b5; }
.connect-card .form-message { color: #ffd3b6; }
.connect-card input:not([type="checkbox"]) { background: #211e19b8; color: #fff4e4; border-radius: 0; min-height: 48px; font-size: 16px; border-color: #91816b; }
.connect-card input::placeholder { color: #b5a994; }
.connect-card .button { border-radius: 0; }
.connect-card .primary { background: #e6d1ad; color: #282016; }
.connect-card .primary:hover:not(:disabled) { background: #f1e1c7; }
.connect-card .consent input { accent-color: #b49866; }
.intro { margin: .7rem 0 1.75rem; line-height: 1.55; font-size: .94rem; }
#contact-form > label:not(.consent) { margin: 1.03rem 0 .35rem; }
.capture-preferences { margin-top: .5rem; color: #e6d1ad; }
.capture-preferences summary { min-height: 40px; padding-block: .55rem; font-size: .875rem; }
.capture-preferences summary span { color: #d4c8b5; font-weight: 400; }
.capture-preferences > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.capture-preferences input, .capture-preferences select { min-width: 0; }
.capture-preferences select { margin-top: .35rem; min-height: 48px; border: 1px solid #91816b; border-radius: 0; background: #211e19; color: #fff4e4; }
.city-field { min-width: 0; position: relative; }
.city-suggestions {
  position: absolute; inset: 100% 0 auto; z-index: 1; margin: 0; padding: 0; list-style: none;
  border: 1px solid #91816b; background: #211e19;
}
.city-suggestions button { width: 100%; min-height: 44px; padding: .45rem .6rem; text-align: left; background: transparent; border: 0; color: #fff4e4; overflow-wrap: anywhere; }
.city-suggestions button:hover, .city-suggestions button:focus-visible { background: #443627; }
.other-interest { grid-column: 1 / -1; }
.consent { display: flex; gap: .65rem; align-items: flex-start; color: var(--muted); margin: 1.2rem 0 1.25rem; font-size: .79rem; line-height: 1.5; font-weight: 500; }
.consent input { accent-color: var(--accent); flex: 0 0 17px; width: 17px; height: 17px; margin: .13rem 0 0; }

#challenge:not(:empty) { margin-bottom: .8rem; }
.connect-card .success-status {
  margin: .25rem 0 1rem; color: #e4d3b8; text-align: center;
  font: 400 .875rem/1.4 Calibri, Carlito, "Segoe UI", system-ui, sans-serif; letter-spacing: normal;
}
.success-note { text-align: center; margin: 1.9rem 0 .25rem; }
.success-note::before {
  content: ""; display: block; width: .3rem; height: .3rem; margin: 0 auto .75rem;
  border: 1px solid #c7a575; transform: rotate(45deg);
}
.success-thanks {
  color: #f1dbb7; font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.05rem; font-weight: 500; letter-spacing: .19em;
}
.success-verse {
  margin: .32rem 0 0; color: #dfc9a9;
  font-family: "Noto Sans Devanagari", "Kohinoor Devanagari", "Nirmala UI", Mangal, sans-serif;
  font-size: .875rem; font-weight: 400; line-height: 1.65; text-wrap: balance;
}
.link-heading {
  display: flex; align-items: center; gap: .75rem; margin: 1.15rem 0 .65rem;
  color: #eed4ab; font-size: .875rem; font-weight: 600;
}
.link-heading::before, .link-heading::after { content: ""; flex: 1; height: 1px; background: #b59a7470; }
.whatsapp-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem;
  width: 100%; max-width: 19.05rem; margin-inline: auto;
}
.whatsapp-links .button {
  width: min(9.25rem, calc((100% - .55rem) / 2)); min-height: 44px;
  gap: .35rem; padding: .45rem .55rem; text-align: center; overflow-wrap: anywhere;
  border-color: #9e8568; background: #281d17b3; color: #f6e4c8;
  font-size: .8125rem; font-weight: 500;
}
.whatsapp-links .button:nth-child(3) { width: 100%; }
.whatsapp-links .button:hover { background: #4a3523; border-color: #e0bf8d; }
.contact-arrow { flex: none; color: #e0bf8d; font: .7rem system-ui, sans-serif; }
#demo-note { margin-top: 1rem; }

.admin-body {
  --canvas: #f4f0e9; --paper: #fffdf8; --line: #e3dbcf;
  --dark: #28201b; --accent: #81502f; --accent-dark: #60402c;
  --serif: "Cormorant Garamond", Georgia, serif;
  background: var(--canvas);
}
.admin-body .nav-button.active { background: #493628; color: #fff4dd; }
.admin-body .nav-button:hover, .admin-body .sidebar-bottom :is(a, button):hover { background: #493628; }
.admin-body .sidebar-bottom { border-color: #685444; }
.admin-body .metric { border-top: 2px solid #b9996b; }
.admin-body .metric strong { color: #533724; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1rem; }
.login-card { width: min(100%, 415px); background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 2rem; box-shadow: 0 12px 40px #28292313; }
.login-card .eyebrow { color: var(--accent); }
.login-card h1 { margin: .65rem 0 1.7rem; }
.login-card label { margin-bottom: .45rem; }
.login-card .button { margin-top: .9rem; }
.dashboard { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  background: var(--dark); color: #e8eadf; min-height: 100vh; padding: 1.6rem 1.2rem 1.15rem;
  display: flex; flex-direction: column; gap: 2.3rem; position: sticky; top: 0; align-self: start;
}
.dashboard-brand { display: flex; align-items: center; gap: .6rem; color: #fff7e6; text-decoration: none; font: 1.25rem var(--serif); white-space: nowrap; }
.sidebar-menu { display: none; }
.mini-mark {
  display: grid; place-items: center; flex: 0 0 36px; height: 36px;
  border: 1px solid #b69367; border-radius: 16px 16px 4px 4px;
  box-shadow: inset 0 0 0 2px #28201b, inset 0 0 0 3px #b6936766;
  color: #f0d4a7; font: 500 1rem/1 var(--serif); letter-spacing: -.035em;
}
.sidebar nav, .sidebar-bottom { display: grid; gap: .4rem; }
.nav-button, .sidebar-bottom a, .sidebar-bottom button {
  display: flex; gap: .62rem; align-items: center; width: 100%; text-align: left;
  border: 0; background: transparent; color: #e1e5d8; text-decoration: none;
  border-radius: 7px; padding: .67rem .6rem; font-size: .83rem; min-height: 42px;
}
.nav-button span:first-child { color: #dcb689; width: 17px; text-align: center; }
.nav-button.active { background: #434d3c; color: #fffbed; font-weight: 700; }
.nav-button:hover, .sidebar-bottom a:hover, .sidebar-bottom button:hover { background: #3b4437; }
.nav-count { margin-left: auto; border-radius: 999px; background: #f2ddbb; color: #423827; min-width: 21px; text-align: center; font-size: .71rem; padding: .12rem .3rem; }
.sidebar-bottom { margin-top: auto; padding-top: .6rem; border-top: 1px solid #596253; }
.sidebar-bottom a, .sidebar-bottom button { justify-content: space-between; }
.workspace { width: min(100%, 1360px); padding: 2.8rem clamp(1rem, 4vw, 4rem); }
.workspace-header { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.55rem; }
.workspace-header p { margin-top: .55rem; font-size: .91rem; }
.workspace-header-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .6rem; }
.workspace-header-actions .button { min-height: 44px; white-space: nowrap; }
.time-zone { border: 1px solid var(--line); border-radius: 999px; padding: .43rem .7rem; font-size: .76rem; white-space: nowrap; background: var(--paper); color: var(--muted); }
.time-zone span { margin-right: .2rem; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-bottom: 1.1rem; }
.metric { padding: 1.05rem 1.15rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.metric p { font-size: .79rem; color: var(--muted); margin-bottom: .35rem; }
.metric strong { font: 650 2.15rem/1.1 Inter, "DM Sans", system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.data-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 11px; }
.data-toolbar { display: flex; flex-wrap: wrap; gap: .75rem; padding: .85rem; }
.data-toolbar .search-box { width: min(100%, 350px); }
.data-toolbar select { width: auto; max-width: 100%; }
.date-range { display: flex; flex-wrap: wrap; align-items: end; gap: .65rem; padding: 0 .85rem .85rem; }
.date-range input { min-width: 130px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 630px; font-size: .83rem; }
th, td { text-align: left; padding: .75rem .85rem; }
th { background: #eeeae0; color: #555248; font-size: .73rem; white-space: nowrap; font-weight: 650; }
td { border-top: 1px solid #ebe8de; }
td small, .record-list small { display: block; color: var(--muted); margin-top: .25rem; line-height: 1.45; }
.phone { white-space: nowrap; font-variant-numeric: tabular-nums; }
.row-link { border: 0; background: transparent; color: var(--accent); font-weight: 700; min-height: 32px; padding: .25rem; }
.row-link:hover { text-decoration: underline; }
.empty { color: var(--muted); padding: 1.2rem .85rem; font-size: .85rem; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: .7rem; padding: .65rem .85rem; border-top: 1px solid var(--line); font-size: .8rem; }
.activity-panel { margin-top: 1.05rem; padding: 1rem 1.1rem; }
.activity-panel h2 { margin: .15rem 0 .55rem; }
.record-list, .connection-list { list-style: none; padding: 0; margin: 0; }
.record-list li, .connection-list li { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .73rem 0; font-size: .85rem; border-bottom: 1px solid #ebe8de; }
.record-list li:last-child, .connection-list li:last-child { border-bottom: 0; }
.record-list time, .connection-list span { color: var(--muted); font-size: .76rem; text-align: right; }
.sync-panel > div > p { font-size: .85rem; }
.sync-panel dl { display: flex; flex-wrap: wrap; gap: 1.6rem; margin: .8rem 0 0; }
.sync-panel dt { color: var(--muted); font-size: .8rem; }
.sync-panel dd { margin: .25rem 0 0; font-weight: 700; }
.connection-list { margin-top: .7rem; }
.connection-list small { display: block; margin-top: .25rem; color: var(--muted); }
.review-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.google-rename-controls, #rename-summary { margin: .65rem 0; }
.record-list .contact-alert, .contact-alert { color: #923845; font-weight: 650; }
.settings-form { max-width: 42rem; }
.settings-form fieldset { border: 1px solid var(--line); margin: 1rem 0; padding: .8rem; }
.settings-form legend { font-weight: 650; }
.settings-form .field-grid { margin-top: .65rem; }
.recent-controls { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; }
.recent-controls .button { min-height: 34px; padding: .35rem .6rem; }
.record-list .submission-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; }
.record-list .google-duplicate-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; }
.google-match-details { padding-inline-start: .55rem; border-inline-start: 2px solid #c78383; }
.submission-details { overflow-wrap: anywhere; }
.submission-details time { display: block; margin-top: .2rem; text-align: left; }
.submission-row .recent-controls { flex-wrap: nowrap; gap: .25rem; }
.submission-row .recent-controls .button { min-height: 34px; padding: .25rem .45rem; font-size: .8125rem; }
.record-list .duplicate-review { display: grid; gap: .65rem; }
.duplicate-entry { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.duplicate-review > button { justify-self: start; }
.submission-dialog label { display: block; margin-bottom: .75rem; }
.sheet-errors { margin-top: .8rem; border-top: 1px solid var(--line); }
dialog { width: min(550px, calc(100% - 1.6rem)); max-height: calc(100% - 2rem); padding: 1.35rem; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; }
dialog::backdrop { background: #272e2670; }
.admin-body .customer-qr-dialog {
  width: min(100% - 1.5rem, 440px); max-height: calc(100% - 1.5rem);
  padding: 3.25rem clamp(1rem, 6vw, 2.5rem) 1.75rem;
  border-color: #b69367; background: var(--dark); color: #fff4dd; text-align: center;
}
.customer-qr-dialog::backdrop { background: #211915; }
.customer-qr-close { position: absolute; inset: .5rem .5rem auto auto; }
.customer-qr-close .icon-button { width: 44px; height: 44px; background: transparent; border-color: #83654d; color: inherit; }
.customer-qr-dialog h2 { font: 500 clamp(1.5rem, 5vw, 2.1rem)/1.05 var(--serif); }
.customer-qr-brand { margin: .55rem 0 1.2rem; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; }
.customer-qr-dialog img {
  display: block; width: min(100%, 310px, max(165px, calc(100dvh - 15rem)));
  height: auto; margin-inline: auto; background: #fff;
}
#customer-qr-instructions { margin-top: 1rem; color: #f0dbc0; font-size: .875rem; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .55rem; }
.icon-button { border: 1px solid var(--line); border-radius: 6px; width: 34px; height: 34px; background: var(--paper); color: var(--ink); font-size: 1.2rem; }
#profile-form label { margin-top: .8rem; }
#profile-form > .button { margin: .85rem 0; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
summary { cursor: pointer; font-size: .85rem; font-weight: 650; margin-top: .4rem; }

@media (max-width: 790px) {
  .dashboard { display: block; }
  .sidebar { position: relative; min-height: 0; gap: .6rem; padding: .5rem 1rem .75rem; }
  .sidebar-header { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
  .sidebar-menu {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 .75rem;
    border: 1px solid #78624f; border-radius: 7px; background: transparent; color: #fff4dd; font-size: .875rem;
  }
  .sidebar nav { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .25rem; }
  .sidebar .nav-button { min-height: 52px; flex-direction: column; justify-content: center; position: relative; gap: .15rem; padding: .25rem; font-size: .75rem; }
  .sidebar .nav-button span:first-child { font-size: 1rem; }
  .sidebar .nav-count { position: absolute; top: 3px; right: 3px; min-width: 16px; padding: .1rem .2rem; }
  .sidebar-bottom { display: none; margin: 0; padding: .25rem 0; }
  .sidebar:has(.sidebar-menu[aria-expanded="true"]) .sidebar-bottom { display: grid; }
  .sidebar-bottom a, .sidebar-bottom button { min-height: 44px; }
  .workspace { padding: 1.25rem 1rem; }
  .workspace-header { align-items: start; margin-bottom: 1rem; }
  .workspace-header h1 { font-size: 2rem; line-height: 1.1; }
  .workspace-header p { margin-top: .3rem; font-size: .875rem; }
  .workspace-header-actions { flex-direction: column-reverse; align-items: flex-end; flex: none; gap: .35rem; }
  .time-zone { padding: .35rem .55rem; }
  .metrics { gap: .45rem; margin-bottom: .9rem; }
  .metric { padding: .7rem .45rem; }
  .metric p { min-height: 2.4em; font-size: .75rem; line-height: 1.2; }
  .metric strong { font-size: 1.65rem; }
  .data-toolbar { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); padding: .7rem; gap: .5rem; }
  .data-toolbar .search-box { grid-column: 1 / -1; width: 100%; }
  .data-toolbar select { width: 100%; min-width: 0; padding-inline: .55rem; }
  .admin-body :is(input:not([type="checkbox"]), select, textarea) { font-size: 1rem; }
  .settings-form label, .settings-form .small, .settings-form .button { font-size: .8125rem; }
  .settings-form legend { font-size: .875rem; }
  .admin-body .settings-form input { font-size: .875rem; min-width: 0; padding-inline: .55rem; }
  .settings-form .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .data-toolbar select { font-size: .875rem; }
  .date-range label { flex: 1 1 7rem; min-width: 0; }
  .date-range input { min-width: 0; }
  .admin-body :is(.button, .icon-button, summary) { min-height: 44px; }
  .admin-body .icon-button { min-width: 44px; }
  .admin-body summary { padding-block: .7rem; }
  #customers-view table, #customers-view tbody { display: block; min-width: 0; }
  #customers-view thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  #customer-rows tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .25rem .6rem; padding: .85rem .7rem; border-top: 1px solid var(--line); }
  #customer-rows td { padding: 0; border: 0; overflow-wrap: anywhere; }
  #customer-rows td:nth-child(-n+4) { grid-column: 1; }
  #customer-rows td:first-child { font-size: 1rem; }
  #customer-rows .customer-city:empty { display: none; }
  #customer-rows td:nth-child(4) { font-size: .8125rem; color: var(--muted); }
  #customer-rows td:last-child { grid-area: 1 / 2 / 3; }
  #customer-rows .row-link { min-height: 44px; padding-inline: .7rem; border: 1px solid var(--line); border-radius: 7px; }
  .recent-controls { justify-content: flex-end; }
  .admin-body dialog { padding: 1rem; }
}
@media (max-width: 680px) {
  .connect-layout {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    padding: env(safe-area-inset-top) clamp(1.15rem, 7vw, 2rem) max(1.5rem, env(safe-area-inset-bottom));
    background:
      linear-gradient(180deg, #160f0b25 0%, transparent 15%, #19130d66 25%,
        #1d1711ed 39%, #1d1711f5 66%, #1d1711ca 83%, #140e0ae8 100%),
      url('/heritage-arch.webp') 29% center / cover no-repeat;
  }
  .brand-panel {
    display: grid;
    min-height: clamp(174px, 34svh, 310px);
    padding: 0 0 1.35rem;
    background: none;
  }
  .brand-lockup { width: 100%; text-align: center; }
  .brand-name {
    max-width: 100%;
    font-size: clamp(1.25rem, 5.65vw, 2.15rem);
    letter-spacing: .065em;
    line-height: 1.08;
    text-wrap: balance;
  }
  .brand-subtitle { margin-top: .48rem; font-size: .75rem; letter-spacing: .31em; }
  .connect-card { width: min(100%, 27rem); padding: 1rem 0 0; border-top: 1px solid #b59a7470; }
  .connect-card h1 { font-size: clamp(1.5rem, 7vw, 2.15rem); }
  .connect-card .intro { margin: .48rem 0 .85rem; font-size: .875rem; line-height: 1.45; }
  .connect-card #contact-form > label[for] { margin: .85rem 0 .3rem; font-size: .8125rem; }
  .connect-card input:not([type="checkbox"]) { min-height: 44px; padding: .6rem .65rem; }
  .connect-card .consent { min-height: 44px; align-items: flex-start; margin: .7rem 0 .55rem; font-size: .8125rem; }
  .connect-card .consent input { width: 16px; height: 16px; flex-basis: 16px; }
  .connect-card .full { min-height: 46px; padding-inline: .75rem; }
  .connect-card:has(#success:not([hidden])) { display: flex; flex: 1; }
  #success:not([hidden]) { display: flex; flex: 1; flex-direction: column; min-width: 0; }
  .success-note { margin: auto 0 0; padding: 2rem 0 clamp(.5rem, 3svh, 1.5rem); }
}
@media (max-width: 470px) {
  .record-list .google-duplicate-row { grid-template-columns: minmax(0, 1fr) auto; }
  .google-duplicate-row .google-match-details { grid-area: 2 / 1 / 3 / -1; }
  .capture-preferences > div { grid-template-columns: 1fr; }
  .record-list li { flex-wrap: wrap; }
  .record-list time { text-align: left; }
}
