/* Headings only: official self-hosted Barlow Condensed ExtraBold 800, SIL OFL. */
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: block;
  src: url("/assets/fonts/barlow-condensed/barlow-condensed-extrabold.woff2") format("woff2");
}
/* claba: private, self-hosted official "DM Sans" Latin (includes Spanish). */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/dm-sans/dm-sans-latin-wght.woff2") format("woff2");
}
:root {
  --ink: var(--claba-black);
  --muted: #595959;
  --paper: #fff;
  --white: #fff;
  --mint: #f0f0f0;
  --green: #242424;
  --green2: #000;
  --coral: #333;
  --line: rgba(20,24,28,.06);
  --warm: var(--claba-bg);
  --shadow: 0 8px 24px rgba(20,24,28,.06);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans",system-ui,sans-serif;
  line-height: 1.6;
}

button,input,select,textarea {
  font: inherit;
}

button,a {
  touch-action: manipulation;
}

a {
  color: var(--ink);
  text-underline-offset: .2em;
}

img,input,select,textarea {
  max-width: 100%;
}

h1,h2,h3 {
  font-family: "Barlow Condensed","DM Sans",system-ui,sans-serif;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h2 {
  font-size: 32px;
  margin: 0 0 22px;
}

h3 {
  margin: 0;
  font-size: 18px;
}

p {
  overflow-wrap: anywhere;
}

.site-header {
  min-height: 96px;
  max-width: 1280px;
  margin: auto;
  padding: 16px 34px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  background: #fff;
}

.site-header.compact {
  min-height: 86px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
  color: #191919;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: 50px;
  object-fit: contain;
}

.brand small {
  display: none;
}

.header-note,.privacy-pill {
  font-size: 14px;
  font-weight: 700;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  background: #fff;
}

.hero {
  max-width: 1280px;
  margin: 12px auto 84px;
  padding: 65px 76px 70px;
  display: grid;
  grid-template-columns: 1.05fr .82fr;
  gap: 64px;
  align-items: center;
  position: relative;
}

.hero:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 34px;
  background: #f5f5f5;
  border-radius: 32px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow,.step-label,.gift-kicker {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 12px;
}

.hero h1,.share-intro h1 {
  font-size: clamp(42px,4.8vw,64px);
  letter-spacing: -.01em;
  line-height: 1.07;
  margin: 0 0 26px;
}

.hero h1 em {
  color: #191919;
  font-style: normal;
  font-weight: 800;
}

.hero-copy>p {
  font-size: 18px;
  color: var(--muted);
  max-width: 610px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0 18px;
}

.guest-note {
  max-width: 540px;
}

.trust-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.trust-row span {
  font-size: 14px;
  font-weight: 600;
  background: #fff;
  border-radius: 999px;
  padding: 9px 13px;
}

.trust-row span:before {
  content: "✓";
  margin-right: 6px;
}

.create-card,.add-panel {
  background: #fff;
  border-radius: 24px;
  padding: 32px;
  border: 1px solid var(--line);
  min-width: 0;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 15px;
  color: var(--ink);
}

input,select,textarea {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 7px;
  border: 1px solid #808080;
  
  background: #fff;
  color: var(--ink);
  padding: 12px 13px;
  min-height: 46px;
}

input::placeholder,textarea::placeholder {
  color: #707070;
  font-style: normal;
  font-size: calc(1em - 1px);
  opacity: .75;
}

.event-location-field {
  grid-column: 1/-1;
}
textarea {
  resize: vertical;
}

input[type=checkbox],input[type=radio] {
  accent-color: #242424;
  display: inline-block;
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0 8px 0 0;
  vertical-align: middle;
  padding: 0;
}

.narrow-shell {
  max-width: 680px;
  margin: 32px auto 80px;
  padding: 0 20px;
}

.panel {
  margin: 28px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.optional {
  font-weight: 400;
  color: var(--muted);
  margin-left: 3px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

button,.button,[role=button],input[type=submit],input[type=button],input[type=reset] {
  border-radius: 999px;
  min-height: 44px;
  min-width: 44px;
  height: auto;
  max-width: 100%;
  padding: 12px 22px;
  font-weight: 700;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  cursor: pointer;
}

.button {
  border: 1px solid transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.button.primary,.button.danger,.celebration-tab.active {
  background: #242424;
  color: #fff;
  border-color: #242424;
}
@media (hover: hover) and (pointer: fine) {
  .button.primary:hover,.button.danger:hover {
    background: #000;
  }
}
.button.secondary {
  background: #fff;
  color: #191919;
  border: 1px solid #808080;
}

.button.whatsapp,.button.subtle {
  background: #ededed;
  color: #191919;
}

.button.subtle {
  margin-top: 12px;
}

.button.danger-outline {
  border: 1px dashed #595959;
  color: #191919;
}

.button.disabled,.button:disabled {
  background: #e6e6e6;
  color: #595959;
  cursor: not-allowed;
}

.full {
  width: 100%;
}

.text-button {
  border: 1px solid #808080;
  background: #fff;
  color: #242424;
  font-size: 14px;
  padding: 10px 18px;
}

.danger-text {
  text-decoration: underline;
  text-decoration-style: dotted;
}

.dialog-close {
  position: absolute;
  right: 12px;
  top: 10px;
  border: 0;
  background: #f0f0f0;
  font-size: 24px;
  color: #242424;
  padding: 4px;
  width: 44px;
}

.celebration-tab {
  border: 1px solid #808080;
  background: #fff;
  color: #191919;
  display: flex;
  gap: 10px;
  align-items: center;
}

.celebration-tab span {
  font-size: 14px;
}

:where(a,button,input,select,textarea,[tabindex]):focus-visible {
  outline: 3px solid #191919;
  outline-offset: 4px;
  box-shadow: 0 0 0 4px #fff;
}

.form-status {
  font-size: 14px;
  min-height: 20px;
  margin: 9px 0 0;
  color: #242424;
}

.form-status:not(:empty):before {
  content: "ⓘ ";
  font-weight: 700;
}

.form-status.error:not(:empty):before {
  content: "⚠ ";
  font-weight: 700;
}

.form-status.error {
  color: #191919;
  font-weight: 600;
}

.success-mark {
  margin: 0 auto 18px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ededed;
  color: #191919;
  font-size: 25px;
  font-weight: 700;
}

.success-dialog {
  text-align: center;
}

.how-it-works {
  max-width: 1150px;
  margin: 0 auto 100px;
  padding: 0 34px;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
}

.how-it-works h2 {
  font-size: 42px;
}

.steps {
  padding: 0;
  margin: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.steps strong {
  font-family: "Barlow Condensed","DM Sans",system-ui,sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
}

.steps p {
  color: var(--muted);
  margin: 7px 0 0;
}

footer {
  border-top: 1px solid var(--line);
  padding: 26px max(34px,calc((100% - 1210px)/2));
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}

footer.legal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px 16px;
}

footer.legal-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: .2em;
}

footer.legal-footer a:focus-visible {
  outline: 3px solid #191919;
  outline-offset: 3px;
}

.app-page,.share-page {
  background: #fafafa;
}

.app-shell,.share-shell {
  max-width: 1180px;
  margin: 30px auto 90px;
  padding: 0 34px;
}

.dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 25px;
  margin: 40px 0 25px;
}

.dashboard-head h1 {
  font-size: 48px;
  margin: 0 0 8px;
}

.muted {
  color: var(--muted);
  margin: 0;
}

.share-actions {
  display: flex;
  gap: 9px;
}

.privacy-banner,.share-rule,.closed-notice {
  padding: 15px 18px;
  border-radius: 14px;
  background: #f0f0f0;
  color: #333;
  font-size: 14px;
  margin-bottom: 34px;
}
.privacy-banner strong {
  margin-right: 5px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) 420px;
  gap: 36px;
  align-items: start;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 17px;
  gap: 12px;
}

.section-heading h2 {
  margin: 0;
}

.count {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 18px;
}

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

.gift-card {
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  display: grid;
  grid-template-columns: 145px minmax(0,1fr);
  min-height: 200px;
}

.gift-image {
  background: var(--warm);
  min-height: 170px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.gift-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gift-image>span {
  font-size: 45px;
  color: #666;
}

.gift-body {
  padding: 21px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.gift-body p {
  font-size: 16px;
  color: var(--muted);
  margin: 8px 0 16px;
}

.gift-footer {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
}

.gift-footer strong {
  font-size: 17px;
}

.gift-footer a {
  font-weight: 700;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.reserved-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #191919;
  color: #fff;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.empty-state {
  grid-column: 1/-1;
  border: 1px dashed #808080;
  border-radius: 18px;
  padding: 35px;
  text-align: center;
  color: var(--muted);
  background: #fff;
}

.add-panel {
  position: sticky;
  top: 20px;
}

.share-shell {
  max-width: 1080px;
}

.share-intro {
  text-align: center;
  max-width: 790px;
  margin: 65px auto 70px;
}

.share-intro>p {
  color: var(--muted);
  font-size: 17px;
}

.share-rule {
  text-align: left;
  margin: 28px auto 0;
  max-width: 680px;
  background: #fff;
  border: 1px solid var(--line);
}

.share-rule span {
  font-weight: 700;
  margin-right: 8px;
}

.closed-notice {
  margin: 12px auto 0;
  max-width: 680px;
  text-align: left;
  border: 1px dashed #808080;
}

.closed-notice[hidden] {
  display: none;
}

.share-page .gift-card {
  grid-template-columns: 1fr;
  min-height: 0;
}

.share-page .gift-image {
  height: 210px;
}

.share-page .gift-body {
  min-height: 245px;
}

.share-page .gift-body>.button {
  margin-top: 15px;
}

dialog {
  width: min(92vw,460px);
  border: 1px solid var(--line);
  
  padding: 62px 28px 28px;
  box-shadow: 0 28px 100px rgba(0,0,0,.2);
  color: var(--ink);
  background: #fff;
}

dialog::backdrop {
  background: rgba(0,0,0,.55);
}

.continuity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 46px;
}
.continuity-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  min-width: 0;
}

.continuity-card h2 {
  font-size: 29px;
  margin-bottom: 12px;
}

.continuity-card>p {
  margin-bottom: 24px;
}

.link-result {
  padding: 14px;
  background: #f0f0f0;
  border-radius: 13px;
  margin: 16px 0;
  overflow-wrap: anywhere;
}

.link-result[hidden] {
  display: none;
}

.access-list {
  margin-top: 24px;
}

.access-list h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin-bottom: 8px;
}

.access-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.access-row small {
  margin-left: 7px;
  color: var(--muted);
}

.access-empty {
  margin-top: 20px;
  font-size: 14px;
}

.guest-welcome {
  text-align: center;
  max-width: 760px;
  margin: 55px auto 35px;
}

.guest-welcome h1 {
  font-size: clamp(38px,5vw,62px);
  margin: 0 0 18px;
}

.guest-welcome p {
  color: var(--muted);
  font-size: 16px;
}

.celebration-switcher {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 0 48px;
}

.guest-list-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.guest-list-head h2 {
  font-size: 38px;
  margin-bottom: 8px;
}

.guest-page .gift-grid {
  grid-template-columns: repeat(3,minmax(0,1fr));
}

.guest-page .gift-card {
  grid-template-columns: 1fr;
}

.guest-page .gift-image {
  height: 205px;
}

.guest-page .gift-body {
  min-height: 245px;
}

.gift-progress {
  margin: 15px 0 3px;
}

.gift-progress>div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
}

.gift-progress progress {
  width: 100%;
  height: 8px;
  accent-color: #333;
}

.gift-progress small,.group-note {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.group-note {
  padding: 11px;
  border-radius: 10px;
  background: var(--warm);
  margin: -4px 0 16px;
}

.group-note[hidden],#target-amount-field[hidden] {
  display: none;
}

.family-shell {
  max-width: 1180px;
}

.family-layout {
  display: grid;
  grid-template-columns: minmax(0,1.35fr) minmax(0,.75fr);
  gap: 36px;
  align-items: start;
}

.family-layout h2,.recovery-notice h2 {
  font-size: 32px;
  margin: 0 0 20px;
}

.family-list {
  display: grid;
  gap: 14px;
}

.family-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.family-card>div {
  min-width: 0;
}

.family-card h3 {
  font-size: 27px;
  margin: 9px 0 5px;
}

.family-card p {
  margin: 0;
  color: var(--muted);
}

.family-card .card-actions {
  align-items: center;
  justify-content: flex-end;
}
.status-pill {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #242424;
  background: #ededed;
  padding: 6px 9px;
  border-radius: 999px;
}

.status-pill.closed,.status-pill.archived {
  background: #f5f5f5;
  color: #595959;
  border: 1px solid #808080;
}

.status-pill.draft {
  background: #fff;
  color: #333;
  border: 1px dashed #808080;
}

.recovery-notice {
  background: #f5f5f5;
  border: 1px solid #808080;
  border-radius: 20px;
  padding: 25px;
  margin-bottom: 34px;
}

.secret-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.secret-row code {
  display: block;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px;
}

.recovery-shell {
  max-width: 620px;
  margin-top: 45px;
}

.recovery-card {
  margin: 0;
}

.recovery-card h1 {
  font-size: 38px;
  margin: 10px 0 18px;
}

.follow-card {
  grid-template-columns: 1fr;
  min-height: 0;
}

.notification-preferences {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 18px 0;
  padding: 16px;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.notification-preferences legend {
  font-size: 14px;
  font-weight: 700;
  padding: 0 5px;
}

.notification-preferences label {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.notification-preferences label:has(select) {
  display: block;
}

.notification-preferences input[type=checkbox] {
  display: inline-block;
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  flex: 0 0 18px;
}

.notification-preferences select {
  width: 100%;
  min-width: 0;
}

.follow-card .button+.button {
  margin-top: 9px;
}

.moderation-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.legal-document {
  max-width: 850px;
  margin: auto;
}

.legal-document h1 {
  font-size: 38px;
}

.legal-document h2 {
  font-size: 26px;
  margin-top: 30px;
}
@media(max-width:900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 50px 58px;
  }
  .how-it-works,.dashboard-grid,.continuity-grid,.family-layout {
    grid-template-columns: 1fr;
  }
  .add-panel {
    position: static;
    order: -1;
  }
  .gift-grid,.guest-page .gift-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .dashboard-head {
    align-items: start;
    flex-direction: column;
  }
  .share-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .share-actions>* {
    flex: 1;
  }
  .how-it-works {
    gap: 20px;
  }
  .share-intro {
    margin-top: 40px;
  }
}
@media(max-width:600px) {
  .site-header,.site-header.compact {
    min-height: 76px;
    padding: 12px 18px;
  }
  .brand {
    border-radius: 14px;
    box-shadow: none;
    padding-inline-start: 0;
  }
  .brand-logo {
    height: 40px;
  }
  .site-header .button {
    font-size: 14px;
    padding: 11px 15px;
  }
  .header-note,.site-header>span.privacy-pill {
    display: none;
  }
  .hero {
    margin-top: 0;
    padding: 32px 20px 45px;
  }
  .hero:before {
    inset: 0;
    border-radius: 0;
  }
  .hero h1 {
    font-size: 42px;
  }
  .hero-copy>p {
    font-size: 16px;
  }
  .create-card {
    padding: 24px 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .how-it-works {
    padding: 0 22px;
    margin-bottom: 70px;
  }
  .how-it-works h2 {
    font-size: 36px;
  }
  footer {
    padding: 22px;
    flex-wrap: wrap;
    gap: 10px;
  }
  footer span {
    display: block;
    margin: 5px 0;
  }
  .app-shell,.share-shell {
    padding: 0 16px;
    margin-top: 20px;
  }
  .dashboard-head h1 {
    font-size: 36px;
  }
  .share-actions {
    display: grid;
  }
  .gift-grid,.guest-page .gift-grid,.gift-card {
    grid-template-columns: 1fr;
  }
  .gift-image {
    min-height: 165px;
  }
  .share-page .gift-card {
    grid-template-columns: 1fr;
  }
  .share-page .gift-image {
    height: 210px;
  }
  .share-page .gift-body {
    min-height: 220px;
  }
  .share-intro h1 {
    font-size: 40px;
  }
  .share-intro {
    text-align: left;
    margin-bottom: 50px;
  }
  .guest-list-head {
    align-items: start;
    flex-direction: column;
  }
  .add-panel {
    padding: 24px 19px;
  }
  .privacy-banner {
    font-size: 14px;
  }
  .hero-actions>* {
    width: 100%;
  }
  .family-card,.secret-row {
    align-items: stretch;
    flex-direction: column;
  }
  .family-card .button {
    width: 100%;
  }
  .family-card .card-actions {
    align-items: stretch;
  }
  .family-card .card-actions>* {
    width: 100%;
  }
  .recovery-notice {
    padding: 20px;
  }
  .dialog-actions {
    grid-template-columns: 1fr;
  }
  .legal-document h1,.recovery-card h1 {
    font-size: 32px;
  }
}
@media(prefers-reduced-motion:no-preference) {
  .gift-card,.button {
    transition: box-shadow .18s ease,background .18s;
  }
  @media (hover: hover) and (pointer: fine) {
    .gift-card:hover {
      box-shadow: 0 12px 32px rgba(0,0,0,.08);
    }
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
}
/* Home-only account control: this class is used only by the home header. */

.site-header > .account-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: #000;
  text-decoration: none;
}

.site-header > .account-icon-link svg {
  display: block;
  width: 24px;
  height: 24px;
  flex: none;
}
@media (hover: hover) and (pointer: fine) {
  .site-header > .account-icon-link:hover {
    border-color: #000;
  }
}
.site-header > .account-icon-link:focus-visible {
  outline: 3px solid #000;
  outline-offset: 4px;
  box-shadow: 0 0 0 4px #fff;
}

/* Home hero only: approved free-service message. */

.hero-copy>p.hero-free {
  font-family: "Barlow Condensed","DM Sans",system-ui,sans-serif;
  font-weight: 800;
  font-size: 32px;
  line-height: 1.15;
  margin: 12px 0 16px;
  color: var(--ink);
}

/* CLABA corporate mint: approved primary actions and selected navigation only.
   Hover/pressed/focus are sRGB channels of #B2E6D8 multiplied by .92/.84/.40.
   Keep semantic/destructive/disabled controls and existing logo/fonts unchanged. */

:root {
  --brand-primary: #C61760;
  --brand-primary-hover: #C61760;
  --brand-primary-pressed: #C61760;
  --brand-focus: #C61760;
  --brand-on-primary: var(--claba-white);
}

.button.primary:where(:not(:disabled):not(.disabled):not([aria-disabled="true"]):not(.danger):not(.danger-outline):not(.danger-text)),.celebration-tab.active:where(:not(:disabled):not(.disabled):not([aria-disabled="true"]):not(.danger):not(.danger-outline):not(.danger-text)) {
  background: var(--brand-primary);
  color: var(--brand-on-primary);
  border-color: var(--brand-focus);
}
@media (hover: hover) and (pointer: fine) {
  .button.primary:where(:not(:disabled):not(.disabled):not([aria-disabled="true"]):not(.danger):not(.danger-outline):not(.danger-text)):hover,.celebration-tab.active:where(:not(:disabled):not(.disabled):not([aria-disabled="true"]):not(.danger):not(.danger-outline):not(.danger-text)):hover {
    background: var(--brand-primary-hover);
  }
}
.button.primary:where(:not(:disabled):not(.disabled):not([aria-disabled="true"]):not(.danger):not(.danger-outline):not(.danger-text)):active,.celebration-tab.active:where(:not(:disabled):not(.disabled):not([aria-disabled="true"]):not(.danger):not(.danger-outline):not(.danger-text)):active {
  background: var(--brand-primary-pressed);
}

.button.primary:where(:not(:disabled):not(.disabled):not([aria-disabled="true"]):not(.danger):not(.danger-outline):not(.danger-text)):focus-visible,.celebration-tab.active:where(:not(:disabled):not(.disabled):not([aria-disabled="true"]):not(.danger):not(.danger-outline):not(.danger-text)):focus-visible,.button[data-dashboard-tab]:focus-visible {
  outline: 3px solid var(--brand-focus);
  outline-offset: 4px;
  box-shadow: 0 0 0 4px #fff;
}

/* Selection accent retains white/outlined secondary hierarchy. */

.button.secondary[data-dashboard-tab][aria-selected="true"]:where(:not(:disabled):not(.disabled):not([aria-disabled="true"]):not(.danger):not(.danger-outline):not(.danger-text)) {
  border-color: var(--brand-focus);
  box-shadow: inset 0 -4px 0 var(--brand-primary);
}

/* Explicit neutral guard: disabled primary actions never inherit mint or hover. */

.button.primary:is(:disabled,.disabled,[aria-disabled="true"]) {
  background: #e6e6e6;
  color: #595959;
  border-color: #808080;
  cursor: not-allowed;
}

/* Full-width desktop header; preserve the original centered content gutters. */
@media(min-width:601px) {
  .site-header {
    max-width: none;
    width: 100%;
    background: #fff;
    padding-inline: max(34px,calc((100% - 1280px)/2 + 34px));
  }
}
/* Avoid iOS focus auto-zoom while preserving browser/pinch zoom and desktop typography. */
@media (max-width: 767px) {
  input:not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
  select, textarea {
    font-size: max(16px, 1em) !important;
  }
}
/* Neutral modal entry focus stays accessible, without a selection-like heading ring.
   Interactive keyboard focus indicators remain unchanged. */

/* Static dialog headings receive initial focus for screen-reader context, not
   an interactive selection. Cover both native autofocus and explicit focus().
   Interactive controls retain the global :focus-visible keyboard indicator. */

dialog h2[tabindex="-1"]:focus {
  outline: none;
  box-shadow: none;
}

/* Native temporal controls must fit their form/grid content box, including iOS. */

form :is(label,.form-grid):has(input:is([type="date"],[type="datetime-local"],[type="month"],[type="time"])) {
  min-width: 0;
  max-width: 100%;
}

form input:is([type="date"],[type="datetime-local"],[type="month"],[type="time"]) {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

form input:is([type="date"],[type="datetime-local"],[type="month"],[type="time"])::-webkit-date-and-time-value {
  min-width: 0;
  max-width: 100%;
  text-align: left;
}
@media(max-width:600px) {
  form input:is([type="date"],[type="datetime-local"],[type="month"],[type="time"]) {
    -webkit-appearance: none;
    appearance: none;
    min-height: 46px;
  }
  form input:is([type="date"],[type="datetime-local"],[type="month"],[type="time"])::-webkit-datetime-edit {
    min-width: 0;
    max-width: 100%;
    padding: 0;
  }
}
/* CLABA approved palette: visual only, preserve layout and semantic states. */

:root {
  --claba-black: #14181C;
  --claba-pink: #C61760;
  --claba-purple: #C61760;
  --claba-pink-soft: #C61760;
  --claba-lilac: #C61760;
  --claba-bg: #F3EDF3;
  --claba-white: #FFFFFF;
  --claba-gradient: linear-gradient(135deg,#C61760 0%,#C61760 48%,#C61760 100%);
  --accent: #C61760;
  --green: var(--claba-purple);
  --green2: var(--claba-purple);
  --mint: var(--claba-bg);
}

body {
  color: var(--claba-black);
}

a {
  color: #C61760;
}

h1,h2,h3,.hero h1 em,.brand {
  color: var(--claba-black);
}

.app-page,.share-page,.hero:before {
  background: var(--claba-bg);
}

.create-card,.add-panel,.panel,.gift-card,.continuity-card,.family-card,.recovery-notice {
  border: 1px solid rgba(20,24,28,.06);
  border-radius: 18px;
  background: var(--claba-white);
  box-shadow: var(--shadow);
}
@media (hover: hover) and (pointer: fine) {
  .gift-card:hover {
    box-shadow: var(--shadow);
  }
}
input,select,textarea {
  background: var(--claba-white);
  border-color: rgba(20,24,28,.10);
  border-radius: 12px;
  color: var(--claba-black);
}

input[type=checkbox],input[type=radio],.gift-progress progress {
  accent-color: #C61760;
}

:where(a,button,input,select,textarea,[tabindex]):focus-visible {
  outline-color: #C61760;
}

.button,button {
  border-radius: 14px;
}

.button.secondary,.button.subtle,.text-button,.dialog-close,.celebration-tab {
  background: var(--claba-bg);
  color: var(--claba-black);
  border: 1px solid rgba(20,24,28,.08);
  border-radius: 14px;
}

.button.primary:where(:not(:disabled):not(.disabled):not([aria-disabled="true"]):not(.danger):not(.danger-outline):not(.danger-text)),.button.whatsapp {
  background: var(--claba-gradient);
  color: var(--claba-white);
  border-color: transparent;
}

.celebration-tab.active {
  background: rgba(151,125,244,.15);
  color: var(--claba-black);
  border-color: rgba(20,24,28,.08);
}

.privacy-banner,.share-rule,.link-result,.group-note {
  background: var(--claba-bg);
  color: var(--claba-black);
}

.status-pill:not(.closed):not(.archived):not(.draft),.privacy-pill,.header-note,.count {
  background: rgba(151,125,244,.15);
  color: var(--claba-black);
  border-color: transparent;
}

.trust-row span,.success-mark {
  background: rgba(253,128,155,.15);
  color: var(--claba-black);
}

dialog {
  border-color: rgba(20,24,28,.06);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(20,24,28,.06);
}

.site-header>.account-icon-link {
  color: var(--claba-black);
  border-color: rgba(20,24,28,.08);
}

.site-header>.account-icon-link:focus-visible,footer.legal-footer a:focus-visible {
  outline-color: #C61760;
}

/* Accepted-member controls reuse the invitation switch palette. */

.member-access-row {
  flex-wrap: wrap;
  min-width: 0;
}

.member-access-row>label {
  min-width: 0;
}

.member-access-row select {
  max-width: 100%;
  font-size: 16px;
}

.member-permissions {
  flex: 1 1 100%;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  margin: 10px 0!important;
  padding: 12px 14px!important;
}

.member-permissions legend {
  font-size: 16px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.member-permissions label {
  font-size: 16px!important;
  margin: 10px 0!important;
}

.member-permissions p {
  font-size: 16px;
  line-height: 1.45;
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}

.member-permissions input:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.member-permission-status:empty {
  display: none;
}

/* Native touch highlight can paint a whole interactive subtree after a tap.
   Do not blur focus, clear selections or disable text selection: keyboard
   :focus-visible, editable fields and intentional text copying stay native. */

* {
  -webkit-tap-highlight-color: transparent;
}

/* Desktop shared groups: the 44px CTA already supplies 12px below its text.
   Remove only the duplicate trailing row inset: visible text insets become 13/14px. */
@media (min-width: 701px) {
  body.private-redesign #event-summary-cards#event-summary-cards#event-summary-cards #event-gift-groups-section #event-gift-groups .event-summary-group {
    padding-bottom: 0;
  }
}
/* Shared-event group cards: desktop keeps participant/total and per-person on separate lines. */
@media (min-width: 701px) {
  body #event-gift-groups-section #event-gift-groups .event-summary-group p > [data-event-per-person] {
    display: block;
  }
  body #event-gift-groups-section #event-gift-groups .event-summary-group p > [data-event-per-person]::before {
    content: none;
  }
}

/* Global disabled action contract: neutral in all interaction states.
   Shared by public and private pages; CSS only, no state/ACL changes.
   Semantic layer important rules beat legacy unlayered CTA overrides. */
@layer claba-semantic-text {
:root body:not(#claba-disabled-policy-a):not(#claba-disabled-policy-b):not(#claba-disabled-policy-c):not(#claba-disabled-policy-d):not(#claba-disabled-policy-e):not(#claba-disabled-policy-f):not(#claba-disabled-policy-g):not(#claba-disabled-policy-h)
:is(button,input[type="button"],input[type="submit"],input[type="reset"],.button,.btn,[role="button"],a[aria-disabled="true"]):is(:disabled,.disabled,[aria-disabled="true"]) {
  background: #e6e6e6 !important;
  background-image: none !important;
  color: #595959 !important;
  border-color: #d4d4d4 !important;
  outline-color: #a3a3a3 !important;
  box-shadow: none !important;
  opacity: 1 !important;
  cursor: not-allowed !important;
  transition: none !important;
}
}

/* José: neutral form focus, including native text-input mouse focus-visible. */
@layer claba {
:is(html,#claba-form-focus-policy) :is(body,#claba-form-focus-policy) :is(input,textarea,select,[contenteditable=true]):focus{outline:0!important;box-shadow:none!important;border-color:#777581!important}
:is(html,#claba-form-focus-policy) :is(body,#claba-form-focus-policy) :is(input,textarea,select,[contenteditable=true]):focus-visible{outline:2px solid #595959!important;outline-offset:2px!important;box-shadow:none!important}
:is(html,#claba-form-focus-policy) :is(body,#claba-form-focus-policy) form:focus-within{outline-color:#595959!important;box-shadow:none!important}
}
