.experience-idea { display:flex; flex-direction:column; gap:8px; text-align:left; min-width:142px; }
.experience-idea b { overflow-wrap:anywhere; line-height:1.25; }
.experience-idea small { margin-top:auto; }
.catalog-thumbnail { display:flex; width:100%; height:100px; border-radius:14px; overflow:hidden; align-items:center; justify-content:center; background:#faf3e5; border:1px solid #e9dfcf; }
.experience-idea .catalog-thumbnail img { width:100%; height:100%; object-fit:contain; border-radius:0; }
.catalog-image-fallback { color:#8c681f; font-size:13px; padding:10px; text-align:center; }
.catalog-detail-image { display:flex; width:100%; max-width:300px; height:190px; border-radius:18px; overflow:hidden; margin:18px auto; background:#faf3e5; justify-content:center; align-items:center; }
.catalog-detail-image img { width:100%; height:100%; object-fit:contain; }
.catalog-block-list { display:grid; gap:12px; margin:16px 0; }
.catalog-block { padding:14px; border:1px solid #e9dfcf; border-radius:14px; background:#fff; }
.catalog-block h3 { margin:0 0 6px; font-size:17px; overflow-wrap:anywhere; }
#catalogTemplateDetails { padding-bottom:100px; }
#catalogRefresh { margin:0 0 10px; }
#typeGrid .experience-idea { min-width:0; }
.catalog-entry-form { display:grid; gap:12px; margin:16px 0; }
.catalog-field-label { display:block; font-size:15px; font-weight:700; margin-bottom:8px; }
.catalog-field-input { display:block; box-sizing:border-box; width:100%; max-width:100%; padding:12px; border:1px solid #bfb5a5; border-radius:10px; background:#fff; color:#10283d; font:inherit; font-size:16px; }
textarea.catalog-field-input { resize:vertical; min-height:130px; }
input[type=checkbox].catalog-field-input { width:22px; height:22px; }
.catalog-field-input:focus-visible { outline:3px solid #b88924; outline-offset:2px; }
.catalog-field-input[aria-invalid=true] { border-color:#a32d2d; }
.catalog-field-feedback { color:#9c3030; font-size:13px; margin:8px 0 0; }
.catalog-field-feedback:empty { display:none; }
.catalog-entry-form .pill { margin:8px 0; }
.catalog-entry-preview img,.catalog-entry-preview video { display:block; max-width:100%; max-height:350px; object-fit:contain; margin:10px auto; }
.catalog-entry-preview audio { max-width:100%; }
.catalog-preview-text { white-space:pre-wrap; overflow-wrap:anywhere; }
.catalog-entry-preview[hidden] { display:none; }
#catalogTemplateDetails h1 { margin:14px 0; font-size:30px; line-height:1.15; }
#catalogTemplateDetails h2 { margin:18px 0 10px; font-size:23px; }
#catalogTemplateDetails .catalog-detail-image { height:140px; margin:14px auto; }

/* v1.7.1: one composed wish, shared by live preview and reveal. */
#catalogTemplateDetails { padding-top:38px; }
#catalogTemplateDetails .catalog-entry-preview { margin:14px 0 22px; }
#catalogTemplateDetails .catalog-entry-preview h2.moment-title,
.moment-reveal-dialog h2.moment-title { font-family:"Cormorant Garamond",Georgia,serif; font-weight:500; font-size:clamp(30px,7vw,44px); line-height:1.05; letter-spacing:-.02em; margin:12px 0 24px; color:inherit; }
.moment-card { box-sizing:border-box; width:100%; padding:32px 24px 22px; border-radius:24px; overflow-wrap:anywhere; }
.moment-card-wish { color:#5c2037; text-align:center; background:linear-gradient(145deg,#fffaf3 0%,#fae8e7 65%,#f3d6dc 100%); border:1px solid #e7c4c7; box-shadow:0 14px 36px #6a283014; }
.moment-kicker { text-transform:uppercase; letter-spacing:.14em; font:600 10px/1.8 Manrope,Arial,sans-serif; color:#89515b; margin:0 0 24px; }
.moment-recipient { font:italic 26px/1.2 "Cormorant Garamond",Georgia,serif; margin:0; color:#6d3546; }
.moment-message { white-space:pre-wrap; font:400 17px/1.8 Georgia,serif; margin:26px 0 24px; color:#512c35; }
.moment-placeholder { color:#825b65; font-style:italic; }
.moment-signoff { font:400 12px/1.6 Manrope,Arial,sans-serif; color:#89515b; margin:22px 0 3px; }
.moment-signature { font:italic 28px/1.25 "Cormorant Garamond",Georgia,serif; margin:0; }
.moment-brand { font:500 9px/1.5 Manrope,Arial,sans-serif; letter-spacing:.24em; margin:30px 0 0; opacity:.7; }
.moment-photo { margin:14px 0 24px; }
.catalog-entry-preview .moment-photo img,.moment-photo img { display:block; width:100%; height:auto; max-height:380px; object-fit:contain; border-radius:18px; margin:0; background:#ffffff80; }
.moment-gallery { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:18px 0; }
.catalog-entry-preview .moment-gallery img,.moment-gallery img { display:block; width:100%; aspect-ratio:1; height:auto; object-fit:contain; border-radius:12px; background:#fff8; margin:0; }
.moment-photo video,.moment-photo audio,.moment-gallery video,.moment-gallery audio { width:100%; max-width:100%; }
.moment-card-details { background:#fff; border:1px solid #d9e0e5; color:#10283d; text-align:left; }
.moment-card-details .moment-kicker { color:#5a6873; }
.moment-detail { padding:14px 0; border-bottom:1px solid #e7e0db; }
.moment-detail h3 { margin:0 0 6px; font:600 13px/1.4 Manrope,Arial,sans-serif; }
.moment-detail p { white-space:pre-wrap; margin:0; font:400 16px/1.65 Manrope,Arial,sans-serif; }
.catalog-helper-note { display:block; color:#576572; font-size:12px; line-height:1.6; margin-top:10px; }
.catalog-entry-actions {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  position:static;
  margin:22px 0 8px;
  padding:14px;
  border:1px solid #e9dfcf;
  border-radius:18px;
  background:#fffaf3;
  z-index:auto;
}
.catalog-entry-actions .btn,
.catalog-entry-actions .pill {
  box-sizing:border-box;
  width:100%;
  min-width:0;
  min-height:50px;
  height:auto;
  margin:0;
  white-space:normal;
  line-height:1.2;
  cursor:pointer;
}
.catalog-entry-actions button:disabled {
  cursor:wait;
  opacity:.58;
}
.catalog-action-status {
  grid-column:1 / -1;
  margin:2px 2px 0;
  padding:10px 11px;
  border-radius:12px;
  background:#f7f3eb;
  border:1px solid #e3dace;
  color:#655e55;
  font-size:12px;
  line-height:1.5;
}
.catalog-action-status[data-state="success"] {
  background:#edf7f1;
  border-color:#c8e4d3;
  color:#246845;
}
.catalog-action-status[data-state="error"] {
  background:#fff0ee;
  border-color:#e7c9c5;
  color:#8c2929;
}
.catalog-action-status[data-state="busy"] {
  background:#fff8e3;
  border-color:#ead69c;
  color:#755816;
}
@media (max-width:520px) {
  .catalog-entry-actions { grid-template-columns:1fr; }
  .catalog-action-status { grid-column:1; }
}
.catalog-entry-form .catalog-block { border:0; border-bottom:1px solid #e9dfcf; border-radius:0; background:transparent; padding:14px 0; }
textarea.catalog-field-input { min-height:190px; line-height:1.65; }
.moment-reveal-dialog { box-sizing:border-box; border:0; width:min(100vw,580px); max-width:100vw; height:100dvh; max-height:100dvh; margin:0 auto; padding:20px max(18px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)); background:#f9ede7; color:#512c35; overflow-y:auto; }
.moment-reveal-dialog::backdrop { background:#26101ee0; }
.moment-reveal-toolbar { display:flex; justify-content:space-between; gap:12px; padding-top:env(safe-area-inset-top); margin-bottom:25px; }
.moment-reveal-toolbar .pill { min-height:44px; border:1px solid #d4bbc1; border-radius:24px; background:#fff8; padding:10px 16px; color:#5c2037; cursor:pointer; }
.moment-reveal-toolbar button:focus-visible { outline:3px solid #86234b; outline-offset:3px; }
.moment-reveal-stage { min-height:65dvh; display:flex; align-items:center; }
.moment-card-reveal { animation:moment-arrive .8s ease-out both; }
.moment-sound-status { font:400 13px/1.6 Manrope,Arial,sans-serif; text-align:center; }
@keyframes moment-arrive { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
@media (prefers-reduced-motion:reduce) { .moment-card-reveal { animation:none; } }
@media (max-width:360px) { .moment-card { padding:28px 18px 20px; } .moment-message { font-size:16px; } .moment-reveal-toolbar .pill { padding:8px 12px; } }
