.ideal-wishes-button {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    flex: 0 0 auto;
    min-height: 34px;
    margin-inline: .25rem;
    padding: .26rem .65rem;
    border: 1px solid #d68e6d;
    border-radius: 999px;
    color: #fff;
    background: #0b2342;
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
}
.ideal-wishes-button:focus-visible { outline: 2px solid #0b2342; outline-offset: 2px; }
.ideal-wishes-button[aria-busy="true"] { cursor: progress; }

@property --ideal-wishes-border-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 260deg;
}

@keyframes ideal-wishes-border-lap {
    to { --ideal-wishes-border-angle: 620deg; }
}

.ideal-wishes-button--glow {
    --wishes-surface: linear-gradient(105deg, #101c3d, #071d48 68%, #101431);
    gap: .5rem;
    min-height: 40px;
    padding: .35rem .7rem;
    border: 2px solid transparent;
    background:
        radial-gradient(ellipse at 0 40%, #f7b77380, transparent 15%) padding-box,
        radial-gradient(ellipse at 100% 95%, #f7b77370, transparent 16%) padding-box,
        var(--wishes-surface) padding-box,
        conic-gradient(from var(--ideal-wishes-border-angle, 260deg), #ffc58b, #6ce6ff 15%, #458cff 36%, #d584ff 55%, #ffbc7a 67%, #786dff 76%, #24dcff 94%, #ffc58b) border-box;
    box-shadow: -2px 1px 7px #20cfff55, 2px 1px 7px #c567eb55, 0 1px 4px #db995866;
    font-size: .875rem;
    line-height: 1.2;
    animation: ideal-wishes-border-lap 3s linear infinite;
}
.ideal-wishes-button--glow:hover {
    --wishes-surface: linear-gradient(105deg, #172b54, #103163 68%, #1d2148);
    box-shadow: -2px 1px 9px #20cfff88, 2px 1px 9px #c567eb88, 0 1px 5px #db995888;
}
.ideal-wishes-gift { font-size: 1.25rem; }
.ideal-wishes-chevron { color: #d4e2ff; font-size: .75rem; }
.ideal-wishes-badge {
    display: inline-grid;
    place-items: center;
    min-width: 1.35rem;
    min-height: 1.35rem;
    padding: .1rem .35rem;
    border-radius: 999px;
    color: #fff;
    background: #9b5006;
    font-size: .75rem;
    font-variant-numeric: tabular-nums;
    line-height: 1.25;
    text-align: center;
}
.ideal-wishes-button[hidden], .ideal-wishes-badge[hidden] { display: none; }
.todays-birthday-button { border-color: #b48bd7; color: #462070; background: #f4e7fb; }
.todays-birthday-button:hover { background: #ead5f4; }
.todays-birthday-button:focus-visible { outline-color: #6d32a4; }

@media (prefers-reduced-motion: reduce), (forced-colors: active) {
    .ideal-wishes-button--glow { animation: none; }
}

@media (forced-colors: active) {
    .ideal-wishes-button--glow { border-color: ButtonText; }
    .ideal-wishes-badge { border: 1px solid ButtonText; }
}

.sd-modal {
    z-index: 1065 !important;
    color: var(--fg, #2e323a);
    line-height: 1.5;
    background: rgba(15, 23, 42, .62);
    backdrop-filter: blur(7px);
}

.sd-dialog { max-width: 850px; padding: .75rem; }
.sd-content {
    position: relative;
    overflow: hidden;
    border: 1px solid #eadfcf;
    border-radius: 28px;
    padding: 2rem 2.25rem 1.5rem;
    background: radial-gradient(circle at 10% 0%, #fff9ec 0, #fff 44%, #f7f8fc 100%);
    box-shadow: 0 28px 80px rgba(15, 23, 42, .28);
}
.sd-close {
    position: absolute; z-index: 2; top: 16px; right: 16px; width: 38px; height: 38px;
    display: grid; place-items: center; border: 1px solid #e8e2d8; border-radius: 50%;
    color: #6b6256; background: rgba(255,255,255,.9); cursor: pointer;
}
.sd-heading { text-align: center; margin: 0 2rem 1.4rem; }
.sd-heading-icon { color: #cf9c32; font-size: 1.2rem; }
.sd-eyebrow { margin-top: .15rem; color: #9b7b43; font-size: .67rem; font-weight: 800; letter-spacing: .2em; }
.sd-heading h2 { margin: .25rem 0 0; color: #26334b; font-family: Georgia, serif; font-size: clamp(1.45rem, 4vw, 2rem); }
.sd-card-wrap { min-height: 285px; }
.sd-festival-mode .sd-dialog {
    width: min(960px, calc(100% - 24px));
    max-width: none;
    margin-inline: auto;
    padding: 0;
}

.sd-festival-mode .sd-content {
    padding: 0;
    border: 0;
    background: #111827;
}

.sd-festival-mode .sd-heading { display: none; }
.sd-festival-mode .sd-card-wrap { min-height: 0; }
.sd-festival-mode .sd-close { top: .5rem; right: .5rem; }

.sd-festival-image {
    display: block;
    width: 100%;
    height: min(720px, calc(100vh - 3.5rem));
    height: min(720px, calc(100dvh - 2 * var(--bs-modal-margin, 1.75rem)));
    object-fit: contain;
}

@media (max-width: 575.98px) {
    .sd-festival-image {
        height: min(720px, 75vh);
        height: min(720px, 75dvh);
    }
}

.sd-birthday-list-mode .sd-dialog { width: min(94vw, 550px); max-width: none; margin-inline: auto; }
.sd-birthday-list-mode .sd-content {
    width: 100%;
    max-width: none;
    padding: 1.5rem clamp(1rem, 4vw, 2rem);
    background: linear-gradient(140deg, #fff6f2, #f6ecfc);
}
.sd-birthday-list-mode .sd-heading { display: none; }
.sd-birthday-list-mode .sd-card-wrap { min-height: 0; }
.sd-birthday-list-mode h2 {
    margin: 0 2.5rem 1rem 0;
    color: #32136b;
    font: 700 clamp(1.45rem, 4vw, 2rem)/1.15 Georgia, serif;
}
.sd-birthday-list { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.sd-birthday-list-entry {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: .55rem;
    width: 100%;
    padding: .6rem;
    border: 1px solid #e2d2ea;
    border-radius: 14px;
    color: #322047;
    background: #fffafc;
    text-align: left;
}
.sd-birthday-list-entry:hover { border-color: #ae83d7; background: #f4e6f9; }
.sd-birthday-list-entry:focus-visible { outline: 2px solid #6d32a4; outline-offset: 2px; }
.sd-birthday-list-photo {
    width: 42px;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
}
.sd-birthday-list-photo.sd-avatar-fallback {
    display: grid;
    place-items: center;
    color: #48217c;
    background: #e8bad9;
    font-size: .9rem;
    font-weight: 750;
}
.sd-birthday-list-name { font-weight: 700; overflow-wrap: anywhere; }
.sd-birthday-list-status {
    padding: .25rem .5rem;
    border-radius: 999px;
    color: #4e1d85;
    background: #eeddf7;
    font-size: .75rem;
    font-weight: 700;
}
.sd-birthday-list-status.is-sent { color: #23584b; background: #e2f2eb; }

@media (max-width: 640px) {
    .sd-content { padding: 1.6rem 1rem 1rem; border-radius: 22px; }
    .sd-dialog { margin: .5rem auto; }
    .sd-card-wrap { min-height: 0; }
}

.sd-wish-mode .sd-dialog { width: min(95vw, 1140px); max-width: none; padding: 0; margin-inline: auto; }
.sd-wish-mode .sd-content {
    width: 100%;
    max-width: none;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, .85);
    background: #fcf4f6;
}
.sd-wish-mode .sd-heading { display: none; }
.sd-wish-mode .sd-close, .sd-birthday-list-mode .sd-close {
    color: #463356;
    border: 0;
    background: transparent;
}
.sd-wish-mode .sd-close i, .sd-birthday-list-mode .sd-close i { display: none; }
.sd-wish-mode .sd-close::before, .sd-birthday-list-mode .sd-close::before { content: "×"; font-size: 2rem; line-height: 1; }
.sd-wish-mode .sd-close:hover, .sd-birthday-list-mode .sd-close:hover { background: rgba(97, 64, 121, .09); }
.sd-birthday-card {
    display: grid;
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
    min-height: clamp(540px, 64vw, 760px);
    color: #17132d;
    background: #fcf4f6 url("../Images/BirthdayWishCelebrationLowerBalloons.png") center / 100% 100% no-repeat;
}
.sd-birthday-person {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(6rem, 9vw, 8rem) 1rem 4rem calc(11% + 1rem);
    text-align: center;
}
.sd-employee-birthday-logo {
    position: absolute;
    top: .85rem;
    left: 1rem;
    width: clamp(84px, 9.4vw, 112px);
    height: auto;
}
.sd-birthday-portrait { width: clamp(125px, 19vw, 225px); }
.sd-birthday-portrait .sd-avatar {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    border: 6px solid #fff9f1;
    border-radius: 50%;
    object-fit: cover;
    background: #e8bad9;
    box-shadow: 0 0 26px rgba(255, 239, 183, .8);
}
.sd-birthday-portrait .sd-avatar-fallback {
    display: grid;
    place-items: center;
    color: #48217c;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 750;
}
.sd-birthday-name {
    margin: .85rem 0 0;
    color: #17132d;
    font-size: clamp(1.25rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    overflow-wrap: anywhere;
}
.sd-birthday-department {
    box-sizing: border-box;
    max-width: 100%;
    margin: .45rem 0 0;
    padding: .25rem .75rem;
    border-radius: 13px;
    color: #32136b;
    background: #ead9f5;
    font-size: clamp(.8rem, 1.2vw, .95rem);
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.sd-wish-panel {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    padding: clamp(2.35rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3.4rem) clamp(1.5rem, 4vw, 3.4rem);
}
.sd-birthday-today {
    align-self: center;
    margin: 0 0 .55rem;
    padding: .3rem .75rem;
    border-radius: 13px;
    color: #32136b;
    background: #ead9f5;
    font-size: .95rem;
    font-weight: 750;
}
.sd-wish-panel h2 {
    margin: 0 0 1.25rem;
    color: #32136b;
    font: italic 700 clamp(1.85rem, 3.65vw, 2.9rem)/1.1 Georgia, serif;
    text-align: center;
    overflow-wrap: anywhere;
}
.sd-wish-panel h2::after {
    display: block;
    width: 24%;
    height: .65rem;
    margin: .55rem auto 0;
    border-top: .28rem solid #f6b628;
    border-radius: 50%;
    content: "";
}
.sd-send-form { display: flex; flex: 1; flex-direction: column; }
.sd-wish-options { display: grid; gap: .55rem; }
.sd-wish-options legend {
    margin: 0 0 .7rem;
    color: #473959;
    font-size: 1rem;
    text-align: center;
}
.sd-wish-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: .9rem;
    min-height: clamp(3rem, 5vw, 4.15rem);
    padding: .72rem .95rem;
    border: 1px solid #ded1e5;
    border-radius: 15px;
    background: rgba(255, 255, 255, .6);
    font-size: clamp(.95rem, 1.4vw, 1.13rem);
    line-height: 1.4;
    cursor: pointer;
}
.sd-wish-option:hover { border-color: #ae83d7; }
.sd-wish-option:has(input:checked) { border-color: #b589df; background: linear-gradient(110deg, #f3e7fa, #ead5f4); }
.sd-wish-option input { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: #6721a8; }
.sd-wish-option span, .sd-wish-result { overflow-wrap: anywhere; }
.sd-wish-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .65rem; padding-top: 1rem; }
.sd-wish-actions button {
    min-height: 44px;
    padding: .55rem clamp(.9rem, 2.5vw, 1.5rem);
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 750;
}
.sd-wish-actions .sd-wish-cancel { border-color: #bcb0ca; color: #302244; background: #fff9fc; }
.sd-wish-cancel:hover { background: #f3e6f7; }
.sd-send-button { color: #fff; background: linear-gradient(125deg, #7025c5, #421180); }
.sd-send-button:hover { background: #4f178f; }
.sd-send-button:disabled { opacity: .6; cursor: wait; }
.sd-send-status { margin-top: .35rem; color: #493568; font-size: .875rem; }
.sd-send-status.is-error { color: #9a2835; }
.sd-wish-result {
    padding: 1rem;
    border: 1px solid #d7c1e8;
    border-radius: 14px;
    background: #fff9fc;
}
.sd-wish-result p { margin: .45rem 0 0; }

@media (max-width: 700px) {
    .sd-wish-mode .sd-dialog { width: min(94vw, 520px); }
    .sd-wish-mode .sd-content { max-height: calc(100dvh - 1rem); overflow-y: auto; }
    .sd-birthday-card { grid-template-columns: minmax(0, 1fr); min-height: 0; background: #fcf4f6; }
    .sd-birthday-person {
        position: relative;
        align-items: flex-start;
        justify-content: center;
        min-height: 165px;
        padding: 1.6rem 37% 1rem 1.25rem;
        text-align: left;
        background: #f4cec9;
    }
    .sd-birthday-person::before {
        position: absolute;
        inset: 0 0 0 43%;
        background: url("../Images/BirthdayWishCelebrationLowerBalloons.png") left bottom / auto 100% no-repeat;
        mask-image: linear-gradient(90deg, transparent, #000 34%);
        content: "";
    }
    .sd-birthday-person > * { position: relative; }
    .sd-employee-birthday-logo {
        inset: auto;
        margin-bottom: .6rem;
    }
    .sd-birthday-portrait { width: 92px; }
    .sd-birthday-portrait .sd-avatar { border-width: 4px; }
    .sd-wish-panel { padding: 1.25rem 1rem 1rem; }
    .sd-wish-panel h2 { font-size: clamp(1.65rem, 6.5vw, 2.2rem); }
    .sd-wish-option { gap: .65rem; padding: .65rem .7rem; }
}

.sd-wish-mode .sd-content:has(.sd-management-birthday-card) {
    border-color: #d6b479;
    background: #fbf2e0;
}
.sd-wish-mode .sd-content:has(.sd-management-birthday-card) .sd-close {
    color: #67430f;
    background: #fff9eb;
    box-shadow: 0 2px 8px rgba(92, 59, 16, .15);
}
.sd-management-birthday-card {
    position: relative;
    display: block;
    container-type: inline-size;
    min-height: 0;
    overflow: hidden;
    color: #443016;
    background: #fbf2e0;
}
.sd-management-birthday-visual {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1568 / 1003;
}
.sd-management-birthday-canvas {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    aspect-ratio: 1568 / 1003;
}
.sd-management-birthday-art {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
}
.sd-management-birthday-card .sd-birthday-person {
    position: absolute;
    inset: 0;
    display: block;
    min-height: 0;
    padding: 0;
    text-align: center;
    background: transparent;
}
.sd-management-birthday-card .sd-birthday-person::before { content: none; }
.sd-management-birthday-card .sd-birthday-portrait {
    position: absolute;
    inset: 23% auto auto 15.3%;
    width: 19.3%;
    height: 32.9%;
    clip-path: polygon(45% 1%, 55% 1%, 97% 20%, 100% 23%, 100% 72%, 97% 76%, 53% 99%, 47% 99%, 3% 76%, 0 72%, 0 23%, 3% 20%);
}
.sd-management-birthday-card .sd-avatar {
    height: 100%;
    border: 0;
    border-radius: 0;
    color: #67430f;
    background: #f2ddb5;
    box-shadow: none;
}
.sd-management-birthday-card .sd-birthday-name {
    position: absolute;
    inset: 58.9% auto auto 9%;
    width: 32%;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 0;
    color: #805317;
    font: 700 clamp(.65rem, 1.7cqi, 1.5rem)/1 Georgia, serif;
    text-transform: uppercase;
}
.sd-management-birthday-card .sd-birthday-department {
    position: absolute;
    top: 73%;
    left: 25%;
    transform: translateX(-50%);
    max-width: 21%;
    margin: 0;
    padding: .08em .65em;
    overflow: hidden;
    color: #67430f;
    background: #f8e7bf;
    font-size: clamp(.55rem, 1.05cqi, .75rem);
    white-space: nowrap;
    text-overflow: ellipsis;
}
.sd-management-birthday-card .sd-wish-panel {
    position: absolute;
    inset: 46.5% 7.5% 6% 47%;
    padding: 0 .2rem;
    overflow: auto;
    scrollbar-color: #b28a4f transparent;
}
.sd-management-birthday-card .sd-wish-panel h2 { color: #805317; }
.sd-management-birthday-card .sd-wish-panel h2::after { display: none; }
.sd-management-birthday-card .sd-wish-options { gap: .625rem; }
.sd-management-birthday-card .sd-wish-options legend {
    margin: 0 0 .4rem;
    color: #5a3c19;
    font-size: .875rem;
}
.sd-management-birthday-card .sd-wish-option {
    min-height: 2.4rem;
    padding: .45rem .65rem;
    border-color: #d6b479;
    border-radius: 12px;
    background: #fffaf0;
    font-size: clamp(.9rem, 1.35cqi, 1rem);
}
.sd-management-birthday-card .sd-wish-option:hover,
.sd-management-birthday-card .sd-wish-option:has(input:checked) {
    border-color: #a9782d;
    background: #f8e7bf;
}
.sd-management-birthday-card .sd-wish-option input { accent-color: #98651f; }
.sd-management-birthday-card .sd-wish-actions { padding-top: .5rem; }
.sd-management-birthday-card .sd-wish-cancel,
.sd-management-birthday-card .sd-wish-result {
    border-color: #d6b479;
    color: #503415;
    background: #fffaf0;
}
.sd-management-birthday-card .sd-wish-cancel:hover { background: #f8e7bf; }
.sd-management-birthday-card .sd-send-button { color: #3e2809; background: #e9c579; }
.sd-management-birthday-card .sd-send-button:hover { background: #f4d895; }
.sd-management-birthday-card .sd-send-status { color: #5a3c19; }
.sd-management-birthday-card .sd-send-status.is-error { color: #94283a; }

@media (min-width: 901px) {
    .sd-management-birthday-card .sd-wish-panel h2 {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}
@media (max-width: 900px) {
    .sd-wish-mode .sd-dialog:has(.sd-management-birthday-card) { width: min(94vw, 520px); }
    .sd-wish-mode .sd-content:has(.sd-management-birthday-card) {
        max-height: calc(100dvh - 1rem);
        overflow-y: auto;
    }
    .sd-management-birthday-visual {
        aspect-ratio: 784 / 1003;
        border-bottom: 1px solid #d6b479;
    }
    .sd-management-birthday-canvas { width: 200%; }
    .sd-management-birthday-card .sd-birthday-name {
        top: 58.35%;
        font-size: clamp(.6rem, 3.15cqi, 1.2rem);
    }
    .sd-management-birthday-card .sd-birthday-department { font-size: clamp(.55rem, 2.1cqi, .75rem); }
    .sd-management-birthday-card .sd-wish-panel {
        position: relative;
        inset: auto;
        padding: .65rem 1rem 1rem;
        overflow: visible;
    }
    .sd-management-birthday-card .sd-wish-panel h2 { margin-bottom: .75rem; }
}

/* Birthday owner's card follows the Ideal navy-and-copper team greeting design. */
.sd-modal.sd-birthday-mode .sd-dialog { max-width: 1100px; }
.sd-modal.sd-birthday-mode .sd-content { padding: 0 0 1.2rem; border: 1px solid #d8dce8; border-radius: 28px; background: #f4f3f7; }
.sd-modal.sd-birthday-mode .sd-heading { display: none; }
.sd-modal.sd-birthday-mode .sd-close { top: 18px; right: 18px; width: 44px; height: 44px; border: 0; color: #fff; background: #0b2342; box-shadow: 0 4px 12px rgba(3,17,34,.3); }
.sd-modal.sd-birthday-mode .sd-card-wrap { min-height: 0; }
.sd-owner-card { overflow: hidden; position: relative; min-height: 590px; border-radius: 27px 27px 0 0; background: linear-gradient(145deg,#f8f7fb 0%,#f0eff5 58%,#fff 100%); }
.sd-owner-brand { display: flex; align-items: center; gap: 1.2rem; position: relative; isolation: isolate; min-height: 112px; padding: 1rem 5rem 1.7rem 4rem; color: #fff; background: linear-gradient(112deg,#071b36 0%,#0c2b4f 48%,#0a1d38 72%); }
.sd-owner-brand::before { content: ""; position: absolute; z-index: -1; top: 0; right: 8%; width: 45%; height: 100%; background: linear-gradient(115deg,transparent 0 20%,#f5c3a8 20.3%,#c66d49 23%,transparent 23.5%); }
.sd-owner-brand::after { content: ""; position: absolute; z-index: -1; right: 0; bottom: -14px; left: 0; height: 26px; background: linear-gradient(100deg,#b85f3e,#ffd7bd 46%,#bb6242 70%,#e9a17e); clip-path: polygon(0 70%,25% 0,45% 68%,67% 100%,100% 12%,100% 100%,0 100%); }
.sd-owner-logo { width: 150px; max-height: 72px; padding: .3rem .45rem; border-radius: 8px; object-fit: contain; background: rgba(255,255,255,.96); }
.sd-owner-company { padding-left: 1.2rem; border-left: 2px solid rgba(255,255,255,.75); color: #f5f4f7; font-size: .83rem; line-height: 1.3; }
.sd-owner-main { display: grid; grid-template-columns: minmax(300px,.9fr) minmax(410px,1.1fr); align-items: center; gap: 2rem; padding: 1.6rem 3rem 2rem; }
.sd-owner-hero { display: grid; justify-items: center; align-content: center; position: relative; min-height: 410px; text-align: center; }
.sd-owner-photo-frame { display: grid; place-items: center; position: relative; width: min(100%,290px); height: 320px; padding: 9px; background: linear-gradient(145deg,#ffdec8,#c86b47 42%,#ffe5d4 76%,#b65035); filter: drop-shadow(0 12px 16px rgba(73,40,32,.22)); clip-path: polygon(25% 0,75% 0,100% 25%,100% 75%,75% 100%,25% 100%,0 75%,0 25%); }
.sd-owner-photo { width: 100%; height: 100%; object-fit: cover; background: #14233a; clip-path: polygon(25% 0,75% 0,100% 25%,100% 75%,75% 100%,25% 100%,0 75%,0 25%); }
.sd-owner-photo.sd-avatar-fallback { font-size: 4rem; }
.sd-owner-name { margin: 1rem 0 .35rem; color: #122d4b; font-size: 1.15rem; font-weight: 750; }
.sd-owner-greeting { display: flex; flex-direction: column; align-items: center; line-height: .98; color: #142b49; }
.sd-owner-greeting span { font-size: clamp(2rem,4vw,3.25rem); font-weight: 350; letter-spacing: -.04em; }
.sd-owner-greeting strong { margin-top: .12rem; color: #b75332; font-family: "Brush Script MT","Segoe Script",cursive; font-size: clamp(3rem,6vw,5.2rem); font-weight: 500; font-style: italic; }
.sd-owner-greeting-flourish { margin-top: .6rem; color: #d57d59; font-size: 1.8rem; }
.sd-owner-team { position: relative; margin-top: 1.5rem; padding: 3rem 1rem 1rem; border: 1px solid #df8662; border-radius: 38px; background: rgba(255,255,255,.62); box-shadow: 0 12px 28px rgba(23,35,54,.08); }
.sd-owner-team-heading { display: flex; align-items: center; justify-content: center; gap: .8rem; position: absolute; top: -23px; right: 1rem; left: 1rem; min-height: 56px; padding: .45rem 4.1rem .45rem 1rem; border: 2px solid #d98864; border-radius: 999px; color: #fff; background: linear-gradient(105deg,#081c37,#102d51); box-shadow: 0 6px 12px rgba(13,29,50,.18); }
.sd-owner-chat-icon { display: grid; place-items: center; width: 39px; height: 34px; border: 1px solid rgba(255,255,255,.8); border-radius: 13px; font-size: 1.1rem; }
.sd-owner-team-heading h3 { margin: 0; font-size: clamp(.95rem,2vw,1.3rem); font-weight: 650; white-space: nowrap; }
.sd-owner-wish-count { display: grid; place-items: center; position: absolute; top: -20px; right: -2px; min-width: 50px; height: 50px; padding: 0 .55rem; border: 2px solid rgba(255,255,255,.85); border-radius: 50%; color: #18304d; background: linear-gradient(145deg,#ffd6c4,#ed926c); font-size: 1.2rem; font-weight: 800; box-shadow: 0 5px 12px rgba(53,37,32,.2); }
.sd-owner-wish-list { display: grid; gap: .55rem; max-height: 340px; overflow-y: auto; scrollbar-color: #c7ccd5 transparent; }
.sd-owner-wish[hidden] { display: none; }
.sd-owner-wish { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: .65rem; min-height: 64px; padding: .55rem .7rem; border: 1px solid #ececf0; border-radius: 20px; background: linear-gradient(110deg,#fff,#f7f7fa); box-shadow: 0 4px 8px rgba(27,34,48,.1); }
.sd-owner-wisher-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #e5e8ee; }
.sd-owner-wisher-avatar.sd-avatar-fallback { display: grid; place-items: center; color: #fff; font-size: .8rem; font-weight: 750; background: linear-gradient(145deg,#31597a,#142c49); }
.sd-owner-wish-body { min-width: 0; }
.sd-owner-wish-name { overflow: hidden; color: #101a2a; font-size: .89rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.sd-owner-wish-text { display: -webkit-box; overflow: hidden; color: #182236; font-size: .82rem; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.sd-owner-wish-time { align-self: start; padding-top: .08rem; color: #596478; font-size: .67rem; font-weight: 650; white-space: nowrap; }
.sd-owner-empty { padding: 1.5rem 1rem; border-radius: 18px; color: #778195; background: #f5f6f9; text-align: center; }
.sd-owner-more { display: flex; align-items: center; justify-content: center; gap: .7rem; margin: .8rem auto 0; padding: .55rem 1.2rem; border: 1px solid #ebe9e7; border-radius: 999px; color: #17243b; background: #fff; font-weight: 750; box-shadow: 0 5px 12px rgba(21,31,47,.12); }
.sd-owner-more:hover { background: #f5f6f8; }
@media (max-width: 760px) {
    .sd-modal.sd-birthday-mode .sd-dialog { max-width: 600px; }
    .sd-owner-card { min-height: 0; }
    .sd-owner-brand { min-height: 88px; gap: .7rem; padding: .8rem 4rem .95rem 1.2rem; }
    .sd-owner-logo { width: 118px; max-height: 58px; }
    .sd-owner-company { padding-left: .65rem; font-size: .68rem; }
    .sd-owner-main { grid-template-columns: 1fr; gap: .5rem; padding: 1.5rem 1rem 1.3rem; }
    .sd-owner-hero { min-height: 0; }
    .sd-owner-photo-frame { width: 190px; height: 205px; }
    .sd-owner-name { margin-top: .7rem; }
    .sd-owner-greeting span { font-size: 2.2rem; }
    .sd-owner-greeting strong { font-size: 3.5rem; }
    .sd-owner-greeting-flourish { display: none; }
    .sd-owner-team { margin-top: 1.3rem; padding: 2.7rem .6rem .8rem; border-radius: 28px; }
    .sd-owner-team-heading { top: -20px; min-height: 48px; padding-left: .65rem; }
    .sd-owner-chat-icon { width: 32px; height: 30px; }
    .sd-owner-wish-count { top: -17px; min-width: 42px; height: 42px; font-size: 1rem; }
    .sd-owner-wish { grid-template-columns: 36px minmax(0,1fr) auto; gap: .5rem; padding: .5rem; }
    .sd-owner-wisher-avatar { width: 36px; height: 36px; }
    .sd-owner-wish-name { font-size: .82rem; }
    .sd-owner-wish-text { font-size: .76rem; }
    .sd-owner-wish-time { font-size: .6rem; }
}

/* Desktop birthday composition: portrait, greeting, and team wishes in one row. */
/* .sd-modal.sd-birthday-mode { background: rgba(239,232,223,.77); } */
.sd-modal.sd-birthday-mode .sd-dialog { max-width: 1120px; }
.sd-modal.sd-birthday-mode .sd-content { padding-bottom: .6rem; border: 2px solid #fff; border-radius: 30px; background: #f3f1f6; }
.sd-modal.sd-birthday-mode .sd-close { top: 18px; right: 18px; z-index: 5; }
.sd-owner-card { min-height: 630px; background: radial-gradient(ellipse at 60% 42%,#fff 0%,#f3f2f7 62%,#e9e8ef 100%); }
.sd-owner-card::before { content: ""; position: absolute; z-index: 0; top: -115px; left: 29%; width: 64%; height: 300px; border-bottom: 18px solid rgba(207,111,77,.92); border-radius: 0 0 55% 45%; transform: rotate(-11deg); pointer-events: none; }
.sd-owner-card::after { content: ""; position: absolute; z-index: 0; right: 0; bottom: 0; left: 0; height: 62px; background: linear-gradient(170deg,#0a2343 0 48%,#f3b094 49%,#f9ddcd 56%,#0b2748 58%); clip-path: polygon(0 100%,0 78%,19% 95%,36% 68%,52% 45%,68% 64%,84% 94%,100% 47%,100% 100%); pointer-events: none; }
.sd-owner-brand { z-index: 2; min-height: 128px; padding: .9rem 6rem 1.45rem 4rem; clip-path: polygon(0 0,100% 0,100% 83%,85% 91%,69% 98%,52% 100%,35% 91%,20% 86%,0 98%); }
.sd-owner-brand::before { top: 0; right: 10%; width: 56%; height: 100%; background: linear-gradient(150deg,transparent 0 43%,#bd6448 43.5%,#ffdac4 45%,#f1a17f 47%,transparent 47.5%); }
.sd-owner-brand::after { bottom: 0; height: 12px; background: linear-gradient(90deg,#bd6549,#ffe0ca 48%,#c46d50); clip-path: polygon(0 45%,20% 0,44% 80%,67% 100%,100% 10%,100% 100%,0 100%); }
.sd-owner-logo { width: 190px; max-height: 78px; margin-left: .8rem; }
.sd-owner-company { font-size: .9rem; }
.sd-owner-main { z-index: 1; grid-template-columns: minmax(220px,.82fr) minmax(205px,.77fr) minmax(370px,1.25fr); align-items: center; gap: 1rem; min-height: 470px; padding: .2rem 1.2rem 3.3rem; position: relative; }
.sd-owner-hero { min-height: 400px; }
.sd-owner-photo-frame { width: min(100%,285px); height: 390px; }
.sd-owner-greeting { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 385px; line-height: .99; color: #142b49; text-align: center; }
.sd-owner-greeting span { font-size: clamp(2.5rem,4vw,3.6rem); font-weight: 350; letter-spacing: -.04em; }
.sd-owner-greeting strong { margin-top: .2rem; font-size: clamp(3.5rem,5.7vw,5.5rem); white-space: nowrap; }
.sd-owner-greeting-flourish { margin-top: 1.1rem; }
.sd-owner-team { z-index: 1; margin: 1.2rem .3rem 0 0; padding: 3.1rem .9rem .9rem; border-radius: 40px; }
.sd-owner-team-heading { left: .9rem; right: .9rem; }
.sd-owner-wish-list { max-height: 365px; }

@media (max-width: 900px) {
    .sd-modal.sd-birthday-mode .sd-dialog { max-width: 650px; }
    .sd-owner-card { min-height: 0; }
    .sd-owner-card::before { left: 34%; width: 70%; height: 220px; }
    .sd-owner-brand { min-height: 105px; padding: .8rem 4rem .95rem 1rem; }
    .sd-owner-logo { width: 132px; max-height: 60px; margin-left: 0; }
    .sd-owner-company { font-size: .72rem; }
    .sd-owner-main { grid-template-columns: 1fr; gap: .5rem; padding: 1rem 1rem 3.1rem; }
    .sd-owner-hero { min-height: 0; }
    .sd-owner-photo-frame { width: 190px; height: 220px; }
    .sd-owner-greeting { min-height: 0; margin: .7rem 0 1rem; }
    .sd-owner-greeting span { font-size: 2.2rem; }
    .sd-owner-greeting strong { font-size: 3.5rem; }
    .sd-owner-greeting-flourish { display: none; }
    .sd-owner-team { margin: 1.25rem .1rem 0; padding: 2.8rem .6rem .8rem; border-radius: 28px; }
    .sd-owner-team-heading { top: -20px; min-height: 48px; padding-left: .65rem; }
    .sd-owner-chat-icon { width: 32px; height: 30px; }
    .sd-owner-wish-count { top: -17px; min-width: 42px; height: 42px; font-size: 1rem; }
    .sd-owner-wish-list { max-height: 320px; }
    .sd-owner-wish { grid-template-columns: 36px minmax(0,1fr) auto; gap: .5rem; padding: .5rem; }
    .sd-owner-wisher-avatar { width: 36px; height: 36px; }
    .sd-owner-wish-name { font-size: .82rem; }
    .sd-owner-wish-text { font-size: .76rem; }
    .sd-owner-wish-time { font-size: .6rem; }
}
/* Birthday-owner greeting uses the supplied artwork as its complete canvas. */
.sd-modal.sd-birthday-mode .sd-dialog {
    width: min(94vw, 1200px, calc((100dvh - 32px) * 1.53125));
    max-width: none;
    padding: 0;
}
.sd-modal.sd-birthday-mode .sd-content {
    position: relative;
    width: 100%;
    aspect-ratio: 1568 / 1024;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: clamp(12px, 2.4vw, 30px);
    background: #f4f1f5;
    box-shadow: 0 18px 55px rgba(7, 20, 37, .24);
}
.sd-modal.sd-birthday-mode .sd-card-wrap { min-height: 0; }
.sd-modal.sd-birthday-mode .sd-close {
    top: 2.1%; right: 38.2%; width: clamp(32px, 4.5vw, 48px); height: clamp(32px, 4.5vw, 48px);
    color: #fff; background: #0b2342; border: 0; box-shadow: 0 4px 12px rgba(3,17,34,.3);
}
.sd-owner-image-card { position: relative; width: 100%; aspect-ratio: 1568 / 1024; overflow: hidden; background: #f4f1f5; }
.sd-owner-artwork { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: fill; }
.sd-owner-photo-slot {
    position: absolute; left: 8.65%; top: 23%; width: 23.2%; height: 57.2%; overflow: hidden;
    clip-path: polygon(27% 0,67% 0,100% 23%,100% 77%,67% 100%,27% 100%,0 77%,0 23%);
}
.sd-owner-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.sd-owner-photo.sd-avatar-fallback { display: grid; place-items: center; color: #fff; font-size: clamp(2rem,7vw,5rem); font-weight: 750; background: linear-gradient(145deg,#31597a,#142c49); }
.sd-owner-person-name {
    position: absolute; left: 34.5%; top: 72%; width: 22%; overflow: hidden; padding: .28em .4em;
    border-radius: 999px; color: #102844; background: rgba(255,255,255,.86); font-size: clamp(.7rem,1.35vw,1.15rem);
    font-weight: 750; text-align: center; text-overflow: ellipsis; white-space: nowrap;
}
.sd-owner-image-count {
    position: absolute; z-index: 2; left: 89%; top: 9.1%; display: grid; place-items: center;
    width: 5.4%; aspect-ratio: 1; border: 2px solid rgba(255,255,255,.88); border-radius: 50%;
    color: #152d48; background: linear-gradient(145deg,#ffd6c4,#ed926c); font-size: clamp(.8rem,1.65vw,1.45rem);
    font-weight: 800; box-shadow: 0 5px 12px rgba(53,37,32,.2);
}
.sd-owner-wish-cover {
    position: absolute; left: 58%; top: 22%; width: 37.5%; height: 58.8%; overflow: hidden;
    padding: 0 1.8% 1%; border-radius: 26px; background: rgba(249,248,251,.98);
}
.sd-owner-wish-list {
    position: absolute; inset: 0 1.8% 11%; display: flex; flex-direction: column; gap: 1.1%;
    overflow-y: auto; padding: 0 0 1%; scrollbar-color: #c7ccd5 transparent;
}
.sd-owner-wish[hidden] { display: none; }
.sd-owner-wish {
    position: relative; display: grid; flex: 0 0 18%; grid-template-columns: 12% minmax(0,1fr) auto;
    align-items: center; gap: 2%; min-height: 0; padding: 1.2% 2%; border: 1px solid #ececf0;
    border-radius: 20px; background: linear-gradient(110deg,#fff,#f7f7fa); box-shadow: 0 4px 8px rgba(27,34,48,.1);
}
.sd-owner-wisher-avatar { width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; background: #e5e8ee; }
.sd-owner-wisher-avatar.sd-avatar-fallback { display: grid; place-items: center; color: #fff; font-size: .75rem; font-weight: 750; background: linear-gradient(145deg,#31597a,#142c49); }
.sd-owner-wish-body { min-width: 0; }
.sd-owner-wish-name { overflow: hidden; color: #101a2a; font-size: clamp(.62rem,1vw,.88rem); font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.sd-owner-wish-text { display: -webkit-box; overflow: hidden; color: #182236; font-size: clamp(.55rem,.92vw,.8rem); line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.sd-owner-wish-time { align-self: start; padding-top: .08rem; color: #596478; font-size: clamp(.48rem,.68vw,.65rem); font-weight: 650; white-space: nowrap; }
.sd-owner-empty { margin: auto; padding: 1rem; color: #778195; text-align: center; font-size: clamp(.62rem,1vw,.85rem); }
.sd-owner-more {
    position: absolute; right: 26%; bottom: 2%; left: 26%; display: flex; align-items: center; justify-content: center;
    gap: .45rem; min-height: 9%; padding: .3em .8em; border: 1px solid #ebe9e7; border-radius: 999px;
    color: #17243b; background: #fff; font-size: clamp(.58rem,1.08vw,.95rem); font-weight: 750;
    box-shadow: 0 5px 12px rgba(21,31,47,.12);
}
.sd-owner-more:hover { background: #f5f6f8; }

@media (max-width: 700px) {
    .sd-modal.sd-birthday-mode .sd-dialog { width: min(94vw, 520px); }
    .sd-modal.sd-birthday-mode .sd-content { aspect-ratio: auto; max-height: calc(100dvh - 20px); overflow-y: auto; }
    .sd-owner-image-card { display: flex; flex-direction: column; gap: 10px; aspect-ratio: auto; min-height: 0; padding: 0 14px 16px; overflow: visible; }
    .sd-owner-artwork { position: relative; inset: auto; width: calc(100% + 28px); height: 52px; flex: 0 0 52px; margin: 0 -14px; object-fit: cover; object-position: top; }
    .sd-owner-photo-slot { position: relative; left: auto; top: auto; width: min(190px,58vw); height: 205px; flex: 0 0 205px; margin: 2px auto 0; padding: 6px; background: linear-gradient(145deg,#ffdec8,#c86b47 42%,#ffe5d4 76%,#b65035); filter: drop-shadow(0 8px 12px rgba(73,40,32,.18)); }
    .sd-owner-photo { clip-path: polygon(30% 0,70% 0,100% 18%,100% 82%,70% 100%,30% 100%,0 82%,0 18%); }
    .sd-owner-person-name { position: relative; left: auto; top: auto; width: 100%; padding: 0; overflow: visible; color: #102844; background: transparent; font-size: 1rem; }
    .sd-owner-image-count { top: 6px; right: 5%; left: auto; width: 42px; font-size: 1rem; }
    .sd-owner-wish-cover { position: relative; left: auto; top: auto; width: 100%; height: auto; min-height: 120px; flex: 0 0 auto; overflow: hidden; padding: 54px 10px 12px; border: 1px solid #df8662; border-radius: 25px; background: rgba(249,248,251,.98); }
    .sd-owner-wish-list { position: relative; inset: auto; max-height: 330px; gap: 8px; padding: 0 0 42px; }
    .sd-owner-wish { flex: 0 0 auto; grid-template-columns: 36px minmax(0,1fr) auto; gap: 8px; min-height: 58px; padding: 8px; }
    .sd-owner-wisher-avatar { width: 36px; height: 36px; }
    .sd-owner-wish-name { font-size: .8rem; }
    .sd-owner-wish-text { font-size: .72rem; }
    .sd-owner-wish-time { font-size: .58rem; }
    .sd-owner-empty { padding: 18px 8px; }
    .sd-owner-more { right: 22%; bottom: 8px; left: 22%; min-height: 34px; font-size: .78rem; }
}

/* The artwork's 1335 × 987 inner rectangle occupies 64% of the desktop modal. */
.sd-modal.sd-birthday-mode {
    --sd-birthday-card-share: .64;
    --sd-birthday-ratio: calc(1335 / 987 / var(--sd-birthday-card-share));
    --sd-birthday-dialog-width: min(94vw, 1200px, calc((100dvh - 32px) * var(--sd-birthday-ratio)));
}
.sd-modal.sd-birthday-mode .sd-dialog {
    width: var(--sd-birthday-dialog-width);
    max-width: none;
    padding: 0;
    /* Center the card, limited by the space needed to keep the wishes on screen. */
    left: clamp(0px,
        calc((100% - var(--sd-birthday-dialog-width)) / 2 - 16px),
        calc(var(--sd-birthday-dialog-width) * (1 - var(--sd-birthday-card-share)) / 2));
}
.sd-modal.sd-birthday-mode .sd-content {
    position: relative;
    width: 100%;
    aspect-ratio: auto;
    overflow: visible;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
.sd-modal.sd-birthday-mode .sd-card-wrap { min-height: 0; }
.sd-modal.sd-birthday-mode .sd-close {
    top: 2.2%; right: 38.2%; width: clamp(32px, 4.2vw, 46px); height: clamp(32px, 4.2vw, 46px);
    color: #fff; background: #0b2342; border: 0; box-shadow: 0 4px 12px rgba(3,17,34,.3);
}
.sd-owner-image-card { position: relative; width: 100%; aspect-ratio: 1755 / 870; }
.sd-owner-art-area { position: relative; width: 100%; aspect-ratio: 1755 / 870; overflow: hidden; }
.sd-owner-artwork { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: fill; }
.sd-owner-photo-slot {
    position: absolute; left: 6.4%; top: 24.3%; width: 22.4%; height: 64%; overflow: hidden;
    clip-path: polygon(25% 0,74% 0,100% 23%,100% 77%,74% 100%,25% 100%,0 77%,0 23%);
}
.sd-owner-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.sd-owner-photo.sd-avatar-fallback {
    display: grid; place-items: center; color: #fff; font-size: clamp(2rem,7vw,5rem); font-weight: 750;
    background: linear-gradient(145deg,#31597a,#142c49);
}
.sd-owner-person-name {
    position: absolute; left: 7.2%; top: 78%; width: 20.8%; overflow: hidden; padding: .35em .45em;
    border-radius: 999px; color: #102844; background: rgba(255,255,255,.9); font-size: clamp(.65rem,1.15vw,1rem);
    font-weight: 750; text-align: center; text-overflow: ellipsis; white-space: nowrap;
}
.sd-owner-wish-cover {
    position: absolute; top: 20%; right: 3%; width: 32.5%; height: 77%; overflow: hidden;
    border-radius: 20px; background: rgba(255,255,255,.14);
}
.sd-owner-wish-heading { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.sd-owner-image-count {
    position: absolute; z-index: 2; top: 0; right: 1%; display: grid; place-items: center;
    width: clamp(30px,4vw,48px); aspect-ratio: 1; border: 2px solid rgba(255,255,255,.9); border-radius: 50%;
    color: #152d48; background: linear-gradient(145deg,#ffd6c4,#ed926c); font-size: clamp(.75rem,1.3vw,1.1rem);
    font-weight: 800; box-shadow: 0 5px 12px rgba(53,37,32,.2);
}
.sd-owner-wish-list {
    position: absolute; inset: 10% 1.5% 11%; display: flex; flex-direction: column; gap: 1.1%;
    overflow-y: auto; padding: 0 0 1%; scrollbar-color: #c7ccd5 transparent;
}
.sd-owner-wish[hidden] { display: none; }
.sd-owner-wish {
    position: relative; display: grid; flex: 0 0 18%; grid-template-columns: 12% minmax(0,1fr) auto;
    align-items: center; gap: 2%; min-height: 0; padding: 1.2% 2%; border: 1px solid rgba(220,224,232,.9);
    border-radius: 15px; background: rgba(255,255,255,.94); box-shadow: 0 4px 8px rgba(27,34,48,.1);
}
.sd-owner-wisher-avatar { width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; background: #e5e8ee; }
.sd-owner-wisher-avatar.sd-avatar-fallback {
    display: grid; place-items: center; color: #fff; font-size: .75rem; font-weight: 750;
    background: linear-gradient(145deg,#31597a,#142c49);
}
.sd-owner-wish-body { min-width: 0; }
.sd-owner-wish-name { overflow: hidden; color: #101a2a; font-size: clamp(.58rem,.82vw,.82rem); font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.sd-owner-wish-text { display: -webkit-box; overflow: hidden; color: #182236; font-size: clamp(.53rem,.72vw,.75rem); line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.sd-owner-wish-time { align-self: start; padding-top: .08rem; color: #596478; font-size: clamp(.46rem,.58vw,.62rem); font-weight: 650; white-space: nowrap; }
.sd-owner-empty { margin: auto; padding: 1rem; color: #536078; text-align: center; font-size: clamp(.62rem,.9vw,.82rem); }
.sd-owner-more {
    position: absolute; right: 21%; bottom: 1%; left: 21%; display: flex; align-items: center; justify-content: center;
    gap: .45rem; min-height: 9%; padding: .3em .8em; border: 1px solid #ebe9e7; border-radius: 999px;
    color: #17243b; background: #fff; font-size: clamp(.55rem,.85vw,.85rem); font-weight: 750;
    box-shadow: 0 5px 12px rgba(21,31,47,.12);
}
.sd-owner-more:hover { background: #f5f6f8; }

@media (max-width: 700px) {
    .sd-modal.sd-birthday-mode .sd-dialog { width: min(94vw, 520px); }
    .sd-modal.sd-birthday-mode .sd-content { aspect-ratio: auto; max-height: calc(100dvh - 20px); overflow-y: auto; }
    .sd-owner-image-card { display: flex; flex-direction: column; aspect-ratio: auto; overflow: visible; padding-bottom: 14px; }
    .sd-owner-art-area { width: 100%; aspect-ratio: 1755 / 870; }
    .sd-owner-photo-slot { left: 6.4%; top: 24.3%; width: 22.4%; height: 64%; }
    .sd-owner-person-name { left: 6.4%; top: 78%; width: 22.4%; font-size: clamp(.62rem,2.5vw,.85rem); }
    .sd-owner-wish-cover {
        position: relative; top: auto; right: auto; width: auto; height: auto; min-height: 120px; margin: 12px 14px 0;
        overflow: hidden; padding: 12px 10px; border: 1px solid #df8662; border-radius: 22px; background: rgba(249,248,251,.98);
    }
    .sd-owner-image-count { top: 8px; right: 8px; width: 38px; font-size: .9rem; }
    .sd-owner-wish-list { position: relative; inset: auto; max-height: 330px; gap: 8px; padding: 0 0 42px; }
    .sd-owner-wish { flex: 0 0 auto; grid-template-columns: 36px minmax(0,1fr) auto; gap: 8px; min-height: 58px; padding: 8px; }
    .sd-owner-wisher-avatar { width: 36px; height: 36px; }
    .sd-owner-wish-name { font-size: .8rem; }
    .sd-owner-wish-text { font-size: .72rem; }
    .sd-owner-wish-time { font-size: .58rem; }
    .sd-owner-empty { padding: 18px 8px; }
    .sd-owner-more { right: 22%; bottom: 8px; left: 22%; min-height: 34px; font-size: .78rem; }
}

/* Final split composition: full-height greeting card beside the wishes panel. */
.sd-modal.sd-birthday-mode .sd-owner-image-card {
    display: grid;
    grid-template-columns: calc(var(--sd-birthday-card-share) * 100%) minmax(0, 1fr);
    column-gap: clamp(0px, calc((100vw - 900px) * .04), 24px);
    width: 100%;
    aspect-ratio: auto;
    overflow: visible;
    background: transparent;
}
.sd-modal.sd-birthday-mode .sd-owner-art-area {
    position: relative;
    aspect-ratio: 1335 / 987;
    min-width: 0;
    align-self: start;
    overflow: hidden;
    border-radius: clamp(12px, 2.4vw, 30px);
    background: #f4f1f5;
    box-shadow: 0 18px 55px rgba(7, 20, 37, .24);
}
/* Crop the baked-in outer margin while keeping the portrait and plaque aligned. */
.sd-owner-art-canvas {
    position: absolute;
    top: calc(-18 / 987 * 100%);
    left: calc(-93 / 1335 * 100%);
    width: calc(1521 / 1335 * 100%);
    height: calc(1034 / 987 * 100%);
}
.sd-modal.sd-birthday-mode .sd-owner-artwork {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: fill;
}
.sd-owner-art-logo {
    position: absolute;
    top: 2.3%;
    left: 10.7%;
    width: 18.75%;
    height: auto;
}
.sd-modal.sd-birthday-mode .sd-owner-photo-slot {
    position: absolute;
    left: 15.32%;
    top: 21.28%;
    width: 25.51%;
    height: 54.16%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: none;
    filter: none;
    clip-path: url(#sdBirthdayPortraitClip);
}
.sd-modal.sd-birthday-mode .sd-owner-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: none;
}
.sd-modal.sd-birthday-mode .sd-owner-photo.sd-avatar-fallback {
    display: grid;
    place-items: center;
    color: #fff;
    font-size: clamp(2rem, 7vw, 5rem);
    font-weight: 750;
    background: linear-gradient(145deg, #31597a, #142c49);
}
.sd-modal.sd-birthday-mode .sd-owner-person-name {
    position: absolute;
    z-index: 2;
    left: 11.9%;
    top: 77.5%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32%;
    height: 8.3%;
    min-height: 0;
    overflow: hidden;
    padding: .25rem 1.8rem;
    border: 0;
    border-radius: 0;
    color: #fff;
    background: transparent;
    font-size: clamp(.58rem, .9vw, .9rem);
    font-weight: 750;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: none;
}
.sd-modal.sd-birthday-mode .sd-owner-person-name::before,
.sd-modal.sd-birthday-mode .sd-owner-person-name::after {
    position: absolute;
    top: 50%;
    width: 10px;
    height: 2px;
    content: "";
    background: transparent;
    box-shadow: none;
    transform: translateY(-50%);
}
.sd-modal.sd-birthday-mode .sd-owner-person-name::before { left: 12px; }
.sd-modal.sd-birthday-mode .sd-owner-person-name::after { right: 12px; }
.sd-modal.sd-birthday-mode .sd-owner-wish-cover {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding: clamp(18px, 2.2vw, 30px);
    border: 0;
    border-radius: 0;
    background: transparent;
}
.sd-modal.sd-birthday-mode .sd-owner-wishes-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem;
    padding: 2rem 0 1rem;
    border-bottom: 1px solid rgba(255, 221, 199, .27);
}
.sd-modal.sd-birthday-mode .sd-owner-wish-heading {
    position: static;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .55rem;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    clip: auto;
    color: #fff;
    font-size: clamp(1rem, 1.5vw, 1.35rem);
    font-weight: 750;
    white-space: normal;
}
.sd-modal.sd-birthday-mode .sd-owner-wish-heading i { color: #f2b293; font-size: 1.35em; }
.sd-modal.sd-birthday-mode .sd-owner-image-count {
    position: static;
    display: grid;
    place-items: center;
    min-width: 42px;
    width: 42px;
    height: 42px;
    padding: 0 .4rem;
    border: 1px solid rgba(196, 111, 77, .3);
    border-radius: 50%;
    color: #18304d;
    background: linear-gradient(145deg, #ffe4d4, #f2b293);
    font-size: .95rem;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(53,37,32,.12);
}
.sd-modal.sd-birthday-mode .sd-owner-wish-list {
    position: relative;
    inset: auto;
    display: grid;
    flex: 1 1 auto;
    align-content: start;
    gap: .65rem;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    padding: 1rem .1rem .5rem;
    scrollbar-color: rgba(255, 255, 255, .42) transparent;
}
.sd-modal.sd-birthday-mode .sd-owner-wish {
    position: relative;
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: .65rem;
    min-height: 64px;
    padding: .55rem .7rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 16px;
    background: rgba(255, 255, 255, .08);
    box-shadow: 0 4px 8px rgba(27,34,48,.08);
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.sd-modal.sd-birthday-mode .sd-owner-wish:hover {
    transform: translateY(-1px);
    border-color: rgba(202, 116, 80, .65);
    background-color: rgba(242, 178, 147, .18);
    box-shadow: 0 7px 14px rgba(110,69,50,.14);
}
.sd-modal.sd-birthday-mode .sd-owner-wish[hidden] { display: none; }
.sd-modal.sd-birthday-mode .sd-owner-wisher-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #e5e8ee;
}
.sd-modal.sd-birthday-mode .sd-owner-wisher-avatar.sd-avatar-fallback {
    display: grid;
    place-items: center;
    color: #fff;
    font-size: .75rem;
    font-weight: 750;
    background: linear-gradient(145deg, #31597a, #142c49);
}
.sd-modal.sd-birthday-mode .sd-owner-wish-body { min-width: 0; }
.sd-modal.sd-birthday-mode .sd-owner-wish-name {
    overflow: hidden;
    color: #fff;
    font-size: .84rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sd-modal.sd-birthday-mode .sd-owner-wish-text {
    display: -webkit-box;
    overflow: hidden;
    color: #edf0f6;
    font-size: .78rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.sd-modal.sd-birthday-mode .sd-owner-wish-time {
    align-self: start;
    padding-top: .08rem;
    color: #e0e5ef;
    font-size: .66rem;
    white-space: nowrap;
}
.sd-modal.sd-birthday-mode .sd-owner-empty {
    margin: auto;
    padding: 1.5rem .75rem;
    color: #e0e5ef;
    background: transparent;
    text-align: center;
}
.sd-modal.sd-birthday-mode .sd-owner-more {
    position: static;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 38px;
    margin: .7rem auto 0;
    padding: .3rem .8rem;
    border: 1px solid rgba(255, 255, 255, .36);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    font-size: .76rem;
    font-weight: 750;
    box-shadow: 0 5px 12px rgba(21,31,47,.1);
}
.sd-modal.sd-birthday-mode .sd-owner-more:hover { background: rgba(255, 255, 255, .18); }
@media (prefers-reduced-motion: reduce) {
    .sd-modal.sd-birthday-mode .sd-owner-wish { transition: none; }
    .sd-modal.sd-birthday-mode .sd-owner-wish:hover { transform: none; }
}

@media (max-width: 700px) {
    .sd-modal.sd-birthday-mode .sd-dialog { left: auto; width: min(94vw, 520px); }
    .sd-modal.sd-birthday-mode .sd-content { aspect-ratio: auto; max-height: calc(100dvh - 20px); overflow-y: auto; }
    .sd-modal.sd-birthday-mode .sd-close { top: 10px; right: 10px; }
    .sd-modal.sd-birthday-mode .sd-owner-image-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        aspect-ratio: auto;
        gap: 0;
        padding: 0;
        overflow: visible;
    }
    .sd-modal.sd-birthday-mode .sd-owner-person-name { font-size: clamp(.55rem, 2vw, .8rem); }
    .sd-modal.sd-birthday-mode .sd-owner-wish-cover {
        width: auto;
        height: auto;
        min-height: 0;
        margin: 0;
        padding: 16px;
    }
    .sd-modal.sd-birthday-mode .sd-owner-wishes-header { padding-top: 1rem; }
    .sd-modal.sd-birthday-mode .sd-owner-wish-list { max-height: 330px; }
}
