:root {
  color-scheme: light;
  --paper:#fffaf5; --ink:#392726; --muted:#725954; --line:#e7d5cc;
  --accent:#854d54; --accent-deep:#6e3943; --soft:#f6e8e2; --white:#fffdf9;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', system-ui, sans-serif;
  font-family:var(--sans);
}
[data-theme=salvia] { --paper:#f8f8ef; --ink:#303b30; --muted:#566454; --line:#d4ddce; --accent:#456149; --accent-deep:#344d36; --soft:#e8eddf; --white:#fdfdf7 }
[data-theme=noche] { --paper:#f9fbff; --ink:#242f49; --muted:#515e78; --line:#d8e0ed; --accent:#374d7b; --accent-deep:#293c65; --soft:#eaf0fa; --white:#fff }
[data-theme=terracota] { --paper:#fff8ed; --ink:#482b22; --muted:#6d4b3c; --line:#e8cbbb; --accent:#9c4d36; --accent-deep:#793724; --soft:#f8e4d5; --white:#fffdf7 }
[data-theme=lavanda] { --paper:#fbf7ff; --ink:#372a4a; --muted:#655477; --line:#e4d6ef; --accent:#765892; --accent-deep:#5c3e79; --soft:#f2e8fa; --white:#fffdfd }
*,*::before,*::after { box-sizing:border-box }
body { margin:0; color:var(--ink); background:var(--paper); line-height:1.55; font-size:1rem }
[hidden] { display:none!important }
h1,h2,h3,h4,p,figure { margin:0 }
h1,h2,h3,h4 { line-height:1.13 }
a { color:var(--accent-deep); text-underline-offset:.2em }
button,input,select,textarea { font:inherit }
button { cursor:pointer }
button:disabled { cursor:wait; opacity:.58 }
:focus-visible { outline:3px solid var(--accent); outline-offset:3px }
.skip { position:fixed; z-index:20; inset:0 auto auto 0; transform:translateY(-120%); background:white; padding:1rem }
.skip:focus { transform:none }
.button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; min-width:44px; padding:.63rem 1.2rem; gap:.4rem; border:1px solid var(--accent-deep); border-radius:999px; background:var(--accent-deep); color:white; font-weight:650; font-size:.92rem; line-height:1.25; text-decoration:none; text-align:center }
.button:hover { background:var(--accent); border-color:var(--accent) }
.button.ghost { background:transparent; color:var(--accent-deep); border-color:var(--line) }
.button.ghost:hover { background:var(--soft); border-color:var(--accent) }
.button.small { padding:.42rem .78rem; font-size:.85rem }
.secondary { color:var(--muted) }
.kicker { text-transform:uppercase; font-size:.85rem; font-weight:700; letter-spacing:.15em; color:var(--accent-deep) }
.actions { display:flex; flex-wrap:wrap; gap:.55rem; align-items:center }
.feedback { min-height:1.5rem; font-size:.92rem; color:var(--muted); margin-top:.4rem }
.feedback[data-kind=error],.check-result[data-kind=error] { color:#923a42 }
.feedback[data-kind=ok]:not(:empty),.check-result[data-kind=ok] { color:#32604a }
label { display:block; font-weight:650; font-size:.9rem; margin-bottom:.28rem }
input:not([type=checkbox]),textarea,select { width:100%; min-height:44px; border:1px solid var(--line); border-radius:10px; background:var(--white); color:var(--ink); padding:.55rem .7rem }
input[type=file] { max-width:100%; padding:.4rem }
input[type=file]::file-selector-button { border:0; padding:.4rem .7rem; border-radius:6px; color:var(--accent-deep); background:var(--soft); font-weight:650; margin-right:.5rem }
.checkbox { display:flex; align-items:flex-start; gap:.6rem; min-height:44px; padding-top:.5rem }
.checkbox input { accent-color:var(--accent); width:1.15rem; height:1.15rem; margin:.17rem 0 0; flex:none }
textarea { resize:vertical }
.dialog { width:min(620px,calc(100% - 1.7rem)); max-height:88vh; overflow:auto; padding:clamp(1.3rem, 4vw, 2rem); border-radius:17px; border:1px solid var(--line); background:var(--white); color:var(--ink) }
.dialog::backdrop { background:#231c2888 }
.dialog h2 { font-size:1.9rem; margin:.4rem 2.5rem .7rem 0 }
.dialog p,.dialog textarea { margin-bottom:.8rem }
.close { position:absolute; inset:.5rem .5rem auto auto; min-width:44px; min-height:44px; border:0; background:transparent; font-size:1.6rem; color:var(--ink) }
.narrow { max-width:680px; margin:auto; padding:clamp(2.5rem,10vw,7rem) 1.4rem }
.entry h1 { font-family:var(--serif); font-size:clamp(2.7rem,7vw,5rem); font-weight:normal; margin:.5rem 0 1rem }
.entry p { max-width:50ch; margin-bottom:1.1rem }
.shell { width:min(1060px,calc(100% - 3rem)); margin:auto }
.invite-header { display:flex; justify-content:space-between; align-items:center; gap:1rem; min-height:72px; padding:.45rem clamp(1.25rem,6vw,5.8rem); border-bottom:1px solid var(--line); background:var(--paper) }
.invite-brand { display:inline-flex; align-items:center; gap:.55rem; color:var(--ink); font-family:var(--serif); font-size:1.35rem; text-decoration:none; white-space:nowrap; min-height:44px }
.invite-brand i,.invite-footer i { color:var(--accent) }
.cross { width:28px; height:28px; display:grid; place-items:center; border:1px solid var(--line); color:var(--accent-deep); border-radius:50%; font-size:1rem }
.invite-header nav { display:flex; flex-wrap:wrap; align-items:center; gap:clamp(.45rem,3vw,1.8rem) }
.invite-header nav a { font-size:.87rem; font-weight:650; color:var(--ink); text-decoration:none; display:inline-flex; align-items:center; min-height:44px }
.invite-header nav a:hover { color:var(--accent-deep); text-decoration:underline }
.hero { width:min(1200px,100%); display:grid; grid-template-columns:1fr .82fr; align-items:center; column-gap:clamp(1.8rem,6vw,6rem); padding:clamp(2.5rem,6.4vw,6rem) clamp(1.4rem,6vw,4.9rem) clamp(2.5rem,5vw,4.65rem); margin:auto }
.hero-copy { padding:.8rem 0 .6rem; text-align:center }
.hero-mark { position:relative; display:inline-grid; place-items:center; border:1px solid var(--line); border-radius:50%; width:62px; height:62px; color:var(--accent); font-size:2rem; margin-bottom:1.3rem }
.hero-mark::before,.hero-mark::after { content:''; position:absolute; top:50%; width:36px; border-top:1px solid var(--line) }
.hero-mark::before { right:calc(100% + .55rem) }
.hero-mark::after { left:calc(100% + .55rem) }
.hero h1 { font:normal clamp(3.2rem,7vw,6.6rem)/.94 var(--serif); letter-spacing:-.076em; margin:.56rem auto 1.25rem; color:var(--ink); overflow-wrap:anywhere }
.hero-intro { max-width:37ch; margin:auto; color:var(--muted); font-size:1.06rem }
.event-date { margin:1.13rem auto 1.44rem; font-size:.9rem; font-weight:700; color:var(--accent-deep) }
.music-button { display:flex; align-items:center; justify-content:center; gap:.5rem; min-height:44px; margin:.4rem auto 0; border:0; background:transparent; color:var(--accent-deep); font-size:.9rem }
.music-button:hover { text-decoration:underline }
.hero-copy .feedback { min-height:0; margin:0 }
.hero-picture { margin:0; text-align:center; min-width:0 }
.picture-frame { position:relative; display:grid; place-items:center; margin:auto; width:100%; max-width:430px; aspect-ratio: .78; background:radial-gradient(ellipse at 40% 18%,var(--white),var(--soft) 72%); overflow:hidden; border:1px solid var(--line); border-radius:48% 48% 2.5rem 2.5rem / 41% 41% 2.5rem 2.5rem; isolation:isolate }
.picture-frame::after { position:absolute; content:''; inset:.65rem; border:1px solid #fffaf4c5; border-radius:inherit; pointer-events:none }
.picture-frame img { position:absolute; width:100%; height:100%; object-fit:cover; object-position:center; inset:0 }
.cover-monogram { font:italic clamp(5rem, 12vw, 11rem)/1 var(--serif); color:var(--accent); letter-spacing:-.12em; margin-right:.1em }
.hero-picture figcaption { font-size:.8rem; color:var(--muted); margin-top:.52rem }
.countdown { padding:2.15rem 1rem 2.3rem; background:var(--soft); text-align:center; border-block:1px solid var(--line) }
.countdown-grid { display:grid; grid-template-columns:repeat(4,1fr); width:min(500px,100%); margin:1.05rem auto 0 }
.countdown-grid div+div { border-left:1px solid var(--line) }
.countdown-grid strong { display:block; font:normal clamp(2rem,6vw,3.65rem)/1 var(--serif); color:var(--accent-deep); font-variant-numeric:tabular-nums }
.countdown-grid span { display:block; margin-top:.33rem; font-size:.86rem }
.section { padding-block:clamp(3.2rem,7vw,5.65rem); scroll-margin-top:1rem }
.section-head { text-align:center; max-width:55ch; margin:0 auto 1.7rem }
.section h2 { font:normal clamp(2.43rem,5.5vw,4rem)/1.05 var(--serif); margin:.45rem 0 .7rem; letter-spacing:-.05em }
.section-head p:not(.kicker),.response-copy p:not(.kicker) { color:var(--muted); margin-top:.45rem }
.time-grid { display:grid; grid-template-columns:1fr 1fr; gap:1rem; max-width:850px; margin:auto }
.venue,.paper { border:1px solid var(--line); border-radius:18px; padding:clamp(1.15rem,3vw,2rem); background:var(--white) }
.venue { text-align:center }
.venue h3,.paper h3 { font:normal 1.85rem/1.08 var(--serif); margin:.36rem 0 .5rem }
.venue-icon { color:var(--accent); font-size:1.65rem }
.text-link { display:inline-flex; min-height:44px; align-items:center; font-size:.9rem; font-weight:650 }
.hosts { display:flex; justify-content:center; flex-wrap:wrap; gap:1.2rem 3.2rem; text-align:center; padding-top:1.55rem; color:var(--muted) }
.hosts strong { display:block; font-weight:650; color:var(--ink); margin-top:.22rem }
.response-section { background:var(--soft); border-block:1px solid var(--line) }
.response-grid { display:grid; grid-template-columns:.85fr 1fr; align-items:start; gap:clamp(1.5rem,5vw,4rem); max-width:900px }
.response-copy { padding-top:1.45rem }
.response-copy p { max-width:37ch }
.paper #rsvp { margin-top:1.1rem }
.paper .actions { margin-top:.7rem }
.guest-pass { text-align:center; margin-top:1rem; border-top:1px solid var(--line); padding-top:1rem }
.guest-pass img,.guest-pass code,.guest-pass small { display:block; margin:.45rem auto }
.guest-pass code { font-size:.78rem; user-select:all; overflow-wrap:anywhere }
.upload-form { max-width:620px; margin:auto }
.upload-form label:not(:first-child),#cover-form label:not(:first-child) { margin-top:.75rem }
.photo-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr)); gap:1rem; margin-top:1.15rem }
.photo-grid img { display:block; width:100%; aspect-ratio:1; object-fit:cover; border-radius:10px; background:var(--soft) }
.photo-grid figcaption { margin:.38rem 0; color:var(--muted); overflow-wrap:anywhere }
.invite-footer { border-top:1px solid var(--line); background:var(--soft); padding:1.3rem 0 }
.footer-grid { display:flex; align-items:center; justify-content:space-between; gap:1rem }
.brand-footer {
  max-width:31rem; margin:.85rem auto 0; padding:.85rem 1rem 0; border-top:1px solid var(--line);
  text-align:center; color:var(--muted); font-size:.8125rem; line-height:1.5;
}
.invite-footer .brand-footer p { font-family:var(--sans); font-size:inherit }
.brand-footer .brand-footer-name { color:var(--ink); font-weight:750; letter-spacing:.08em }
.brand-footer-service { display:flex; align-items:center; justify-content:center; gap:.4rem; margin-top:.2rem }
.brand-footer-service img { flex:none }
.brand-footer a { display:inline-block; padding:.45rem .25rem; font-weight:650 }
.invite-footer p { font-family:var(--serif); font-size:1.25rem }
.invite-footer small { display:block; color:var(--muted); font:.8rem var(--sans) }
.admin { --paper:#f5f4f9; --white:#fff; --ink:#25233a; --muted:#56516a; --line:#dfdcea; --accent:#594d80; --accent-deep:#403363; --soft:#efecf8 }
.admin h1,.admin h2,.admin h3 { letter-spacing:-.04em }
.login { display:grid; min-height:100vh; place-items:center; padding:1rem; background:radial-gradient(ellipse at 30% 20%,#f0e9ff,#eeedf5 55%,#e5dfed) }
.login-card { width:min(440px,100%); padding:clamp(1.35rem,5vw,3rem); border-radius:22px; border:1px solid var(--line); background:var(--white); box-shadow:0 18px 52px #332a5220 }
.login-card h1 { font-size:2.3rem; margin:.8rem 0 .45rem }
.login-card form { margin-top:1.15rem }
.login-card button { margin-top:.8rem }
.admin-brand { font-weight:750; font-size:1.08rem; letter-spacing:-.02em }
.admin-brand span { margin-right:.28rem }
.admin-layout { min-height:100vh; display:grid; grid-template-columns:246px minmax(0,1fr) }
.sidebar { display:flex; flex-direction:column; align-items:stretch; gap:.4rem; padding:1.65rem 1rem; background:#312845; color:#fff }
.sidebar .admin-brand { margin-bottom:1.2rem }
.sidebar label { color:#e6ddf4; margin:0; font-size:.84rem }
.sidebar select { color:#fff; background:#4c405e; border-color:#756691; font-size:.85rem; width:100% }
.sidebar button { color:#f6f1ff; min-height:44px; background:none; border:0; border-radius:8px; padding:.48rem .7rem; text-align:left; font-weight:650; font-size:.9rem }
.sidebar button:hover,.sidebar button.active { background:#6a5988 }
.sidebar nav { display:grid; gap:.25rem; margin:1.4rem 0 }
.sidebar .logout { margin-top:auto }
.sidebar :focus-visible { outline-color:#eedfff }
.workspace { max-width:1350px; width:100%; padding:clamp(1rem,4vw,3.4rem) }
.panel-top,.panel-bar { display:flex; justify-content:space-between; align-items:center; gap:.75rem; flex-wrap:wrap }
.panel-top h1 { font-size:clamp(2rem,5vw,3.9rem); font-family:var(--serif); font-weight:normal; margin:.35rem 0 .18rem; overflow-wrap:anywhere }
.panel-card { padding:clamp(1rem,3vw,1.7rem); border:1px solid var(--line); border-radius:16px; background:var(--white); margin:0 0 .9rem }
.panel-card h2 { font-size:1.45rem; margin:.2rem 0 .52rem }
.panel-card h3 { font-size:1.2rem }
.stats { display:grid; grid-template-columns:repeat(4,1fr); gap:.8rem; margin:0 0 .9rem }
.stat { display:grid; min-width:0; padding:clamp(.8rem,2vw,1.4rem); border-radius:15px; border:1px solid var(--line); background:var(--white) }
.stat strong { font-size:clamp(1.5rem,4vw,2.7rem); font-weight:700; line-height:1; margin-bottom:.35rem; color:var(--accent-deep) }
.stat span { color:var(--muted); font-size:.91rem }
.meter-row { display:grid; grid-template-columns:minmax(90px,1fr) 3fr 2rem; align-items:center; gap:.5rem; margin:.7rem 0 }
progress { width:100%; height:.8rem; accent-color:var(--accent) }
.filter { display:grid; grid-template-columns:minmax(100px,1fr) 165px; gap:.22rem .8rem; margin:.85rem 0 }
.filter input,.filter select { grid-row:2 }
.family-row { display:grid; grid-template-columns:1fr auto auto; gap:.55rem 1rem; align-items:center; padding:.85rem 0; border-top:1px solid var(--line) }
.family-row p { font-size:.87rem; overflow-wrap:anywhere }
.tag { border-radius:999px; color:#574770; background:#f0eaf9; padding:.3rem .64rem; font-weight:650; font-size:.8rem; justify-self:start; white-space:nowrap }
.tag.yes { color:#2e5e46; background:#e0f0e6 }
.tag.no { color:#823741; background:#f8e8ed }
.guest-options { position:relative }
.guest-options summary { display:flex; align-items:center; min-height:44px; padding:0 .25rem; cursor:pointer; font-size:.88rem; color:var(--accent-deep); font-weight:650 }
.guest-options[open]>.actions { position:absolute; right:0; z-index:1; width:180px; padding:.55rem; border:1px solid var(--line); box-shadow:0 .4rem 1rem #32234621; background:var(--white); border-radius:10px }
.tables-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr)); gap:.8rem; margin-top:.8rem }
.table-card,.photo-item { padding:.85rem; border:1px solid var(--line); border-radius:12px }
.table-card p,.photo-item p { margin:.35rem 0; overflow-wrap:anywhere }
.table-card .button,.photo-item .actions { margin-top:.55rem }
.door-form { display:grid; grid-template-columns:minmax(0,350px) auto; align-items:end; justify-content:start; gap:.28rem .65rem; margin:.9rem 0 .65rem }
.door-form label { grid-column:span 2; margin:0 }
.check-result:not(:empty) { padding:.7rem; background:var(--soft); border-radius:9px; margin-top:.45rem }
#camera { display:block; width:min(420px,100%); border-radius:12px; margin-top:.7rem }
.arrival { border-bottom:1px solid var(--line); padding:.6rem 0 }
#settings { display:grid; grid-template-columns:auto 1fr; gap:.45rem 1rem; padding-bottom:.75rem; border-bottom:1px solid var(--line) }
#settings dt { font-weight:650 }
#settings dd { margin:0; color:var(--muted) }
#cover-form,#family-gallery-form { max-width:470px }
#family-gallery-form { margin-top:1.2rem; padding-top:1rem; border-top:1px solid var(--line) }
#family-gallery-form label:not(:first-child) { margin-top:.75rem }
.field-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.7rem; margin:.8rem 0 1rem }
.field-grid .full,.field-grid .checkbox { grid-column:1/-1 }
.scan-photo { margin-top:1rem; max-width:350px }
[data-event=Bautizo] .invitation {
  background: radial-gradient(ellipse at 55% 16rem,#fffbf5 5%,var(--paper) 62%);
}
[data-event=Bautizo] .hero-mark {
  color:#835146; background:#fff9f0; border-color:#dfc7b1;
  box-shadow:inset 0 0 0 4px #fffaf5;
}
[data-event=Bautizo] .hero h1 { letter-spacing:-.065em }
[data-event=Bautizo] .picture-frame { border-color:#dbc3a7; box-shadow:0 15px 38px #5b33241a }
[data-event=Bautizo] .picture-frame::after { border-color:#fff6e0e0; inset:.55rem }
[data-event=Boda] .picture-frame { border-radius:12px 12px 34% 34% / 12px 12px 25% 25% }
[data-event="XV años"] .picture-frame { border-radius:42% 42% 18% 18% / 31% 31% 14% 14% }
[data-event=Cumpleaños] .picture-frame { border-radius:31% 18% 31% 18% / 27% 15% 27% 15% }
[data-event="Baby shower"] .picture-frame { border-radius:47% 47% 47% 47% / 39% 39% 39% 39% }
@media (max-width:840px) {
  .admin-layout { grid-template-columns:185px minmax(0,1fr) }
  .family-row { grid-template-columns:1fr auto }
  .family-row>.actions { grid-column:1/-1 }
}
@media (max-width:640px) {
  .invite-header { flex-direction:column; gap:0; padding:.4rem 1rem }
  .invite-header nav { gap:1.2rem }
  .hero { grid-template-columns:1fr; padding:1.65rem 1.4rem 2rem; gap:1.4rem }
  .hero h1 { font-size:clamp(3.15rem,13.8vw,5.05rem) }
  .hero-copy { padding:.1rem 0 0 }
  .hero-mark { width:46px;height:46px;font-size:1.45rem;margin-bottom:.75rem }
  .picture-frame { width:min(86%,355px); aspect-ratio:1.05; border-radius:47% 47% 1.2rem 1.2rem / 43% 43% 1.2rem 1.2rem }
  .shell { width:calc(100% - 2rem) }
  .response-grid,.time-grid { grid-template-columns:1fr }
  .response-copy { padding-top:0 }
  .admin-layout { display:block }
  .sidebar { padding:.8rem 1rem }
  .sidebar .admin-brand { margin:0 0 .45rem }
  .sidebar select { max-width:420px }
  .sidebar nav { grid-template-columns:repeat(3,minmax(0,1fr)); margin:.3rem 0; gap:.3rem }
  .sidebar nav button { background:#4c405e; width:100%; text-align:center; padding-inline:.25rem }
  .sidebar nav button.active { background:#766392 }
  .sidebar .logout { align-self:flex-start; margin-top:0 }
  .stats { grid-template-columns:repeat(2,1fr); gap:.55rem }
  .panel-view { scroll-margin-top:.8rem }
}
@media (max-width:390px) {
  .field-grid,.door-form { grid-template-columns:1fr }
  .door-form label { grid-column:auto }
  .filter { grid-template-columns:minmax(0,1fr) minmax(95px,.75fr) }
  .guest-options[open]>.actions { position:static }
}
@media (max-width:640px) {
  .hero { padding-top:1.3rem; gap:1.05rem }
  .hero h1 { margin:.43rem auto .77rem; font-size:clamp(3.1rem,12.8vw,4.4rem) }
  .hero-mark { width:44px; height:44px; margin-bottom:.5rem }
  .hero-intro { font-size:1rem }
  .event-date { margin:.64rem auto .82rem }
  .picture-frame { width:min(90%,350px); aspect-ratio:1.18 }
  .hero-picture figcaption { margin-top:.42rem }
}
@media (min-width:365px) and (max-width:640px) {
  .invite-header { min-height:65px; flex-direction:row; padding-inline:1rem }
  .invite-header nav { gap:.55rem }
  .invite-header nav a { font-size:.77rem }
  .invite-brand { font-size:1.1rem; gap:.35rem }
  .cross { width:23px; height:23px }
}

.phone-row { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:stretch; gap:.45rem }
.phone-prefix {
  display:flex; align-items:center; justify-content:center; gap:.38rem; min-height:44px; min-width:88px;
  background:var(--soft); border:1px solid var(--line); border-radius:10px; color:var(--accent-deep);
  padding:.42rem .54rem; white-space:nowrap; font-weight:700;
}
.phone-prefix:hover { border-color:var(--accent) }
.phone-row input { min-width:0 }
.country-flag {
  display:inline-block; flex:none; width:24px; height:18px; border-radius:3px;
  background-image:url('/vendor/country-flags.webp'); background-size:384px 288px;
  box-shadow:0 0 0 1px #36254d19; vertical-align:middle;
}
.phone-hint { display:block; font-size:.84rem; margin:.33rem 0 .6rem }
.country-picker { width:min(450px,calc(100% - 1.5rem)); padding:1.2rem; }
.country-picker label { margin:.85rem 0 .55rem }
.country-picker input { margin-top:.25rem }
.country-options { max-height:min(49vh,375px); overflow:auto; overscroll-behavior:contain; padding:.18rem .2rem }
.country-option {
  display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:.72rem;
  width:100%; padding:.56rem .55rem; min-height:44px; text-align:left; border:0; border-bottom:1px solid var(--line);
  background:var(--white); color:var(--ink); border-radius:7px;
}
.country-option:hover,.country-option[aria-current=true] { background:var(--soft) }
.country-option strong { color:var(--accent-deep); font-size:.91rem }
.guest-phone { display:flex; align-items:center; gap:.5rem; margin-top:.38rem; font-variant-numeric:tabular-nums }
.family-row { grid-template-columns:minmax(12rem,1fr) auto minmax(0,2.3fr); align-items:start }
.family-controls { min-width:0 }
.request-controls { margin-bottom:.45rem }
.family-controls > .feedback:empty { min-height:0; margin:0 }
.family-controls > .feedback:not(:empty) { margin-top:.4rem }
#passes-dialog img { display:block; max-width:100%; height:auto; margin:.8rem auto }
@media(max-width:1000px) {
  .family-row { grid-template-columns:minmax(0,1fr) auto; align-items:start }
  .family-row>.family-controls { grid-column:1/-1 }
}

.share-preview-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,285px),1fr)); gap:1rem }
.share-preview-grid article { min-width:0; padding:.9rem; border:1px solid var(--line); border-radius:12px }
.share-preview-grid img { display:block; width:100%; height:auto; margin-bottom:.8rem; border-radius:8px }
.share-preview-grid h3 { margin:.25rem 0; overflow-wrap:anywhere }
.share-preview-grid .secondary { overflow-wrap:anywhere }
