:root {
  --bg: #fffdf8; --panel: #ffffff; --ink: #1d1d1f; --muted: #6b6b70; --line: #e8e4dc;
  --accent: #1d1d1f; --accent-ink: #ffffff; --gold: #ffd166; --ok: #2f9e6e; --bad: #c0392b;
  --radius: 14px; --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; --serif: Georgia, "Times New Roman", serif;
}
body.theme-memorial { --bg: #f4efe9; --panel: #fbf8f4; --ink: #2b2a2a; --muted: #7a726b; --line: #e3dbd1; --accent: #5a4a42; --gold: #d9b98c; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; }
h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 6vw, 48px); letter-spacing: -.01em; }
h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 4vw, 30px); }
h3 { font-size: 17px; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 18px; }
.narrow { max-width: 560px; }
main { flex: 1; }

.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; max-width: 1080px; margin: 0 auto; width: 100%; }
.nav nav { display: flex; gap: 12px; align-items: center; font-size: 15px; }
.nav nav a { text-decoration: none; color: var(--muted); }
.nav nav a:hover, .nav nav a.pill { color: var(--ink); }
.pill { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.brand { font-weight: 700; text-decoration: none; display: flex; align-items: center; gap: 8px; font-size: 18px; }
.brand .dot { width: 14px; height: 14px; border-radius: 4px; background: var(--ink); position: relative; }
.brand .dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--gold); }
@media (max-width: 640px) { .nav nav a:not(.pill):not(:last-child) { display: none; } }

.foot { border-top: 1px solid var(--line); margin-top: 48px; padding: 20px 0; font-size: 13px; color: var(--muted); }
.foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.foot a { color: inherit; }

.btn { display: inline-block; appearance: none; border: 0; background: var(--accent); color: var(--accent-ink); font: 600 16px var(--sans); padding: 12px 20px; border-radius: 12px; cursor: pointer; text-decoration: none; text-align: center; }
.btn:hover { filter: brightness(1.15); }
.btn.big { font-size: 20px; padding: 18px 26px; width: 100%; border-radius: 16px; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.gold { background: var(--gold); color: #1d1d1f; }
.btn.danger { background: var(--bad); }
.btn.sm { font-size: 13px; padding: 6px 10px; border-radius: 8px; }
.btn[disabled] { opacity: .5; cursor: default; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stack > * + * { margin-top: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
label .hint { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=url], input[type=date], textarea, select { width: 100%; font: 16px var(--sans); padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
textarea { min-height: 90px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 15px; }
.check input { margin-top: 4px; }
.err { background: #fdecea; color: #7a1d14; border: 1px solid #f5c6c2; padding: 10px 14px; border-radius: 10px; }
.ok { background: #e6f6ee; color: #145c3a; border: 1px solid #b9e4cc; padding: 10px 14px; border-radius: 10px; }

/* landing */
.hero { padding: 40px 0 24px; text-align: center; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 620px; margin: 0 auto 22px; }
.promises { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 26px 0; text-align: left; }
.promises .card h3 { margin-bottom: 4px; }
.price { font-family: var(--serif); font-size: 44px; font-weight: 600; }
.price small { font: 15px var(--sans); color: var(--muted); }
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.demo-qr { width: 160px; height: 160px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 8px; }

/* guest page */
.guest-head { text-align: center; padding: 26px 0 8px; }
.guest-head .cover { width: 100%; max-height: 42vh; object-fit: cover; border-radius: var(--radius); margin-bottom: 14px; }
.guest-head h1 { margin-bottom: 4px; }
.uploader { margin: 14px 0 26px; }
.uploader input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.uprow { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.uprow .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uprow .bar { width: 110px; height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.uprow .bar i { display: block; height: 100%; width: 0; background: var(--ok); transition: width .2s; }
.uprow.fail .bar i { background: var(--bad); }
.uprow .st { width: 64px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.banner { text-align: center; padding: 16px; border-radius: var(--radius); background: #e6f6ee; color: #145c3a; font-weight: 600; margin: 12px 0; }
.mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
@media (min-width: 640px) { .mgrid { grid-template-columns: repeat(4, 1fr); gap: 6px; } }
@media (min-width: 900px) { .mgrid { grid-template-columns: repeat(6, 1fr); } }
.cell { position: relative; aspect-ratio: 1; background: #ece8e0; border-radius: 6px; overflow: hidden; cursor: pointer; }
.cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cell .play, .cell .file { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 34px; text-shadow: 0 1px 6px rgba(0,0,0,.5); pointer-events: none; }
.cell .file { color: var(--muted); font-size: 12px; text-shadow: none; flex-direction: column; padding: 6px; text-align: center; word-break: break-all; }
.cell .who { position: absolute; left: 0; right: 0; bottom: 0; font-size: 11px; padding: 3px 6px; background: linear-gradient(transparent, rgba(0,0,0,.6)); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell.hidden-item { outline: 2px dashed var(--bad); opacity: .55; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.94); display: none; z-index: 50; align-items: center; justify-content: center; flex-direction: column; }
.lightbox.open { display: flex; }
.lightbox img, .lightbox video { max-width: 100vw; max-height: 82vh; object-fit: contain; }
.lightbox .cap { color: #ddd; font-size: 14px; padding: 10px 16px; text-align: center; max-width: 720px; }
.lightbox .x { position: absolute; top: 10px; right: 12px; color: #fff; background: rgba(255,255,255,.15); border: 0; font-size: 26px; width: 44px; height: 44px; border-radius: 22px; cursor: pointer; }
.lightbox .dl { position: absolute; top: 12px; left: 12px; color: #fff; font-size: 14px; text-decoration: none; background: rgba(255,255,255,.15); padding: 8px 12px; border-radius: 10px; }
.lightbox .nav-l, .lightbox .nav-r { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; background: rgba(255,255,255,.12); border: 0; font-size: 30px; width: 44px; height: 64px; cursor: pointer; }
.lightbox .nav-l { left: 4px; } .lightbox .nav-r { right: 4px; }
.lightbox .rm { color: #ffb4a8; background: rgba(255,255,255,.12); border: 0; font: 13px var(--sans); padding: 8px 12px; border-radius: 10px; cursor: pointer; margin: 0 0 14px; }
.lightbox .rm[hidden] { display: none; }

/* memorial */
.mem-head { text-align: center; padding: 30px 0 10px; }
.mem-head .portrait { width: 200px; height: 200px; object-fit: cover; border-radius: 50%; border: 6px solid #fff; box-shadow: 0 6px 24px rgba(0,0,0,.12); margin-bottom: 16px; }
.mem-head .dates { font-family: var(--serif); font-size: 20px; color: var(--muted); }
.service { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.obit { font-family: var(--serif); font-size: 18px; line-height: 1.65; white-space: pre-line; }
.reacts { display: flex; gap: 12px; justify-content: center; margin: 18px 0; }
.react { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 10px 18px; font: 600 16px var(--sans); cursor: pointer; }
.react.on { background: var(--gold); border-color: var(--gold); }
.memory { border-top: 1px solid var(--line); padding: 14px 0; }
.memory .who { font-weight: 600; }
.memory .when { color: var(--muted); font-size: 13px; }
.memory p { margin: 6px 0 0; white-space: pre-line; font-family: var(--serif); font-size: 17px; }
.memory.hidden-item { opacity: .5; }

/* host */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.stat b { display: block; font-size: 24px; font-family: var(--serif); }
.stat span { font-size: 13px; color: var(--muted); }
.qrbox { text-align: center; }
.qrbox img { width: 200px; height: 200px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.urlbox { font-family: ui-monospace, Menlo, monospace; font-size: 15px; background: #f5f2ea; padding: 8px 12px; border-radius: 8px; word-break: break-all; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; }
.cell .mod { position: absolute; top: 4px; right: 4px; display: flex; gap: 3px; }
.cell .mod button { font-size: 11px; padding: 3px 6px; border-radius: 6px; border: 0; background: rgba(255,255,255,.9); cursor: pointer; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.tabs { display: flex; gap: 14px; border-bottom: 1px solid var(--line); margin: 16px 0; font-weight: 600; overflow-x: auto; }
.tabs a { text-decoration: none; padding: 10px 2px; color: var(--muted); white-space: nowrap; }
.legal { max-width: 760px; }
.legal h2 { margin-top: 1.6em; }
.legal pre { white-space: pre-wrap; }
code { background: #f5f2ea; padding: 2px 5px; border-radius: 4px; font-size: 90%; }
.inline-form { display: inline; }

/* Wedding redesign: photographs lead; controls stay quiet. */
:root { --bg:#fff; --ink:#171918; --line:#e3e6e1; --gold:#6b7b2f; --olive:#6b7b2f; --olive-soft:#eef2e4; --radius:8px; }
h1,h2 { font-family:var(--sans); font-weight:650; letter-spacing:-.04em; }
.nav { padding-top:24px; padding-bottom:32px; }
.brand { font-size:24px; letter-spacing:-1px; }
.brand .dot { background:var(--gold); width:24px; height:24px; border-radius:3px; transform:rotate(-9deg); }
.brand .dot::after { background:var(--ink); inset:8px; border-radius:0; }
.btn { border-radius:6px; min-height:44px; }
.btn.lime { background:var(--olive); color:#fff; padding:16px 24px; }
.btn.gold { background:var(--olive); color:#fff; }
.btn.lime:hover, .btn.gold:hover { filter:brightness(1.08); }
.btn.lime span { margin-left:24px; }
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible { outline:3px solid #6b7b2f; outline-offset:4px; }
.wedding-home { max-width:1200px; }
.wedding-hero { padding:36px 0 44px; text-align:center; }
.eyebrow { font-size:12px; letter-spacing:.16em; font-weight:650; }
.wedding-hero h1 { font-size:clamp(54px,8vw,104px); line-height:.98; letter-spacing:-.065em; margin:24px 0; }
.wedding-hero h1 em { font-family:Georgia,serif; font-weight:400; letter-spacing:-.055em; }
.wedding-hero p:not(.eyebrow) { color:#535b54; font-size:17px; margin-bottom:24px; }
.price-note { display:block; margin-top:12px; font-size:14px; color:var(--muted); }
.camera-roll { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; margin:12px 24px 64px; align-items:start; }
.camera-roll figure { margin:0; transform:rotate(-3deg); }
.camera-roll figure:nth-child(2) { transform:rotate(2deg); margin-top:28px; }
.camera-roll figure:nth-child(3) { transform:rotate(-2deg); }
.camera-roll img { display:block; width:100%; height:auto; aspect-ratio:3/4; border-radius:2px; }
.camera-roll figcaption { font-size:14px; margin-top:10px; }
.wedding-steps { list-style:none; padding:24px 0; border-block:1px solid var(--line); display:flex; justify-content:space-between; gap:20px; }
.wedding-steps span { color:var(--muted); margin-right:12px; font-size:14px; }
.keep-section { display:grid; grid-template-columns:1fr 1fr; gap:50px; padding:68px 0 36px; }
.keep-section h2 { font-size:clamp(30px,4vw,48px); }
.keep-section p { max-width:450px; }
.wedding-faq { max-width:700px; margin:10px auto 40px; }
summary { cursor:pointer; font-weight:600; min-height:44px; padding:10px 0; }
details > summary + * { margin-top:14px; }
.faq details p { padding-top:10px; }
.host-actions { display:flex; flex-wrap:wrap; gap:10px; margin:24px 0; }
.retention-note { padding:18px 0; border-block:1px solid var(--line); margin-bottom:24px; }
.retention-note p { margin:4px 0 0; }
.host-layout .stats { display:flex; gap:24px; }
.host-layout .stat { padding:0; border:0; }
.host-layout .stat b { font-family:var(--sans); font-size:22px; }
.host-layout details { margin:24px 0; border-top:1px solid var(--line); }
.mgrid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.cell { aspect-ratio:3/4; background:#f2f3ef; }
.cell img { object-fit:contain; }
.cell .who { font-size:14px; }
.cell .mod { flex-wrap:wrap; left:4px; }
.cell .mod button { min-height:36px; min-width:32px; font-size:13px; }
.urlbox { background:#f4f5f1; }
.foot { font-size:14px; }
@media(max-width:640px) {
 .nav { padding:20px 18px; }
 .wedding-hero { padding-top:24px; }
 .camera-roll { gap:10px; margin:0 8px 36px; }
 .camera-roll figure:nth-child(2) { margin-top:18px; }
 .camera-roll figcaption { font-size:12px; }
 .wedding-steps { flex-direction:column; gap:16px; }
 .keep-section { grid-template-columns:1fr; gap:18px; padding:36px 0 12px; }
 .mgrid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .grid2 { grid-template-columns:minmax(0,1fr); }
 .host-actions .btn { flex:1 1 auto; }
 .host-layout .stats { flex-wrap:wrap; }
}

.wedding-hero h1 { font-size:clamp(48px,7.5vw,88px); margin:18px 0 24px; }
.wedding-hero { padding:32px 0 44px; }
.illustrated-steps { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:32px; list-style:none; padding:32px 0; border-top:1px solid var(--line); }
.illustrated-steps img { width:100%; height:160px; object-fit:contain; }
.illustrated-steps h2 { font-size:20px; letter-spacing:-.025em; margin:12px 0 8px; }
.illustrated-steps p { color:var(--muted); font-size:15px; }
.step-number { display:inline-flex; align-items:center; justify-content:center; background:#eef2e4; width:26px; height:26px; border-radius:50%; font-size:14px; }
.registration { max-width:860px; padding-top:24px; }
.registration h1 { font-size:clamp(32px,5vw,46px); }
.plan-picker { border:0; padding:16px 0; display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.plan-picker legend { padding:0; font-size:16px; }
.plan { display:flex; gap:12px; padding:22px; border:1px solid var(--line); border-radius:10px; cursor:pointer; font-weight:400; }
.plan:has(input:checked) { border:2px solid #6b7b2f; padding:21px; background:#eef2e4; }
.plan input { margin:6px 0 0; accent-color:#526b13; }
.plan span span { display:block; margin-top:12px; font-size:15px; }
.plan strong { display:flex; flex-wrap:wrap; gap:14px; justify-content:space-between; font-size:18px; }
.registration-fields { max-width:520px; margin:12px auto; }
.registration-fields > div { margin:18px 0; }
@media(max-width:700px) { .illustrated-steps { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; } .plan-picker { grid-template-columns:1fr; } }
@media(max-width:380px) { .illustrated-steps { grid-template-columns:1fr; } }

.registration-choices { display:grid; grid-template-columns:1fr 1fr; gap:28px; margin:32px 0; }
.choice { padding:26px; border:1px solid var(--line); border-radius:10px; }
.choice:first-child { background:#eef2e4; }
.choice h2 { font-size:28px; }
.choice ul { padding-left:18px; margin:24px 0; }
.choice li { margin:10px 0; }
.choice .small { margin:18px 0 0; }
.event-registration { border-top:1px solid var(--line); padding:18px 0; }
.event-registration summary { font-size:20px; }
@media(max-width:600px) { .registration-choices { grid-template-columns:1fr; } }

.illustrated-steps img { height:auto; aspect-ratio:4/3; mix-blend-mode:multiply; }

/* Delivered cards: use the print artwork itself as the proof. */
.cards-page{padding-top:32px;padding-bottom:64px}.cards-page>h1{font-size:clamp(36px,5vw,64px);line-height:1.05;max-width:800px}.card-builder{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px;margin:36px 0}.card-proofs figure{margin:0 0 22px}.card-proofs figcaption{margin-bottom:10px;font-size:14px;color:#61645b}.card-proofs img{display:block;width:100%;aspect-ratio:1.75;box-shadow:0 6px 22px #20251e17;border:1px solid #deded5;border-radius:3px}.card-flow>div{display:flex;gap:16px;align-items:center;margin:20px 0}.card-flow img{width:110px;height:85px;object-fit:contain}.card-flow p{line-height:1.5}.card-builder input,.card-builder textarea,.card-builder select{width:100%}.card-builder input[type=checkbox]{width:auto}.card-builder .stack{align-content:start}.cards-page button:disabled{opacity:.5;cursor:not-allowed}@media(max-width:700px){.card-builder{grid-template-columns:1fr;gap:24px}.card-flow img{width:85px}.cards-page{padding-top:16px}}

@media(max-width:640px) { .host-layout .stats { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 20px; } }

.price-note { display:block; margin-top:12px; font-size:14px; color:var(--muted); }
.retention-note { padding:12px 0; }

/* Create-your-album wizard */
.wizard { max-width:600px; padding-top:44px; min-height:62vh; }
.wizard-progress { font-size:12px; color:var(--muted); letter-spacing:.14em; text-transform:uppercase; font-weight:650; margin:0 0 6px; }
.wizard .step h1 { font-size:clamp(32px,5.5vw,48px); margin:4px 0 8px; letter-spacing:-.04em; }
.wizard .step input { font-size:20px; padding:14px 16px; margin:18px 0 22px; }
.wizard-nav { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.linkish { background:none; border:0; color:var(--muted); text-decoration:underline; cursor:pointer; font:15px var(--sans); padding:8px 4px; }
.js .wizard .step:not(.on) { display:none; }
.js .wizard .step + .step { margin-top:0; }
.wizard .step + .step { margin-top:40px; }
/* Album page */
.album { max-width:860px; padding-bottom:40px; }
.album-head { padding:22px 0 14px; }
.album-head h1 { font-size:clamp(36px,6vw,58px); margin-bottom:6px; letter-spacing:-.045em; }
.album .ok, .album .note { margin:10px 0; }
.welcome { background:var(--olive-soft); border-color:transparent; margin:14px 0 18px; }
.welcome h2 { margin-bottom:2px; }
.todo { padding-left:22px; margin:8px 0 0; }
.todo li { margin:14px 0; line-height:1.55; }
.todo li b { display:block; }
.share { display:grid; grid-template-columns:180px 1fr; gap:24px; align-items:center; margin:18px 0; }
.share-qr img { width:180px; height:180px; border-radius:12px; border:1px solid var(--line); background:#fff; display:block; }
.share-body h2 { margin-bottom:2px; }
.album-row { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin:30px 0 12px; }
.more { margin-top:36px; border-top:1px solid var(--line); }
.more details { border-bottom:1px solid var(--line); }
.more summary { font-weight:600; padding:16px 0; }
@media(max-width:640px) { .share { grid-template-columns:1fr; } .share-qr { text-align:center; } .share-qr img { margin:0 auto; } .album-row .btn { width:100%; } }

/* theme hooks: shown only by a theme stylesheet */
.guide, .wiz-dog, .wiz-leaves, .cover-hero { display:none; }

/* album page sections, people, choices */
.album > .card { margin:16px 0; }
.people-list { list-style:none; padding:0; margin:0; }
.people-list li { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--line); }
.people-list li span:first-child { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; }
.delete-row { margin:28px 0 10px; padding-top:16px; border-top:1px solid var(--line); }
.choices { display:flex; flex-direction:column; gap:10px; margin:18px 0 22px; }
.choice-row { display:flex; gap:12px; align-items:center; padding:14px 16px; border:1px solid var(--line); border-radius:14px; background:var(--panel); cursor:pointer; font-weight:400; font-size:16px; }
.choice-row:has(input:checked) { border-color:#6b7b2f; box-shadow:0 0 0 1px #6b7b2f inset; }
.choice-row input { accent-color:#6b7b2f; margin:0; }
.brand .qrmark { display:block; }
.brand .dot { display:none; }
.album .share { margin:16px 0; }

/* album: header, segmented tabs, section rhythm */
.album { max-width:760px; padding-bottom:96px; }
.album-top { padding:22px 0 14px; }
.album-title h1 { font-size:clamp(30px,5vw,44px); margin:0 0 2px; letter-spacing:-.04em; }
.album-title p { margin:0; }
.album-tabs { display:grid; grid-template-columns:repeat(4,1fr); gap:4px; padding:4px; background:#eef0e6; border-radius:14px; margin:0 0 22px; }
.album-tabs a { display:flex; align-items:center; justify-content:center; gap:8px; text-decoration:none; color:#4d5540; font-weight:650; font-size:15px; padding:11px 8px; border-radius:11px; min-height:44px; }
.album-tabs a.on { background:#6b7b2f; color:#fff; box-shadow:0 1px 2px rgba(0,0,0,.12); }
.album-tabs a:not(.on):hover { background:#e3e7d6; }
.album .card { margin:0 0 18px; padding:22px; }
.album .card h2 { font-size:21px; margin:0 0 8px; letter-spacing:-.02em; }
.album .card p.muted { margin:0 0 10px; }
.album .card .tools { margin-top:4px; }
.album .share { display:grid; grid-template-columns:168px 1fr; gap:22px; align-items:start; }
.album .share-qr img { width:168px; height:168px; }
.cards-row { display:grid; grid-template-columns:120px 1fr; gap:20px; align-items:center; }
.card-thumb { width:120px; border-radius:6px; box-shadow:0 1px 2px rgba(30,30,20,.12), 0 8px 18px rgba(30,30,20,.16); transform:rotate(-3deg); }
.delete-row { margin:10px 0 0; padding-top:16px; border-top:1px solid var(--line); }
.delete-row p { margin:0 0 10px; }
@media(max-width:640px) {
  .album-tabs { position:fixed; left:12px; right:12px; bottom:12px; z-index:30; margin:0; background:#fff; box-shadow:0 6px 24px rgba(0,0,0,.14); border:1px solid var(--line); }
  .album-tabs a { flex-direction:column; gap:3px; font-size:12px; padding:8px 4px; }
  .album-tabs a svg { width:22px; height:22px; }
  .album .share { grid-template-columns:1fr; }
  .album .share-qr { text-align:center; }
  .album .share-qr img { margin:0 auto; }
  .cards-row { grid-template-columns:96px 1fr; }
  .card-thumb { width:96px; }
}
.cards-promo { display:grid; grid-template-columns:210px 1fr; gap:22px; align-items:center; }
.cards-promo-art { position:relative; height:150px; }
.cards-promo-art img { position:absolute; width:170px; border-radius:6px; box-shadow:0 8px 22px rgba(60,60,30,.16); border:1px solid #e3e6e1; }
.cards-promo-art .tilt-l { left:0; top:10px; transform:rotate(-6deg); }
.cards-promo-art .tilt-r { left:24px; top:44px; transform:rotate(4deg); }
.wiz-cards { height:180px; margin:12px 0 4px; }
.wiz-cards img { width:230px; }
.wiz-cards .tilt-r { left:70px; top:54px; }
@media(max-width:640px) { .cards-promo { grid-template-columns:1fr; } .cards-promo-art { height:130px; } .cards-promo-art img { width:150px; } .wiz-cards img { width:190px; } }
.swatches { display:flex; gap:10px; flex-wrap:wrap; margin:6px 0 4px; }
.swatch { position:relative; }
.swatch input { position:absolute; opacity:0; width:1px; height:1px; }
.swatch { display:block; margin:0; }
.swatch span { display:block; width:36px; height:36px; border-radius:50%; border:1px solid #cfd3c6; cursor:pointer; position:relative; }
.swatch input:checked + span { box-shadow:0 0 0 3px #fff, 0 0 0 5px #6b7b2f; }
.swatch input:checked + span::after { content:''; position:absolute; left:12px; top:8px; width:8px; height:14px; border:solid #6b7b2f; border-width:0 3px 3px 0; transform:rotate(45deg); }
.swatch input:focus-visible + span { outline:3px solid #527214; outline-offset:3px; }

.card-sample { margin:14px 0 6px; }
.card-sample img { display:block; width:210px; max-width:100%; border-radius:8px; box-shadow:0 1px 2px rgba(30,30,20,.12), 0 10px 24px rgba(30,30,20,.18), 0 24px 48px rgba(30,30,20,.12); transform:rotate(-2deg); }
.cards-promo { grid-template-columns:230px 1fr; }
@media(max-width:640px) { .cards-promo { grid-template-columns:1fr; } }

/* toasts */
.toast { position:fixed; top:72px; left:50%; transform:translateX(-50%); z-index:60; padding:10px 16px; border-radius:12px; box-shadow:0 8px 24px rgba(0,0,0,.14); font-weight:600; max-width:calc(100% - 32px); transition:opacity .4s, transform .4s; }
.toast.gone { opacity:0; transform:translate(-50%,-8px); pointer-events:none; }
/* photos grid controls */
.host-grid .cell { cursor:zoom-in; }
.host-grid .cell.only-us img { opacity:.6; }
.cell .badge { position:absolute; left:6px; top:6px; background:rgba(30,30,25,.78); color:#fff; font-size:11px; font-weight:700; padding:3px 8px; border-radius:999px; letter-spacing:.02em; }
.cell .badge.cover-badge { left:auto; right:6px; top:auto; bottom:28px; background:#6b7b2f; }
.host-grid .cell .mod { top:auto; bottom:6px; right:6px; left:auto; gap:4px; opacity:0; transition:opacity .15s; }
.host-grid .cell:hover .mod, .host-grid .cell:focus-within .mod { opacity:1; }
@media (hover:none) { .host-grid .cell .mod { opacity:1; } }
.host-grid .ib { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:8px; background:rgba(255,255,255,.95); color:#26251f; border:0; cursor:pointer; padding:0; }
.host-grid .ib.danger { color:#c0392b; }
.host-grid .ib:hover { background:#fff; box-shadow:0 2px 8px rgba(0,0,0,.18); }
/* sharing card figure */
.card-figure { margin:0; text-align:center; }
.card-figure figcaption { font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); font-weight:650; margin-bottom:8px; }
.cards-row { grid-template-columns:150px 1fr; }
.card-thumb { width:130px; transform:rotate(-3deg); margin:0 auto; display:block; }
.tag { display:inline-block; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:#4d5540; background:#eef0e6; border-radius:999px; padding:3px 8px; }
.people-list li { gap:10px; }

::placeholder { color:#a9aba0; opacity:1; }
textarea::placeholder { color:#a9aba0; }

/* slideshow page */
.slideshow-card { display:grid; grid-template-columns:260px 1fr; gap:24px; align-items:center; }
.tv { background:#1d1c1a; border-radius:10px; padding:8px; box-shadow:0 10px 30px rgba(0,0,0,.18); }
.tv .screen { position:relative; aspect-ratio:16/9; background:#000; border-radius:4px; overflow:hidden; display:flex; align-items:center; justify-content:center; }
.tv .screen img { width:100%; height:100%; object-fit:cover; display:block; }
.tv .screen-empty { color:#a9a294; font-size:12px; text-align:center; padding:12px; }
.tv .screen-qr { position:absolute; right:8px; bottom:8px; width:44px; height:44px; background:#fff; border-radius:4px; padding:3px; }
.tv .screen-qr img { width:100%; height:100%; object-fit:contain; }
@media(max-width:640px) { .slideshow-card { grid-template-columns:1fr; } .album-tabs a { font-size:11px; } }
