/* DesiWeds — sign-up wizard and couple dashboard */
:root {
  --accent: #a8324a;      /* deep rose */
  --accent-2: #c9a14a;    /* gold */
  --ink: #2a1f1a;
  --paper: #fbf6f0;
  --line: #eadfd3;
  --card: #ffffff;
  --muted: #7b6a5d;
}
body.dw-app { background: var(--paper); }

.dw-logo { font-family: "Great Vibes", cursive; font-size: 2rem; line-height: 1; color: var(--accent); text-decoration: none; }
.dw-logo b { font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: .55em; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); margin-left: .15em; }

/* ---------- Start wizard ---------- */
.dw-start { min-height: 100svh; display: grid; grid-template-columns: 1.05fr 1fr; }
.dw-start__art { position: relative; overflow: hidden; background: #1b1110; }
.dw-start__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s ease; }
.dw-start__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,8,6,.25), rgba(20,8,6,.1) 35%, rgba(20,8,6,.78)); }
.dw-start__quote { position: absolute; z-index: 2; left: 2rem; right: 2rem; bottom: 2rem; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.6); }
.dw-start__quote p { margin: 0; opacity: .92; }
.dw-start__quote h1 { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.1; margin: 0 0 .5rem; }
.dw-start__panel { display: flex; flex-direction: column; padding: 1.6rem clamp(1.2rem, 4vw, 3.5rem) 2rem; }
.dw-start__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.dw-steps { display: flex; gap: .4rem; margin-bottom: 1.2rem; }
.dw-steps i { height: 4px; flex: 1; border-radius: 4px; background: var(--line); }
.dw-steps i.on { background: var(--accent); }
.dw-start h2 { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: 2.1rem; line-height: 1.15; margin: 0 0 .4rem; }
.dw-start .dw-sub { color: var(--muted); margin: 0 0 1.4rem; }
.dw-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.dw-nav { display: flex; justify-content: space-between; gap: .8rem; margin-top: auto; padding-top: 1.4rem; }

.dw-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .8rem; }
.dw-tpl { position: relative; padding: 0; border: 2px solid transparent; border-radius: 16px; overflow: hidden; background: #000; cursor: pointer; text-align: left; aspect-ratio: 9/14; }
.dw-tpl img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dw-tpl span { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem .7rem .6rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.75)); font-family: "Cormorant Garamond", serif; font-size: 1.25rem; font-weight: 600; }
.dw-tpl.is-on { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.dw-tpl.is-on::after { content: "✓"; position: absolute; top: .5rem; right: .5rem; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: .9rem; }

.dw-slug { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.dw-slug span { display: flex; align-items: center; padding: 0 .7rem; background: #f6efe7; color: var(--muted); font-size: .9rem; white-space: nowrap; }
.dw-slug input { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }

@media (max-width: 860px) {
  .dw-start { grid-template-columns: 1fr; }
  .dw-start__art { height: 30svh; min-height: 200px; }
  .dw-start__quote { left: 1.2rem; right: 1.2rem; bottom: 1.1rem; }
  .dw-start__quote h1 { font-size: 1.55rem; }
}

/* ---------- Dashboard ---------- */
.dw-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1rem; padding: .7rem clamp(1rem, 3vw, 2rem); background: rgba(251,246,240,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.dw-top__link { flex: 1; min-width: 0; font-size: .9rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dw-top__link a { color: var(--ink); }
.dw-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.dw-pill--live { background: #dcfce7; color: #166534; }
.dw-pill--draft { background: #fef3c7; color: #92400e; }
.dw-tabs { display: flex; gap: .2rem; overflow-x: auto; padding: 0 clamp(1rem, 3vw, 2rem); border-bottom: 1px solid var(--line); background: var(--paper); scrollbar-width: none; }
.dw-tabs button { flex: none; padding: .85rem .9rem; border: 0; background: none; cursor: pointer; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; }
.dw-tabs button.on { color: var(--ink); border-bottom-color: var(--accent); }
.dw-main { padding: 1.4rem clamp(1rem, 3vw, 2rem) 4rem; max-width: 1240px; margin: 0 auto; }
.dw-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 1.2rem; margin-bottom: 1rem; }
.dw-card h3 { margin: 0 0 .8rem; font-family: "Cormorant Garamond", serif; font-size: 1.45rem; font-weight: 600; }
.dw-card h3 small { font-family: "Jost", sans-serif; font-size: .8rem; font-weight: 400; color: var(--muted); margin-left: .4rem; }

.dw-design { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 1.4rem; align-items: start; }
.dw-preview { position: sticky; top: 110px; }
.dw-phone { width: 100%; max-width: 380px; margin: 0 auto; aspect-ratio: 9 / 18.5; border-radius: 42px; padding: 12px; background: #1b1512; box-shadow: 0 30px 60px -25px rgba(0,0,0,.5); }
.dw-phone iframe { width: 100%; height: 100%; border: 0; border-radius: 32px; background: #000; }
.dw-preview__bar { display: flex; justify-content: center; gap: .5rem; margin-top: .8rem; flex-wrap: wrap; }
.dw-save { font-size: .82rem; color: var(--muted); text-align: center; margin-top: .5rem; min-height: 1.2em; }
@media (max-width: 980px) {
  .dw-design { grid-template-columns: 1fr; }
  .dw-preview { position: static; order: -1; }
  .dw-phone { max-width: 300px; }
}

.dw-photo { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; align-items: start; }
.dw-photo__thumb { aspect-ratio: 3/4; border-radius: 14px; border: 1px dashed var(--line); background: repeating-conic-gradient(#f3ece4 0 25%, #fff 0 50%) 50% / 16px 16px; display: grid; place-items: center; overflow: hidden; color: var(--muted); font-size: .8rem; text-align: center; }
.dw-photo__thumb img { width: 100%; height: 100%; object-fit: contain; }
.dw-range { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: .6rem; margin: .35rem 0; font-size: .88rem; }
.dw-range input { accent-color: var(--accent); width: 100%; }
.dw-progress { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin: .5rem 0; }
.dw-progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s ease; }

.dw-fn { border: 1px solid var(--line); border-radius: 14px; padding: 1rem; margin-bottom: .8rem; background: #fffdfa; }
.dw-fn__head { display: flex; gap: .5rem; align-items: center; margin-bottom: .6rem; }
.dw-fn__head strong { flex: 1; font-family: "Cormorant Garamond", serif; font-size: 1.3rem; }
.dw-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.dw-check { display: flex; align-items: center; gap: .5rem; font-size: .92rem; margin: .3rem 0; }
.dw-check input { width: 18px; height: 18px; accent-color: var(--accent); }
@media (max-width: 640px) { .dw-grid3, .dw-row { grid-template-columns: 1fr; } .dw-photo { grid-template-columns: 1fr; } .dw-photo__thumb { max-width: 160px; } }

.dw-stylist { background: linear-gradient(180deg, #fff, #fff8f1); }
.dw-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.dw-chip { padding: .45rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: .9rem; }
.dw-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.dw-sty-jobs { display: grid; gap: .8rem; margin-top: 1rem; }
.dw-sty-job { border: 1px solid var(--line); border-radius: 14px; padding: .8rem; background: #fff; }
.dw-sty-job__head { display: flex; justify-content: space-between; gap: .6rem; align-items: baseline; margin-bottom: .5rem; font-size: .92rem; }
.dw-sty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; }
.dw-sty-grid figure { margin: 0; display: grid; gap: .4rem; }
.dw-sty-grid img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 10px; background: #f3ece4; }
.dw-progress__busy { width: 40% !important; animation: dw-busy 1.2s ease-in-out infinite; }
@keyframes dw-busy { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }

.dw-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.dw-stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1rem; }
.dw-stat b { display: block; font-family: "Cormorant Garamond", serif; font-size: 2.2rem; line-height: 1; font-weight: 600; }
.dw-stat span { font-size: .82rem; color: var(--muted); }

.dw-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.dw-table th { text-align: left; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: .55rem .5rem; border-bottom: 1px solid var(--line); }
.dw-table td { padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.dw-table__wrap { overflow-x: auto; }
.dw-actions { display: flex; gap: .3rem; flex-wrap: wrap; }
.dw-empty { text-align: center; color: var(--muted); padding: 2rem 1rem; }
.dw-qr { width: 200px; height: 200px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.dw-qr svg { width: 100%; height: 100%; }
.dw-toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 100; background: #1f1915; color: #fff; padding: .6rem 1rem; border-radius: 999px; font-size: .9rem; box-shadow: 0 10px 30px rgba(0,0,0,.25); }

.dw-suggest { align-items: center; margin-top: .1rem; }
.dw-suggest small { font-size: .78rem; color: var(--muted); margin-right: .1rem; }
.dw-chip--sm { padding: .22rem .6rem; font-size: .8rem; background: #fffaf4; }
.dw-chip--sm:hover { border-color: var(--accent); }

.dw-pill--plan { background: #f4ead2; color: #6b4e12; }
.dw-free .dw-pill--plan { background: #eee9e4; color: #5c4a40; }
.dw-lock { position: absolute; top: .5rem; left: .5rem; z-index: 2; padding: .15rem .5rem; border-radius: 999px; background: rgba(20,12,8,.72); color: #f4d9a0; font: 600 .68rem/1.4 "Jost", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.dw-tpl[data-locked] img { filter: saturate(.6) brightness(.85); }
/* Free plan: hide Premium-only controls (the server refuses them as well). */
.dw-free [data-copy], .dw-free .dw-table .dw-btn--wa, .dw-free #dw-export, .dw-free .dw-table a[href*="/card/"] { display: none; }

.dw-btn--gold { background: #c9a14a; color: #2a1608; }

.dw-seals { display: flex; flex-wrap: wrap; gap: .6rem; }
.dw-sealopt { display: grid; justify-items: center; gap: .25rem; width: 84px; padding: .5rem .3rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; font-size: .74rem; color: var(--muted); }
.dw-sealopt img { width: 54px; height: 54px; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0,0,0,.2)); }
.dw-sealopt.on { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); color: var(--ink); }

.dw-songs { list-style: none; margin: .4rem 0 .6rem; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.dw-songs li { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .6rem .8rem; border-top: 1px solid var(--line); }
.dw-songs li:first-child { border-top: 0; }
.dw-songs strong { display: block; font-weight: 500; }
.dw-songs small { color: var(--muted); font-size: .82rem; }
.dw-songs .dw-btn { flex: none; }

.dw-songs li.on { background: #fff6ea; }
.dw-songs .dw-actions { flex: none; flex-wrap: nowrap; }

/* ---------- Sign-up: pick your wedding ---------- */
.dw-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.dw-pick { position: relative; padding: 0; border: 2px solid transparent; border-radius: 18px; overflow: hidden; background: #1b1110; cursor: pointer; text-align: left; aspect-ratio: 4 / 5; }
.dw-pick img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.dw-pick:hover img { transform: scale(1.05); }
.dw-pick span { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4rem .8rem .7rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.82)); display: grid; gap: .1rem; }
.dw-pick strong { font-family: "Cormorant Garamond", serif; font-size: 1.3rem; font-weight: 600; line-height: 1.1; }
.dw-pick small { font-size: .74rem; opacity: .85; line-height: 1.3; }
.dw-pick.is-on { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.dw-pick--other { background: #fff; border: 2px dashed var(--line); display: grid; place-items: center; text-align: center; }
.dw-pick--other span { position: static; background: none; color: var(--ink); padding: 1rem; }
.dw-pick--other small { color: var(--muted); }
.dw-kicker-sm { margin: 1.2rem 0 .5rem; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.dw-next { margin: 1rem 0 .4rem; padding: .9rem 1rem; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: .92rem; }
.dw-next ol { margin: .4rem 0 0; padding-left: 1.2rem; color: var(--muted); }
@media (max-width: 520px) { .dw-picks { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Dashboard: what to do next ---------- */
.dw-todo { border-color: var(--accent-2); background: linear-gradient(180deg, #fffdf8, #fff); }
.dw-todo__list { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .3rem; }
.dw-todo__list li { display: grid; grid-template-columns: 30px 1fr auto; gap: .7rem; align-items: center; padding: .55rem .6rem; border-radius: 12px; }
.dw-todo__list li.is-next { background: #fff6ea; }
.dw-todo__tick { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); font-size: .82rem; color: var(--muted); background: #fff; }
.dw-todo__list li.is-done .dw-todo__tick { background: #1f7a45; border-color: #1f7a45; color: #fff; }
.dw-todo__list li.is-done strong { text-decoration: line-through; opacity: .55; font-weight: 400; }
.dw-todo__text strong { display: block; font-weight: 500; }
.dw-todo__text small { color: var(--muted); font-size: .82rem; }
.dw-flash { animation: dw-flash 1.6s ease; }
@keyframes dw-flash { 0%, 60% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent); } 100% { box-shadow: none; } }

/* ---------- Partner dashboard ---------- */
.dw-partner__hero { text-align: center; max-width: 720px; margin: 1rem auto 1.6rem; }
.dw-partner__hero h1 { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; margin: .3rem 0 .6rem; }
.dw-seg { display: flex; justify-content: center; gap: .3rem; margin: 0 auto 1rem; padding: .25rem; width: max-content; max-width: 100%; border-radius: 999px; background: #efe6dc; }
.dw-seg button { border: 0; background: none; padding: .45rem 1rem; border-radius: 999px; cursor: pointer; font-size: .9rem; color: var(--muted); }
.dw-seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.dw-pkgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; max-width: 760px; margin: 0 auto 1rem; }
.dw-pkg { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.4rem; display: grid; gap: .5rem; align-content: start; }
.dw-pkg:last-child { border: 2px solid var(--accent-2); }
.dw-pkg h3 { margin: 0; font-family: "Cormorant Garamond", serif; font-size: 1.8rem; font-weight: 600; }
.dw-pkg__for { margin: 0; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dw-pkg__price { margin: 0; font-family: "Cormorant Garamond", serif; font-size: 2.4rem; line-height: 1; }
.dw-pkg__price small { font-family: "Jost", sans-serif; font-size: .9rem; color: var(--muted); }
.dw-pkg ul { margin: .3rem 0 .6rem; padding-left: 1.1rem; font-size: .93rem; display: grid; gap: .25rem; }
.dw-field input:disabled { background: #f4efe9; color: var(--muted); }

/* ================= Dashboard v2: Home, Invitation, Events, Guests, Share ================= */
body.dw-v2 { --accent: #0E5A47; --accent-2: #F2B441; --ink: #15241F; --paper: #F4F6F3; --line: #DDE3DE; --muted: #55645E; --soft: #E3F0EB; --edge: #C5CFC8; background: var(--paper); color: var(--ink); font-family: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.5; }
.dw-v2 h1, .dw-v2 h2 { margin: 0; font-family: Fraunces, Georgia, serif; font-weight: 500; }
.dw-v2 h3 { margin: 0 0 8px; font: 600 16px/1.4 Figtree, sans-serif; }
.dw-v2 h3 small { margin-left: 6px; font-weight: 400; font-size: 14px; color: var(--muted); }
.dw-v2 p { margin: 0; }
.dw-v2 .dw-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--accent); }
.dw-v2 .dw-link:hover { color: #093D30; }
.dw-v2 :focus-visible { outline: 3px solid #1E8E6E; outline-offset: 2px; }

/* buttons and fields */
.dw-v2 .dw-btn { min-height: 48px; padding: 0 20px; border-radius: 12px; font-weight: 600; letter-spacing: 0; gap: 8px; }
.dw-v2 .dw-btn--ghost { background: #fff; color: var(--ink); border-color: var(--edge); }
.dw-v2 .dw-btn--small { min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.dw-v2 .dw-btn--gold { background: var(--accent-2); color: var(--ink); font-weight: 700; }
.dw-v2 .dw-btn--wa { background: #12775B; color: #fff; }
.dw-v2 .dw-btn--text { min-height: 44px; padding: 0 10px; border: 0; background: none; color: var(--accent); font-size: 15px; }
.dw-v2 .dw-btn--danger { color: #A3312A; }
.dw-iconbtn { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--edge); border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; }
.dw-iconbtn[disabled] { opacity: .4; cursor: not-allowed; }
.dw-v2 .dw-field { gap: 6px; margin: 0; }
.dw-v2 .dw-field > span { font-size: 16px; font-weight: 600; letter-spacing: 0; text-transform: none; opacity: 1; }
.dw-v2 .dw-field > span em { font-style: normal; font-weight: 400; color: var(--muted); }
.dw-v2 .dw-input, .dw-v2 .dw-field input, .dw-v2 .dw-field select, .dw-v2 .dw-field textarea { min-height: 48px; padding: 0 14px; border: 1px solid #A9B5AE; border-radius: 10px; }
.dw-v2 .dw-field textarea { padding: 12px 14px; }
.dw-v2 .dw-field input[type=color] { padding: 4px; width: 96px; }
.dw-v2 .dw-hint { font-size: 14px; color: var(--muted); opacity: 1; margin: 0; }
.dw-v2 .dw-hint code { font-size: 13px; background: var(--paper); padding: 2px 6px; border-radius: 6px; }
.dw-v2 .dw-row, .dw-v2 .dw-grid3 { gap: 20px; }
.dw-v2 .dw-chip { min-height: 36px; padding: 0 12px; border-color: var(--edge); background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 500; }
.dw-v2 .dw-chip.on { background: var(--soft); border-color: var(--accent); color: var(--accent); font-weight: 700; box-shadow: inset 0 0 0 1px var(--accent); }
.dw-v2 .dw-chip--sm { background: var(--paper); }
.dw-v2 .dw-check { gap: 10px; font-size: 16px; min-height: 44px; margin: 0; }
.dw-v2 .dw-check input { width: 20px; height: 20px; flex: none; }
.dw-v2 .dw-suggest small { font-size: 14px; }
.dw-v2 .dw-pill--plan { background: #FBEBC8; color: #5A4307; }

/* header and navigation */
.dw-hd { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.dw-hd__in { max-width: 1240px; margin: 0 auto; padding: 0 32px; min-height: 72px; display: flex; align-items: center; gap: 8px 32px; }
.dw-brand { font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 26px; color: var(--ink); text-decoration: none; }
.dw-brand span { color: var(--accent); }
.dw-nav2 { flex: 1 1 auto; display: flex; gap: 4px; }
.dw-nav2 a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; color: #3F4F48; font-weight: 500; text-decoration: none; }
.dw-nav2 a svg { display: none; }
.dw-nav2 a.on { background: var(--soft); color: var(--accent); font-weight: 700; }
.dw-hd__right { position: relative; display: flex; align-items: center; gap: 12px; }
.dw-status { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--edge); background: #fff; color: var(--ink); font-weight: 600; font-size: 15px; cursor: pointer; }
.dw-status i { width: 10px; height: 10px; border-radius: 50%; background: #C98A12; }
.dw-status i.is-live { background: #1E8E6E; }
.dw-avatar { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; }
.dw-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 40; width: 280px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(21, 36, 31, .16); display: flex; flex-direction: column; gap: 10px; }
.dw-menu p { font-size: 15px; color: var(--muted); }
.dw-menu p strong { color: var(--ink); }

/* page layout */
.dw-v2 .dw-main { max-width: 1240px; margin: 0 auto; padding: 40px 32px 56px; display: flex; flex-direction: column; gap: 32px; }
.dw-pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.dw-pagehead h1 { font-size: 40px; line-height: 1.15; }
.dw-pagehead p { margin-top: 4px; color: var(--muted); font-size: 17px; }
.dw-pagehead__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.dw-cols { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px; }
.dw-cols__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.dw-panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px 32px; display: flex; flex-direction: column; gap: 16px; }
.dw-panel[hidden] { display: none; }
.dw-panel h2 { font-size: 24px; line-height: 1.25; }
.dw-panel__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.dw-kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); }
.dw-kicker--muted { color: var(--muted); margin-bottom: 4px; }
.dw-footnote { color: var(--muted); font-size: 15px; }
.dw-v2 .dw-empty { padding: 32px 16px; }

/* phone preview */
.dw-side { flex: 1 1 280px; max-width: 320px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.dw-side__note { color: var(--muted); font-size: 15px; text-align: center; }
.dw-side__bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.dw-v2 .dw-phone { width: 280px; max-width: 100%; aspect-ratio: 9 / 18.5; border-radius: 36px; padding: 10px; background: var(--ink); box-shadow: 0 24px 48px rgba(21, 36, 31, .18); }
.dw-v2 .dw-phone iframe { border-radius: 28px; }
.dw-v2 .dw-save { margin: 0; font-size: 15px; font-weight: 500; color: #3F4F48; text-align: left; min-height: 1.5em; }
.dw-side .dw-save { text-align: center; }
@media (min-width: 1040px) { .dw-side { position: sticky; top: 104px; } }

/* home */
.dw-nextstep { background: var(--accent); color: #fff; border-radius: 20px; padding: 28px 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.dw-nextstep h2 { font-size: 28px; line-height: 1.2; }
.dw-nextstep p { color: #D5E8E1; font-size: 17px; }
.dw-nextstep .dw-btn { margin-top: 8px; }
.dw-meter { display: flex; align-items: center; gap: 12px; font-weight: 600; color: #3F4F48; }
.dw-meter > div { width: 160px; height: 8px; border-radius: 999px; background: #E3E8E4; overflow: hidden; }
.dw-meter i { display: block; height: 100%; background: var(--accent); }
.dw-check2 { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.dw-check2 li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 0; border-top: 1px solid #E8ECE9; }
.dw-check2 li:last-child { padding-bottom: 0; }
.dw-check2 li > div { flex: 1 1 240px; display: flex; flex-direction: column; }
.dw-check2 strong { font-weight: 600; }
.dw-check2 small { color: var(--muted); font-size: 15px; }
.dw-check2 li.is-done { color: var(--muted); padding: 14px 0; }
.dw-num { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--accent); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: var(--accent); }
.dw-tick { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.dw-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 24px; }
.dw-sumcard { padding: 24px; gap: 6px; }
.dw-v2 .dw-sumcard h3 { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.dw-sumcard__big { font-family: Fraunces, Georgia, serif; font-weight: 500; font-size: 22px; }
.dw-sumcard p { color: var(--muted); font-size: 15px; }
.dw-sumcard .dw-link { margin-top: 8px; }

/* invitation editor */
.dw-stepnav { flex: 1 1 220px; max-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.dw-stepnav a { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 12px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.dw-stepnav a > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.dw-stepnav strong { font-weight: 600; }
.dw-stepnav small { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dw-stepnav .dw-num, .dw-stepnav .dw-tick { width: 28px; height: 28px; }
.dw-stepnav .dw-num { border-color: #A9B5AE; color: #3F4F48; }
.dw-stepnav a.on { background: var(--accent); color: #fff; }
.dw-stepnav a.on strong { font-weight: 700; }
.dw-stepnav a.on small { color: #D5E8E1; }
.dw-stepnav a.on .dw-num { background: #fff; border-color: #fff; color: var(--accent); }
.dw-step { flex: 999 1 460px; min-width: 0; padding: 32px; gap: 28px; }
.dw-step h2 { font-size: 28px; }
.dw-step__intro { margin-top: 6px; color: var(--muted); }
.dw-step__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 4px; }
.dw-step .dw-row, .dw-step .dw-grid3 { align-items: start; }
.dw-self > h3:first-child { display: none; }
.dw-self .dw-field, .dw-subpanel .dw-field { margin-bottom: 16px; }
.dw-subpanel { border-top: 1px solid var(--line); padding-top: 24px; background: none; }
.dw-subpanel[hidden] { display: none; }
.dw-choices { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dw-choices legend, .dw-who legend, .dw-invited legend { padding: 0; margin-bottom: 10px; font-weight: 600; }
.dw-choices > div, .dw-addev > div { display: flex; flex-wrap: wrap; gap: 10px; }
.dw-choice { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--edge); background: #fff; color: var(--ink); font-weight: 500; font-size: 15px; cursor: pointer; }
.dw-choice.on { border: 2px solid var(--accent); padding: 0 15px; background: var(--soft); color: var(--accent); font-weight: 700; }
.dw-choice--own:not(.on) { border-style: dashed; border-color: #7F8D86; }
.dw-extras { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.dw-extras li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; min-height: 60px; border-bottom: 1px solid #E8ECE9; }
.dw-extras li:last-child { border-bottom: 0; }
.dw-extras li > div { display: flex; flex-direction: column; min-width: 0; }
.dw-extras li.is-open { display: block; padding: 14px 0; }
.dw-extras strong { font-weight: 500; }
.dw-extras small { font-size: 14px; color: var(--muted); }
.dw-v2 .dw-tpls { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.dw-v2 .dw-tpl span { font-family: Fraunces, Georgia, serif; font-size: 17px; font-weight: 500; }
.dw-accent { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.dw-v2 .dw-photo__thumb { border-color: var(--edge); background: repeating-conic-gradient(#EEF1EE 0 25%, #fff 0 50%) 50% / 16px 16px; }
.dw-v2 .dw-range { font-size: 15px; }
.dw-v2 .dw-songs li.on { background: var(--soft); }
.dw-v2 .dw-sealopt { font-size: 13px; }
.dw-v2 .dw-slug span { background: var(--paper); }
.dw-v2 .dw-slug { border-color: #A9B5AE; border-radius: 10px; }

/* events */
.dw-ev:not(.is-open) { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.dw-ev:not(.is-open) p { margin-top: 4px; color: var(--muted); }
.dw-ev.is-open { gap: 20px; }
.dw-ev__title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.dw-ev__tools { display: flex; align-items: center; gap: 8px; }
.dw-ev__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.dw-hint--tight { margin-top: -12px !important; }
.dw-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.dw-tag i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.dw-tag--ok { background: var(--soft); color: #0B4A3A; }
.dw-tag--warn { background: #FBEBC8; color: #5A4307; }
.dw-tag--no { background: #F6E1DE; color: #7A231D; }
.dw-who, .dw-invited { margin: 0; padding: 0; border: 0; min-width: 0; }
.dw-who > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.dw-who label { display: flex; gap: 12px; padding: 14px 16px; border: 1px solid var(--edge); border-radius: 12px; cursor: pointer; }
.dw-who label:has(input:checked) { border: 2px solid var(--accent); padding: 13px 15px; background: var(--soft); }
.dw-who input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.dw-who span { display: flex; flex-direction: column; }
.dw-who strong { font-weight: 600; }
.dw-who small { font-size: 14px; color: var(--muted); }
.dw-invited { display: flex; flex-wrap: wrap; gap: 0 24px; }
.dw-invited legend { width: 100%; }

/* guests and replies */
.dw-stats2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px; }
.dw-stats2 > div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 2px; }
.dw-stats2 b { font-family: Fraunces, Georgia, serif; font-weight: 500; font-size: 34px; line-height: 1.1; }
.dw-stats2 span { color: var(--muted); font-size: 15px; }
.dw-stats2 .is-ok b { color: var(--accent); }
.dw-stats2 .is-no b { color: #7A231D; }
.dw-stats2 .is-wait b { color: #6B4F08; }
.dw-list { padding: 24px; }
.dw-list__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.dw-list__tools { display: flex; flex-wrap: wrap; gap: 8px; }
.dw-list__tools .dw-input { width: 220px; min-height: 44px; }
.dw-seg2 { display: flex; flex-wrap: wrap; gap: 6px; }
.dw-seg2 button { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--edge); background: #fff; color: var(--ink); font-weight: 500; font-size: 15px; cursor: pointer; }
.dw-seg2 button[aria-pressed=true] { background: var(--soft); border-color: var(--accent); color: var(--accent); font-weight: 700; }
.dw-v2 .dw-table { font-size: 15px; }
.dw-v2 .dw-table thead th { font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--muted); padding: 10px 12px; }
.dw-v2 .dw-table td, .dw-v2 .dw-table tbody th { padding: 12px; border-bottom: 1px solid #E8ECE9; vertical-align: middle; text-align: left; }
.dw-v2 .dw-table tbody th { font-weight: 600; font-size: 16px; text-transform: none; letter-spacing: 0; color: var(--ink); }
.dw-v2 .dw-table tbody th small { display: block; font-weight: 400; font-size: 14px; color: var(--muted); }
.dw-v2 .dw-table tbody tr:last-child td, .dw-v2 .dw-table tbody tr:last-child th { border-bottom: 0; }
.dw-door { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.dw-v2 .dw-actions { gap: 4px; align-items: center; flex-wrap: nowrap; }

/* share */
.dw-linkrow { display: flex; flex-wrap: wrap; gap: 12px; }
.dw-linkrow .dw-input { flex: 1 1 260px; width: auto; background: var(--paper); }
.dw-btnrow { display: flex; flex-wrap: wrap; gap: 12px; }
.dw-tip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; padding: 8px 16px; border-radius: 12px; background: var(--paper); font-size: 15px; }
.dw-door { }
.dw-panel.dw-door { flex-direction: row; flex-wrap: wrap; gap: 24px 32px; display: flex; margin: 0; font-size: 16px; color: var(--ink); }
.dw-panel.dw-door > div:first-child { flex: 1 1 320px; display: flex; flex-direction: column; gap: 12px; }
.dw-panel.dw-door ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: #3F4F48; }
.dw-pin { flex: 0 1 220px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 20px; border-radius: 16px; background: var(--paper); }
.dw-pin span { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dw-pin b { font-family: Fraunces, Georgia, serif; font-weight: 500; font-size: 40px; letter-spacing: .12em; line-height: 1.1; }
.dw-pin small { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.dw-qrcard { flex: 1 1 280px; max-width: 340px; align-items: center; text-align: center; }
.dw-qrcard p { color: var(--muted); font-size: 15px; }
.dw-v2 .dw-qr { width: 220px; height: 220px; border-color: var(--line); border-radius: 16px; }
.dw-v2 .dw-toast { background: var(--ink); }

/* phone layout: bottom navigation */
@media (max-width: 860px) {
  .dw-hd__in { min-height: 60px; padding: 0 20px; justify-content: space-between; }
  .dw-brand { font-size: 22px; }
  .dw-nav2 { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; height: calc(68px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--line); }
  .dw-nav2 a { flex-direction: column; justify-content: center; gap: 2px; padding: 0; border-radius: 0; font-size: 12px; }
  .dw-nav2 a svg { display: block; }
  .dw-nav2 a.on { background: none; }
  .dw-v2 .dw-main { padding: 24px 20px calc(100px + env(safe-area-inset-bottom)); gap: 20px; }
  .dw-pagehead h1 { font-size: 30px; }
  .dw-pagehead p { font-size: 16px; }
  .dw-pagehead__actions, .dw-pagehead__actions .dw-btn { width: 100%; }
  .dw-cols { gap: 20px; }
  .dw-cols__main { gap: 16px; flex-basis: 100%; }
  .dw-panel, .dw-nextstep, .dw-step { padding: 20px; border-radius: 18px; }
  .dw-nextstep h2 { font-size: 22px; }
  .dw-nextstep .dw-btn { width: 100%; }
  .dw-panel h2 { font-size: 21px; }
  .dw-stepnav { max-width: none; flex: 1 1 100%; flex-direction: row; overflow-x: auto; padding: 8px; border-radius: 16px; scrollbar-width: none; }
  .dw-stepnav a { flex: none; min-height: 52px; }
  .dw-stepnav small { display: none; }
  .dw-step__foot .dw-btn { flex: 1 1 auto; }
  .dw-list { padding: 16px; }
  .dw-stats2 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .dw-stats2 > div { padding: 16px; }
  .dw-stats2 b { font-size: 28px; }
  .dw-list__tools, .dw-list__tools .dw-input { width: 100%; }
  .dw-v2 .dw-actions { flex-wrap: wrap; }
  .dw-qrcard { max-width: none; }
  .dw-menu { position: fixed; left: 16px; right: 16px; top: 68px; width: auto; }
  .dw-v2 .dw-toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* ================= Same look for the sign-up wizard and partner pages ================= */
.dw-v2 .dw-serif { font-family: Fraunces, Georgia, serif; }
.dw-v2 .dw-start__art { background: #15241F; }
.dw-v2 .dw-start__art::after { background: linear-gradient(180deg, rgba(10,24,19,.2), rgba(10,24,19,.1) 35%, rgba(10,24,19,.82)); }
.dw-v2 .dw-start__quote h1 { font-family: Fraunces, Georgia, serif; font-weight: 500; }
.dw-v2 .dw-start__quote p { margin: 0; font-size: 17px; }
.dw-v2 .dw-start__panel { background: var(--paper); }
.dw-v2 .dw-start h2 { font-size: 32px; line-height: 1.15; margin: 0 0 6px; }
.dw-v2 .dw-start .dw-sub { font-size: 17px; margin: 0 0 24px; }
.dw-v2 .dw-start .dw-field, .dw-v2 .dw-partner .dw-field { margin-bottom: 16px; }
.dw-v2 .dw-start .dw-hint { margin: 8px 0; }
.dw-v2 .dw-start__head .dw-hint { margin: 0; font-weight: 600; }
.dw-v2 .dw-steps i { height: 6px; background: #E3E8E4; }
.dw-v2 .dw-steps i.on { background: var(--accent); }
.dw-v2 .dw-pick { border-radius: 16px; background: #15241F; }
.dw-v2 .dw-pick strong { font-family: Fraunces, Georgia, serif; font-weight: 500; font-size: 20px; }
.dw-v2 .dw-pick small { font-size: 13px; opacity: .92; }
.dw-v2 .dw-pick--other { background: #fff; border: 2px dashed #7F8D86; }
.dw-v2 .dw-pick.is-on, .dw-v2 .dw-tpl.is-on { border-color: var(--accent); }
.dw-v2 .dw-kicker-sm { font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.dw-v2 .dw-next { margin: 16px 0 8px; padding: 16px 20px; border-radius: 16px; font-size: 15px; }
.dw-v2 .dw-next ol { margin: 6px 0 0; padding-left: 20px; }
.dw-v2 .dw-start p.dw-ok, .dw-v2 .dw-start p.dw-error { margin: 8px 0 0; font-size: 15px; }
.dw-v2 .dw-ok { color: #0B4A3A; }
.dw-v2 .dw-error { color: #A3312A; }

.dw-v2 .dw-top { min-height: 72px; padding: 0 32px; background: #fff; backdrop-filter: none; gap: 16px; }
.dw-v2 .dw-top__link { font-size: 16px; font-weight: 600; color: var(--ink); }
.dw-v2 .dw-main.dw-partner { display: block; }
.dw-v2 .dw-partner p { margin: 0 0 12px; }
.dw-v2 .dw-partner__hero { margin: 8px auto 28px; }
.dw-v2 .dw-partner__hero h1 { font-family: Fraunces, Georgia, serif; font-weight: 500; font-size: clamp(30px, 5vw, 44px); margin: 6px 0 12px; }
.dw-v2 .dw-partner__hero p { font-size: 17px; color: var(--muted); }
.dw-v2 .dw-seg { background: #E3E8E4; margin-bottom: 20px; }
.dw-v2 .dw-seg button { min-height: 44px; padding: 0 18px; font-size: 15px; font-weight: 500; color: #3F4F48; }
.dw-v2 .dw-seg button.on { color: var(--accent); font-weight: 700; }
.dw-v2 .dw-pkgs { gap: 24px; margin-bottom: 20px; }
.dw-v2 .dw-pkg { padding: 28px; gap: 10px; }
.dw-v2 .dw-pkg:last-child { border: 2px solid var(--accent); }
.dw-v2 .dw-pkg h3 { font-family: Fraunces, Georgia, serif; font-weight: 500; font-size: 28px; margin: 0; }
.dw-v2 .dw-pkg__for { font-size: 13px; font-weight: 700; letter-spacing: .08em; margin: 0; }
.dw-v2 .dw-pkg__price { font-family: Fraunces, Georgia, serif; font-weight: 500; font-size: 40px; margin: 0; }
.dw-v2 .dw-pkg__price small { font-family: Figtree, sans-serif; font-size: 15px; }
.dw-v2 .dw-pkg ul { font-size: 16px; gap: 6px; padding-left: 20px; margin: 4px 0 12px; }
.dw-v2 .dw-card { border-radius: 20px; padding: 28px 32px; margin-bottom: 24px; }
.dw-v2 .dw-card h3 { font-family: Fraunces, Georgia, serif; font-weight: 500; font-size: 24px; margin: 0 0 16px; }
.dw-v2 .dw-card h3 small { font-family: Figtree, sans-serif; }
.dw-v2 .dw-stats { gap: 16px; margin-bottom: 24px; }
.dw-v2 .dw-stat { padding: 20px; }
.dw-v2 .dw-stat b { font-family: Fraunces, Georgia, serif; font-weight: 500; font-size: 34px; line-height: 1.1; }
.dw-v2 .dw-stat span { font-size: 15px; }
.dw-v2 .dw-pill--live { background: var(--soft); color: #0B4A3A; }
.dw-v2 .dw-pill--draft { background: #FBEBC8; color: #5A4307; }
.dw-v2 .dw-pill { font-size: 14px; padding: 4px 10px; }
@media (max-width: 860px) {
  .dw-v2 .dw-top { min-height: 60px; padding: 0 20px; flex-wrap: wrap; }
  .dw-v2 .dw-card, .dw-v2 .dw-pkg { padding: 20px; }
  .dw-v2 .dw-start h2 { font-size: 26px; }
}

/* Partner credit breakdown */
.dw-v2 .dw-ledger__note { color: var(--muted); font-size: 16px; margin: -8px 0 16px; }
.dw-ledger__sum { width: 100%; max-width: 560px; border-collapse: collapse; font-size: 17px; }
.dw-ledger__sum td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.dw-ledger__sum .dw-amt { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 16px; }
.dw-ledger__total td { border-bottom: 0; border-top: 2px solid var(--ink); font-weight: 700; font-size: 19px; }
.dw-ledger__total .dw-amt { color: var(--accent); font-size: 22px; }
.dw-v2 .dw-ledger__next { margin: 16px 0 0; padding: 14px 18px; border-radius: 12px; background: var(--soft); font-size: 16px; max-width: 560px; }
.dw-ledger__hist { margin-top: 16px; }
.dw-ledger__hist summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; color: var(--accent); }

.dw-v2 .dw-top__link small { display: inline-block; margin-left: 8px; padding: 3px 10px; border-radius: 999px; background: var(--soft); color: #0B4A3A; font-size: 13px; font-weight: 600; }

/* Partner: new wedding form with photo cards and a preview */
.dw-pnew__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.dw-v2 .dw-pnew__head h3 { margin: 0; }
.dw-pnew__grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; align-items: start; }
.dw-v2 .dw-partner .dw-pnew__step { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; font-family: Fraunces, Georgia, serif; font-size: 20px; font-weight: 500; color: var(--ink); }
.dw-pnew__step b { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font: 700 15px/1 Figtree, sans-serif; }
.dw-pnew__step small { font: 400 15px/1.3 Figtree, sans-serif; color: var(--muted); }
.dw-picks--sm { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.dw-picks--sm .dw-pick { aspect-ratio: 4 / 3.4; }
.dw-v2 .dw-picks--sm .dw-pick strong { font-size: 17px; }
.dw-v2 .dw-picks--sm .dw-pick small { font-size: 12px; }
.dw-picks--sm .dw-pick span { padding: 28px 10px 8px; }
.dw-picks--sm .dw-pick--other span { padding: 10px; }
.dw-pnew .dw-tpls { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
.dw-pnew .dw-pick.is-on::after { content: ""; position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.dw-pnew .dw-field > span small { font-weight: 400; color: var(--muted); }
.dw-v2 .dw-pnew__go { margin-top: 8px; min-height: 52px; padding: 0 28px; font-size: 17px; }
.dw-pnew__side { position: sticky; top: 96px; }
.dw-pnew__card { position: relative; aspect-ratio: 9 / 15; border-radius: 20px; overflow: hidden; background: #15241F; box-shadow: 0 18px 40px -22px rgba(21,36,31,.55); }
.dw-pnew__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dw-pnew__card div { position: absolute; left: 0; right: 0; bottom: 0; padding: 72px 18px 20px; display: grid; gap: 4px; color: #fff; text-align: center; background: linear-gradient(transparent, rgba(10,24,19,.88)); }
.dw-pnew__card small { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #F7D58A; }
.dw-pnew__card strong { font: 500 26px/1.15 Fraunces, Georgia, serif; overflow-wrap: anywhere; }
.dw-pnew__card span { font-size: 14px; opacity: .9; }
.dw-v2 .dw-pnew__side .dw-hint { margin: 12px 0 0; text-align: center; font-size: 14px; }
@media (max-width: 960px) {
  .dw-pnew__grid { grid-template-columns: 1fr; gap: 8px; }
  .dw-pnew__side { position: static; order: -1; }
  .dw-pnew__card { aspect-ratio: 16 / 10; }
  .dw-pnew__side .dw-hint { display: none; }
  .dw-picks--sm { grid-template-columns: repeat(2, 1fr); }
  .dw-v2 .dw-pnew__go { width: 100%; }
}

/* Partner: subscription notes and cancel card */
.dw-subnote { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-color: #F2B441; background: #FFFBF0; }
.dw-subnote p { margin: 0; flex: 1 1 320px; }
.dw-subcard p { color: var(--muted); max-width: 62ch; }
.dw-subcard .dw-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Partner dashboard on phones */
.dw-pbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.dw-v2 .dw-partner .dw-stats { grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); }
@media (max-width: 640px) {
  .dw-v2 .dw-top:has(+ .dw-partner) { padding: 10px 16px; gap: 8px; position: static; }
  .dw-v2 .dw-top:has(+ .dw-partner) .dw-top__link { flex: 1 1 calc(100% - 150px); white-space: normal; overflow: visible; line-height: 1.3; font-size: 15px; }
  .dw-v2 .dw-top:has(+ .dw-partner) .dw-top__link small { margin: 2px 0 0; }
  .dw-v2 .dw-top:has(+ .dw-partner) .dw-btn { flex: 1 1 auto; justify-content: center; text-align: center; padding-left: 8px; padding-right: 8px; font-size: 14px; white-space: nowrap; }
  .dw-v2 .dw-main.dw-partner { padding: 20px 16px 56px; }
  .dw-v2 .dw-partner .dw-stats { grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
  .dw-v2 .dw-partner .dw-stat { padding: 16px; min-width: 0; }
  .dw-v2 .dw-partner .dw-stat b { font-size: 28px; overflow-wrap: anywhere; }
  .dw-v2 .dw-partner .dw-stat:last-child { grid-column: 1 / -1; }
  .dw-v2 .dw-partner .dw-stat:last-child b { font-size: 22px !important; line-height: 1.3 !important; }
  .dw-pbar .dw-btn { flex: 1 1 100%; justify-content: center; }
  .dw-pbar .dw-hint { flex: 1 1 100%; }
  .dw-ledger__sum { font-size: 16px; }
  .dw-ledger__total td { font-size: 17px; }
  .dw-v2 .dw-ledger__next { padding: 12px 14px; }
  .dw-v2 .dw-ledger .dw-table thead th, .dw-v2 .dw-ledger .dw-table td { padding: 10px 6px; font-size: 14px; }
  .dw-table--cards, .dw-table--cards tbody, .dw-table--cards tr, .dw-table--cards td { display: block; width: auto; }
  .dw-table--cards thead { display: none; }
  .dw-v2 .dw-table--cards tr { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-top: 12px; }
  .dw-v2 .dw-table--cards td { border: 0; padding: 4px 0; }
  .dw-v2 .dw-table--cards td:first-child { padding-bottom: 8px; font-size: 17px; overflow-wrap: anywhere; }
  .dw-table--cards td[data-l] { display: flex; gap: 8px; align-items: center; }
  .dw-table--cards td[data-l]::before { content: attr(data-l); color: var(--muted); font-size: 14px; margin-right: auto; }
  .dw-v2 .dw-table--cards td:last-child { padding-top: 10px; }
  .dw-v2 .dw-table--cards .dw-actions { flex-wrap: wrap; gap: 8px; }
  .dw-v2 .dw-table--cards .dw-actions .dw-btn { flex: 1 1 auto; justify-content: center; text-align: center; }
  .dw-subnote .dw-btn, .dw-subcard .dw-actions .dw-btn { flex: 1 1 100%; justify-content: center; }
  .dw-v2 .dw-pkgs { grid-template-columns: 1fr; gap: 16px; }
  .dw-v2 .dw-pkg__price { font-size: 34px; }
}

/* RSVP app panel */
.dw-rsvpapp p { margin: 8px 0 12px; color: var(--muted); max-width: 60ch; }
.dw-rsvpapp .dw-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dw-rsvpapp .dw-pin b { letter-spacing: .08em; font-size: 26px; overflow-wrap: anywhere; }

/* Partner: give a client RSVP app access */
.dw-give { margin-top: 12px; padding: 16px; border-radius: 12px; background: var(--soft); text-align: left; white-space: normal; max-width: 520px; }
.dw-v2 .dw-partner .dw-give p { margin: 0 0 12px; color: #0B4A3A; }
.dw-give strong { display: block; color: var(--ink); }
.dw-give dl { margin: 0 0 12px; display: grid; gap: 8px; }
.dw-give dl div { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.dw-give dt { flex: 0 0 80px; color: var(--muted); font-size: 14px; }
.dw-give dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.dw-give__code { letter-spacing: .1em; font-size: 18px; }
.dw-v2 .dw-give .dw-actions { flex-wrap: wrap; gap: 8px; }

/* Partner dashboard: sections, settings, team, report */
.dw-ptabs { display: flex; gap: 4px; margin: 0 0 20px; padding: 4px; border-radius: 12px; background: #E3E8E4; overflow-x: auto; }
.dw-ptabs button { flex: 1 0 auto; min-height: 44px; padding: 0 18px; border: 0; border-radius: 9px; background: none; font: 500 15px/1 Figtree, system-ui, sans-serif; color: #3F4F48; cursor: pointer; }
.dw-ptabs button.on { background: #fff; color: var(--accent); font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.dw-ptabs button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.dw-pill--warn { background: #FDE2DD; color: #8A2412; }
.dw-blogo { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 4px 0 20px; }
.dw-blogo__box { width: 132px; height: 84px; flex: none; display: grid; place-items: center; border: 1px dashed #C4CEC8; border-radius: 12px; background: #fff; color: var(--muted); font-size: 14px; overflow: hidden; }
.dw-blogo__box img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 8px; box-sizing: border-box; }
.dw-blogo .dw-actions { margin: 0 0 6px; }
.dw-blogo .dw-hint { margin: 0; }
.dw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dw-partner form .dw-check { align-items: flex-start; margin: 4px 0 16px; }
.dw-partner form .dw-check input { margin-top: 3px; }
.dw-ticks, .dw-steps { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 6px; }
.dw-domain code { padding: 2px 6px; border-radius: 6px; background: var(--soft); font-size: 14px; word-break: break-all; }
.dw-give__note { margin: 0 0 12px; padding: 10px 12px; border-left: 3px solid #F2B441; background: #fff; border-radius: 0 8px 8px 0; white-space: pre-wrap; color: var(--ink); }
.dw-give dd { word-break: break-all; }
.dw-report__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.dw-report__head h3 { margin: 0; }
.dw-report__head select { width: auto; min-height: 44px; }
@media (max-width: 640px) {
  .dw-ptabs button { padding: 0 14px; }
  .dw-report__head .dw-actions, .dw-report__head select { width: 100%; }
}
@media print {
  .dw-top, .dw-ptabs, .dw-stats:not(.dw-report .dw-stats), .dw-report__head .dw-actions, .dw-toast { display: none !important; }
  .dw-partner > .dw-stats { display: none !important; }
  .dw-card { border: 0 !important; box-shadow: none !important; padding: 0 !important; }
  body { background: #fff !important; }
}

/* The partner's weddings table has many actions: it becomes cards earlier than other tables. */
@media (max-width: 1100px) {
  .dw-table--wide, .dw-table--wide tbody, .dw-table--wide tr, .dw-table--wide td { display: block; width: auto; }
  .dw-table--wide thead { display: none; }
  .dw-v2 .dw-table--wide tr { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-top: 12px; }
  .dw-v2 .dw-table--wide td { border: 0; padding: 4px 0; }
  .dw-v2 .dw-table--wide td:first-child { padding-bottom: 8px; font-size: 17px; overflow-wrap: anywhere; }
  .dw-table--wide td[data-l] { display: flex; gap: 8px; align-items: center; }
  .dw-table--wide td[data-l]::before { content: attr(data-l); color: var(--muted); font-size: 14px; margin-right: auto; }
  .dw-v2 .dw-table--wide td:last-child { padding-top: 10px; }
  .dw-v2 .dw-table--wide .dw-actions { flex-wrap: wrap; gap: 8px; }
  .dw-table--wide .dw-give { max-width: none; }
}

/* Partner weddings on a wide screen: the details sit on one line and the action buttons get their own line under them,
   so six buttons never squeeze the columns or break their labels over two lines. */
.dw-table--wide .dw-btn { white-space: nowrap; }
@media (min-width: 1101px) {
  .dw-table--wide, .dw-table--wide thead, .dw-table--wide tbody { display: block; }
  .dw-table--wide tr { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(0, 1.8fr) minmax(0, .7fr); align-items: center; }
  .dw-v2 .dw-table--wide tbody tr { border-bottom: 1px solid #E8ECE9; padding: 6px 0 14px; }
  .dw-v2 .dw-table--wide tbody tr:last-child { border-bottom: 0; padding-bottom: 0; }
  .dw-v2 .dw-table--wide thead tr { border-bottom: 1px solid var(--line); }
  .dw-v2 .dw-table--wide thead th { border-bottom: 0; }
  .dw-table--wide thead th:last-child { display: none; }
  .dw-v2 .dw-table--wide td { border-bottom: 0; overflow-wrap: anywhere; }
  .dw-v2 .dw-table--wide td:last-child { grid-column: 1 / -1; padding-top: 0; }
  .dw-v2 .dw-table--wide .dw-actions { flex-wrap: wrap; gap: 8px; }
  .dw-table--wide td[data-l="Status"] .dw-pill { margin: 2px 4px 2px 0; }
  .dw-table--wide .dw-give { max-width: 640px; }
}

.dw-brand { display: inline-flex; align-items: center; flex: none; }
.dw-brand img { display: block; height: 28px; width: auto; }
@media (max-width: 860px) { .dw-brand img { height: 24px; } }

/* Photo step: AI first, own photo second */
.dw-ai { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: linear-gradient(180deg, #fff, #F3F8F5); }
.dw-ai[hidden] { display: none; }
.dw-ai h3 { margin: 6px 0 6px; }
.dw-ai .dw-field { margin-bottom: 16px; }
.dw-ai__tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #F2B441; color: #15241F; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.dw-ai__lock { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px dashed var(--line); font-size: 14px; }
.dw-ba { display: grid; grid-template-columns: 1fr 34px 1fr; gap: 10px; align-items: center; max-width: 460px; margin: 16px 0 8px; }
.dw-ba figure { margin: 0; position: relative; }
.dw-ba img { display: block; width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 14px; background: #EEF1EE; }
.dw-ba figcaption { margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.3; }
.dw-ba figcaption b { display: block; color: #15241F; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.dw-ba__arrow { width: 34px; height: 34px; border-radius: 50%; background: #0E5A47; position: relative; margin-bottom: 40px; }
.dw-ba__arrow::after { content: ''; position: absolute; left: 10px; top: 11px; width: 10px; height: 10px; border: solid #fff; border-width: 2.5px 2.5px 0 0; transform: rotate(45deg); }
.dw-ba__note { font-size: 12px; color: var(--muted); margin: 0 0 16px; }
.dw-own__h { margin: 0 0 14px; }
.dw-own__h[hidden] { display: none; }
.dw-own--second { border-top: 1px solid var(--line); padding-top: 24px; }
@media (max-width: 480px) { .dw-ai { padding: 16px; } .dw-ba { grid-template-columns: 1fr 26px 1fr; gap: 6px; } .dw-ba__arrow { width: 26px; height: 26px; } .dw-ba__arrow::after { left: 7px; top: 8px; width: 8px; height: 8px; } }

/* AI outfits: photo check and one-photo-each */
.dw-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 150px)); gap: 14px; margin: 0 0 .5rem; }
.dw-slot .dw-photo__thumb { margin-bottom: 8px; max-width: none; }
.dw-slot .dw-btn { width: 100%; }
.dw-pcheck { margin: 12px 0 0; padding: 11px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 14px; line-height: 1.45; }
.dw-pcheck strong { display: block; }
.dw-pcheck ul { margin: 4px 0 0; padding-left: 18px; }
.dw-pcheck--ok { border-color: #0E5A47; background: #EAF4EF; color: #0B4638; }
.dw-pcheck--bad { border-color: #A3312A; background: #FBEDEB; color: #7C231E; }
.dw-pcheck--wait { color: var(--muted); }
.dw-pcheck--warn { border-color: #C98A12; background: #FDF5E3; color: #6B4A05; }

/* Print: welcome sign and stationery pack */
.dw-verify { border-color: #E7B95A; background: #FFF8E8; }
.dw-verify h2 { margin: 0 0 6px; font-size: 18px; }
.dw-verify p { margin: 0 0 12px; }
.dw-pack { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 20px 32px; border-color: var(--accent); }
.dw-pack__text { flex: 1 1 320px; display: flex; flex-direction: column; gap: 10px; }
.dw-pack p { color: #3F4F48; font-size: 16px; }
.dw-pitems { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.dw-pitem { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 64px; padding: 10px 14px; border: 1px solid var(--edge, var(--line)); border-radius: 12px; background: var(--paper, #fff); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.dw-pitem strong { font-size: 15px; line-height: 1.25; }
.dw-pitem small { font-size: 13px; color: var(--muted); }
.dw-pitem:hover { border-color: var(--accent); }
.dw-pitem.on { border-color: var(--accent); background: var(--soft); box-shadow: inset 0 0 0 1px var(--accent); }
.dw-pitem.on strong, .dw-pitem.on small { color: var(--accent); }
.dw-pform .dw-field { margin: 0; }
.dw-pform textarea { min-height: 0; line-height: 1.45; font-family: inherit; resize: vertical; }
.dw-pform .dw-field .dw-hint { font-size: 14px; }
.dw-preset { align-self: flex-start; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.dw-pside { max-width: 360px; align-items: stretch; text-align: center; }
.dw-pprev { background: #E9ECEA; border-radius: 16px; padding: 16px; display: flex; justify-content: center; }
.dw-pprev canvas { display: block; max-width: 100%; max-height: 62vh; height: auto; width: auto; background: #fff; box-shadow: 0 6px 22px rgba(20, 30, 26, .18); }
.dw-plock { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--accent); border-radius: 16px; background: #fff; text-align: left; }
.dw-plock strong { font-size: 18px; }
.dw-plock p { font-size: 15px; color: #3F4F48; }
.dw-plock small { color: var(--muted); font-size: 13px; text-align: center; }
.dw-pside__tip { text-align: left; }
