/* Card designer (invitations). Frames use only gradients, borders and text so downloads match the preview. */
.ashu-tool .cd-app { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr) }
@media (min-width: 960px) { .ashu-tool .cd-app { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) } .ashu-tool .cd-preview { position: sticky; top: 90px; align-self: start } }
.ashu-tool .cd-app fieldset legend { font-weight: 700; color: var(--ashu-accent); padding: 0 6px }
.ashu-tool .cd-thumbs { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)) }
.ashu-tool .cd-thumb { font: inherit; cursor: pointer; border: 2px solid transparent; border-radius: 10px; padding: 6px; display: flex; flex-direction: column; gap: 4px; color: #fff }
.ashu-tool .cd-thumb i { display: block; aspect-ratio: 4 / 5; border-radius: 3px }
.ashu-tool .cd-thumb span { font-size: 12px; text-shadow: 0 1px 2px rgba(0,0,0,.5) }
.ashu-tool .cd-thumb[aria-pressed="true"] { border-color: var(--ashu-fg); box-shadow: 0 0 0 2px var(--ashu-surface), 0 0 0 4px var(--ashu-accent) }
.ashu-tool .cd-toggles { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px }
.ashu-tool .cd-toggles label { display: flex; gap: 6px; align-items: center; cursor: pointer }
.ashu-tool .cd-paper { overflow-x: auto; padding: 6px 4px 14px }

.ashu-tool .cd-card { --paper: #fff8ec; --ink: #5a1e00; --lab: #8a4a1a; --rule: #e07b00; --sw: #e07b00;
  width: 100%; max-width: 520px; min-width: 300px; margin: 0 auto; padding: 14px; background: var(--sw); box-shadow: 0 10px 30px rgba(40, 10, 0, .22); color: var(--ink) }
.ashu-tool .cd-in { position: relative; background: var(--paper); padding: 26px 26px 14px; text-align: center; overflow: hidden; font-family: var(--ashu-f-doc) }
.ashu-tool .cd-in::before { content: ""; position: absolute; inset: 7px; border: 1px solid var(--rule); pointer-events: none }
.ashu-tool .cd-gan { display: block; width: 92px; height: 92px; margin: 0 auto 4px; object-fit: contain }
.ashu-tool .cd-shlok { font-size: 13px; color: var(--lab); margin: 0 0 6px; line-height: 1.5 }
.ashu-tool .cd-h1 { font-family: var(--ashu-f-display); font-size: 34px; color: var(--ink); margin: 2px 0; line-height: 1.25 }
.ashu-tool .cd-orn { display: flex; align-items: center; gap: 10px; width: 64%; margin: 4px auto 12px; color: var(--rule); font-size: 13px; line-height: 1 }
.ashu-tool .cd-orn::before, .ashu-tool .cd-orn::after { content: ""; flex: 1; height: 1px; background: var(--rule) }
.ashu-tool .cd-p { font-size: 15px; margin: 0 0 10px; line-height: 1.6 }
.ashu-tool .cd-name { font-family: var(--ashu-f-display); font-size: 26px; color: var(--ink); margin: 6px 0 0; line-height: 1.3 }
.ashu-tool .cd-sub { font-size: 14px; color: var(--lab); margin: 0 0 6px; line-height: 1.5 }
.ashu-tool .cd-and { font-family: var(--ashu-f-display); color: var(--rule); font-size: 22px; margin: 2px 0 }
.ashu-tool .cd-box { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 8px 0; margin: 12px 0; font-size: 15px; line-height: 1.7 }
.ashu-tool .cd-box b { color: var(--ink) }
.ashu-tool .cd-list { font-size: 14px; margin: 6px 0; line-height: 1.7 }
.ashu-tool .cd-list div { display: flex; justify-content: space-between; gap: 10px; text-align: left; border-bottom: 1px dotted var(--rule); padding: 2px 0 }
.ashu-tool .cd-small { font-size: 13px; color: var(--lab); margin: 8px 0 0 }
.ashu-tool .cd-qr { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 12px 0 0; font-size: 12px; color: var(--lab); font-family: var(--ashu-f-body) }
.ashu-tool .cd-qr-code { background: #fff; padding: 6px; line-height: 0 }
.ashu-tool .cd-qr-code img, .ashu-tool .cd-qr-code canvas { width: 96px !important; height: 96px !important }
.ashu-tool .cd-ft { margin-top: 12px; font-size: 10px; color: var(--lab); font-family: var(--ashu-f-body) }
.ashu-tool .cd-wm { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none }
.ashu-tool .cd-wm span { transform: rotate(-28deg); font-family: var(--ashu-f-body); font-weight: 700; font-size: 44px; color: var(--ink); opacity: .07; white-space: nowrap }
.ashu-tool .cd-card.is-clean .cd-wm, .ashu-tool .cd-card.is-clean .cd-ft { display: none }
.ashu-tool .cd-cert { border: 2px solid var(--rule); padding: 18px 14px; margin-top: 8px }
@media (max-width: 460px) { .ashu-tool .cd-in { padding: 20px 14px 12px } .ashu-tool .cd-h1 { font-size: 28px } }

/* ===== Ashunath 4: card designer refresh ===== */
.ashu-tool .cd-app { gap: clamp(20px, 3vw, 36px) }
@media (min-width: 960px) { .ashu-tool .cd-app { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) } }
.ashu-tool .cd-thumbs { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px }
.ashu-tool .cd-thumb { border-radius: 14px; padding: 7px; box-shadow: var(--ashu-sh-1); transition: transform .15s, box-shadow .15s }
.ashu-tool .cd-thumb:hover { transform: translateY(-2px); box-shadow: var(--ashu-sh-2) }
.ashu-tool .cd-thumb i { border-radius: 6px; position: relative; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6) }
.ashu-tool .cd-thumb i::after { content: ""; position: absolute; inset: 22% 18%; border-top: 2px solid var(--rule); border-bottom: 2px solid var(--rule); opacity: .7 }
.ashu-tool .cd-thumb span { font-weight: 700 }
.ashu-tool .cd-thumb[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ashu-accent), var(--ashu-sh-2) }
.ashu-tool .cd-paper { padding: 18px; border-radius: 22px; background: radial-gradient(120% 80% at 50% 0%, #eef0ff 0%, #f6f7fb 60%); border: 1px solid var(--ashu-line) }
.ashu-tool .cd-card { border-radius: 6px; box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 24px 50px -18px rgba(40, 10, 0, .45) }
.ashu-tool .cd-in { border-radius: 2px }
.ashu-tool .cd-in::after { content: ""; position: absolute; inset: 12px; border: 1px solid var(--rule); opacity: .35; pointer-events: none }
.ashu-tool .cd-corner { position: absolute; width: 34px; height: 34px; border: 2px solid var(--rule); pointer-events: none; z-index: 1 }
.ashu-tool .cd-corner::after { content: ""; position: absolute; width: 8px; height: 8px; background: var(--rule); transform: rotate(45deg) }
.ashu-tool .cd-corner.c1 { top: 16px; left: 16px; border-right: 0; border-bottom: 0; border-top-left-radius: 14px }
.ashu-tool .cd-corner.c2 { top: 16px; right: 16px; border-left: 0; border-bottom: 0; border-top-right-radius: 14px }
.ashu-tool .cd-corner.c3 { bottom: 16px; left: 16px; border-right: 0; border-top: 0; border-bottom-left-radius: 14px }
.ashu-tool .cd-corner.c4 { bottom: 16px; right: 16px; border-left: 0; border-top: 0; border-bottom-right-radius: 14px }
.ashu-tool .cd-corner.c1::after { top: 6px; left: 6px } .ashu-tool .cd-corner.c2::after { top: 6px; right: 6px }
.ashu-tool .cd-corner.c3::after { bottom: 6px; left: 6px } .ashu-tool .cd-corner.c4::after { bottom: 6px; right: 6px }
.ashu-tool .cd-body { position: relative; z-index: 2 }
.ashu-tool .cd-in { padding: 34px 30px 16px }
.ashu-tool .cd-h1 { letter-spacing: .01em }
.ashu-tool .cd-name { font-size: 28px }
.ashu-tool .cd-box { background: rgba(255,255,255,.55); border: 1px solid var(--rule); border-left: 0; border-right: 0 }
.ashu-tool .cd-photo { display: block; margin: 6px auto 12px; object-fit: cover; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--rule), 0 8px 18px -8px rgba(0,0,0,.35) }
.ashu-tool .cd-photo--wide { width: 88%; aspect-ratio: 16 / 10; border-radius: 10px }
.ashu-tool .cd-photo--couple { width: 62%; aspect-ratio: 4 / 3; border-radius: 120px 120px 12px 12px }
.ashu-tool .cd-photo--round { width: 132px; height: 132px; border-radius: 50% }
.ashu-tool .cd-photo--big { width: 168px; height: 168px }
.ashu-tool .cd-banner .cd-in { padding-top: 40px; padding-bottom: 22px }
.ashu-tool .cd-banner .cd-h1 { font-size: 32px; color: var(--ink) }
.ashu-tool .cd-banner .cd-p { font-size: 16px }
.ashu-tool .cd-ft { position: relative; z-index: 2 }
.ashu-tool .cd-card.is-clean .ashu-wmgrid { display: none }
.ashu-tool .cd-jump { display: none }
@media (max-width: 959px) { .ashu-tool .cd-jump { display: inline-flex } }
@media (max-width: 460px) { .ashu-tool .cd-in { padding: 28px 16px 12px } .ashu-tool .cd-corner { width: 24px; height: 24px } .ashu-tool .cd-name { font-size: 23px } .ashu-tool .cd-paper { padding: 8px } }
