.jd-cel-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(10px,2vw,22px);max-width:980px;margin:0 auto}.jd-cel-card{position:relative;isolation:isolate;border:2px solid #ccaa64;border-radius:17px;overflow:hidden;text-align:center;background:linear-gradient(145deg,#081c36,#16446e 65%,#07182e);color:#fff;padding:clamp(10px,2vw,22px);box-shadow:0 9px 24px #09203c20;display:flex;flex-direction:column;align-items:center;min-width:0}.jd-cel-card.public{background:linear-gradient(150deg,#fffdf5,#f4e8d2 65%,#e5c88b);color:#102f50}.jd-cel-card:before,.jd-cel-card:after{content:'';position:absolute;z-index:-1;border:1px solid #d6b56b66;width:140%;height:30%;border-radius:50%;transform:rotate(-15deg);pointer-events:none;left:-20%;top:-17%}.jd-cel-card:after{top:auto;bottom:-17%}.jd-cel-kicker{font-size:clamp(8px,1.6vw,12px);font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#f5d590}.jd-cel-card.public .jd-cel-kicker{color:#785017}.jd-cel-card h3{font:700 clamp(20px,3vw,32px)/1.13 Georgia,serif;margin:10px 0;color:inherit}.jd-cel-card .jd-cel-name{font:700 clamp(17px,2.5vw,27px)/1.2 Georgia,serif;color:inherit;overflow-wrap:anywhere;margin:9px 0 4px}.jd-cel-card .jd-cel-date{font-size:14px;font-weight:700;margin:5px 0}.jd-cel-card .jd-cel-age{font-size:13px;margin:0 0 9px}.jd-cel-photo{display:block;width:100%;aspect-ratio:1/1;object-fit:contain;border-radius:12px;background:#000;border:1px solid #cfac63;margin:6px 0}.jd-cel-brand{font-size:10px;letter-spacing:.06em;margin:10px 0;color:inherit}.jd-cel-logo{width:57px;height:34px;object-fit:contain;background:#000;border-radius:4px}.jd-cel-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;margin-top:auto;padding-top:8px}.jd-cel-actions button{border:1px solid #c9a35d;background:#fff8e6;color:#112f51;border-radius:9px;padding:8px 12px;min-height:44px;font-weight:750;cursor:pointer}.jd-cel-section-title{font:700 30px Georgia,serif;color:#102f50;text-align:center;margin:28px 0 14px}.jd-cel-page #cel-public-status{text-align:center;color:#536680}.jd-cel-home[hidden],#jd-cel-editor[hidden],#jd-cel-editor [hidden],.jd-cel-page [hidden]{display:none!important}#jd-cel-editor #cel-form{margin:18px 0;padding:14px;border:1px solid #d6dfed;border-radius:12px;background:#f7f9fd}#jd-cel-editor select,#jd-cel-editor input:not([type=checkbox]){width:100%;min-width:0;font-size:16px}#jd-cel-editor #cel-photo{width:120px;max-height:160px;object-fit:contain;display:block;margin:10px 0}#jd-cel-editor .jd-fields{margin:12px 0}#jd-cel-editor .jd-fields label{min-width:0}#jd-cel-editor input[type=checkbox]{width:auto}.jd-dot.celebration{background:#fff!important;border:1px solid #64758d}.jd-day-detail.is-celebration{border-left-color:#96a6bb}.jd-cel-dialog{max-width:min(92vw,560px);width:100%;border:1px solid #c9a35d;border-radius:15px;padding:16px;color:#102f50;background:#fff}.jd-cel-dialog::backdrop{background:#03142dcc}.jd-cel-dialog img{width:100%;display:block;max-height:65vh;object-fit:contain}.jd-cel-dialog .jd-cel-actions{justify-content:space-between}.jd-cel-dialog p{font-size:13px;overflow-wrap:anywhere}@media(min-width:850px){.jd-cel-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:350px){.jd-cel-grid{grid-template-columns:1fr}}

/* V13.1: music-inspired celebration design; all existing controls retained. */
.jd-cel-card{border:1px solid #c8a45d;border-top:4px solid #e7c57b;background:radial-gradient(ellipse at 50% 0%,#28588a 0%,transparent 53%),linear-gradient(155deg,#07182e,#10365e 60%,#081a32);padding:clamp(10px,2vw,23px);box-shadow:0 12px 26px #09203c26,inset 0 0 0 3px #f4d59522}
.jd-cel-card.public{background:radial-gradient(ellipse at 50% 0%,#ffffff 0%,transparent 55%),linear-gradient(155deg,#fffdf5,#f8efd9 65%,#e9d3a2);box-shadow:0 12px 26px #09203c17,inset 0 0 0 3px #fff9e9}
.jd-cel-card:before,.jd-cel-card:after{border-color:#d6b56b45;width:150%;height:40%;top:-28%;left:-25%}.jd-cel-card:after{top:auto;bottom:-28%}
.jd-cel-music{display:flex;align-items:center;gap:7px;width:100%;color:#f4d595;margin:4px 0 11px;font:700 clamp(20px,4vw,32px)/1 Georgia,serif}.jd-cel-music:before,.jd-cel-music:after{content:'';flex:1;height:11px;background:repeating-linear-gradient(to bottom,currentColor 0 1px,transparent 1px 2.5px);opacity:.58;transform:skewY(-5deg)}.jd-cel-music:after{transform:skewY(5deg)}.jd-cel-card.public .jd-cel-music{color:#98702b}.jd-cel-card h3{margin:3px 0 10px}.jd-cel-card .jd-cel-kicker{letter-spacing:.10em}.jd-cel-photo{border:2px solid #d8b770;border-radius:50% 50% 15px 15px / 18% 18% 15px 15px;background:#08182c;box-shadow:0 4px 13px #0003}.jd-cel-emblem{display:grid;place-items:center;width:80%;aspect-ratio:1.6;margin:5px 0;color:#f4d595;font:400 clamp(36px,8vw,76px)/1 Georgia,serif;border:1px solid #d6b56b55;border-radius:50%;background:radial-gradient(ellipse,#d6b56b26,transparent 70%)}.jd-cel-card.public .jd-cel-emblem{color:#98702b}.jd-cel-card .jd-cel-brand{margin:7px 0;font-size:10px}.jd-cel-card .jd-cel-actions button{background:linear-gradient(125deg,#b78a3f,#f8dc98);border-color:#e6c27b;color:#0a2545;font-size:13px;line-height:1.25;width:100%}.jd-cel-card .jd-cel-actions{width:100%}.jd-cel-card .jd-cel-name{margin:10px 0 5px}.jd-cel-section-title{display:flex;align-items:center;justify-content:center;gap:12px;font-size:clamp(24px,4vw,34px)}.jd-cel-section-title:before,.jd-cel-section-title:after{content:'';height:1px;flex:1;max-width:90px;background:linear-gradient(90deg,transparent,#bd9250)}.jd-cel-section-title:after{transform:scaleX(-1)}.jd-cel-hero .jd-cel-music{max-width:240px;margin:0 0 20px}.jd-cel-hero{position:relative;overflow:hidden}.jd-cel-hero .container{position:relative;z-index:1}.jd-cel-hero:before{content:'♫';position:absolute;right:4%;bottom:-55px;font:400 250px/1 Georgia,serif;color:#e8c78316;pointer-events:none}.jd-cel-page .mini-label{letter-spacing:.17em}
@media(max-width:420px){.jd-cel-card h3{font-size:20px}.jd-cel-card .jd-cel-name{font-size:18px}.jd-cel-card .jd-cel-date,.jd-cel-card .jd-cel-age{font-size:12px}.jd-cel-card .jd-cel-brand{font-size:9px}.jd-cel-card .jd-cel-actions button{padding:7px 5px;font-size:12px}}

/* V13.2: keep full-size image viewing and return controls within the site. */
.jd-cel-viewer{box-sizing:border-box;width:min(94vw,560px);max-width:94vw;max-height:90vh;max-height:90dvh;overflow:auto;overscroll-behavior:contain;padding:12px;}
.jd-cel-viewer .jd-cel-viewer-bar{position:sticky;top:0;z-index:2;background:#fff;border-bottom:1px solid #e9dfca;margin:-12px -12px 10px;padding:12px;align-items:center;}
.jd-cel-viewer .jd-cel-viewer-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px;}
.jd-cel-viewer .jd-cel-viewer-actions button{min-width:0;line-height:1.2;font-size:14px;}
.jd-cel-viewer .jd-cel-viewer-actions button:first-child{background:linear-gradient(120deg,#bd9249,#ffe3a0);}
.jd-cel-viewer .jd-cel-viewer-actions [hidden]{display:none!important;}
.jd-cel-viewer .jd-cel-viewer-actions button:disabled{opacity:.55;cursor:wait;}
.jd-cel-viewer .jd-cel-viewer-status{margin:12px 2px 4px;line-height:1.5;}
.jd-cel-viewer img{height:auto;max-height:55vh;max-height:55dvh;object-fit:contain;-webkit-touch-callout:default;user-select:auto;-webkit-user-select:auto;}
.jd-cel-viewer.jd-cel-viewer-full{width:min(98vw,920px);max-width:98vw;max-height:94vh;max-height:94dvh;}
.jd-cel-viewer.jd-cel-viewer-full img{max-height:none;width:100%;height:auto;}

/* V13.3 personal messages */
.jd-cel-card .jd-cel-message{color:inherit;font:400 clamp(13px,2vw,17px)/1.45 Georgia,serif;overflow-wrap:anywhere;white-space:pre-line;margin:10px 0 14px;padding:8px 2px;border-top:1px solid #cda95f80;width:100%}#cel-personal-message{box-sizing:border-box;width:100%;padding:12px;border:1px solid #b9c7d9;border-radius:9px;font-size:16px;resize:vertical} .jd-cel-card[data-celebration-type="congratulations"] h3{font-size:clamp(16px,2.8vw,29px);overflow-wrap:anywhere}

/* V13.4 — compact musical thumbnails; full 1080px viewer is unchanged. */
.jd-cel-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-width:1000px;align-items:stretch}
.jd-cel-grid .jd-cel-card{padding:8px;border-radius:12px;border-top-width:3px;box-shadow:0 4px 12px #09203c16;min-width:0}
.jd-cel-grid .jd-cel-kicker{font-size:8px;line-height:1.25;letter-spacing:.06em}
.jd-cel-grid .jd-cel-music{font-size:17px;line-height:1;margin:3px 0 5px;gap:5px}
.jd-cel-grid .jd-cel-music:before,.jd-cel-grid .jd-cel-music:after{height:7px}
.jd-cel-grid .jd-cel-card h3,.jd-cel-grid .jd-cel-card[data-celebration-type="congratulations"] h3{font-size:clamp(13px,3.5vw,18px);line-height:1.15;margin:2px 0 5px;overflow-wrap:anywhere}
.jd-cel-grid .jd-cel-photo,.jd-cel-grid .jd-cel-emblem{box-sizing:border-box;width:100%;height:clamp(66px,24vw,120px);max-width:150px;aspect-ratio:auto;object-fit:contain;margin:3px 0;border-radius:9px;box-shadow:none}
.jd-cel-grid .jd-cel-emblem{font-size:38px}
.jd-cel-grid .jd-cel-card .jd-cel-name{font-size:clamp(13px,3.5vw,17px);line-height:1.2;margin:5px 0 2px}
.jd-cel-grid .jd-cel-card .jd-cel-date,.jd-cel-grid .jd-cel-card .jd-cel-age{font-size:11px;line-height:1.3;margin:2px 0;overflow-wrap:anywhere}
.jd-cel-grid .jd-cel-card .jd-cel-message{font-size:12px;line-height:1.35;padding:4px 0;margin:4px 0 5px;box-sizing:border-box}
.jd-cel-grid .jd-cel-logo,.jd-cel-grid .jd-cel-brand{display:none}
.jd-cel-grid .jd-cel-card .jd-cel-actions{padding-top:5px}
.jd-cel-grid .jd-cel-card .jd-cel-actions button{font-size:11px;min-height:44px;padding:5px 3px;line-height:1.15}
@media(min-width:600px){.jd-cel-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}}
@media(min-width:900px){.jd-cel-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
#cel-list .jd-cel-admin-group{padding:8px 10px;margin:9px 0}
#cel-list .jd-cel-admin-group>summary{padding:8px 0;min-height:44px;box-sizing:border-box}
#cel-list .jd-cel-admin-record{margin:6px 0;padding:0 9px;background:#f7f9fd;border-radius:8px}
#cel-list .jd-cel-admin-record>summary{min-height:44px;padding:8px 0;box-sizing:border-box;overflow-wrap:anywhere}
#cel-list .jd-cel-admin-name{font-size:15px;font-weight:750}
#cel-list .jd-cel-admin-date{display:block;margin-left:17px;font-size:12px;color:#536781;font-weight:500}
#cel-list .jd-cel-admin-body p{margin:5px 0;font-size:13px;overflow-wrap:anywhere}
#cel-list .jd-cel-admin-body .jd-ann-actions{margin:8px 0 10px}
