/* Cat 55: Maple-liked base + bubble controls + Corel SVG demo.
   Preserve Cherry/Walnut/Maple and clickable urn; replace repeated right-side controls with calmer bubbles. */

#panels .panel-editor-card{
  overflow:visible !important;
}

/* Keep wood choice visible. Hide only the repeated generic controls that were confusing. */
#panels .panel-editor-card > label[for="panelStyleSelect"],
#panels #panelStyleSelect,
#panels .panel-editor-card > label[for="panelFontSelect"],
#panels #panelFontSelect,
#panels .panel-editor-card > label[for="panelTextInput"],
#panels #panelTextInput,
#panels .panel-preview-card,
#panels #panelPhotoUploadLabel,
#panels #panelPhotoUpload,
#panels #panelPhotoControls,
#panels #frontMarbleControls,
#panels #panelTopSizeControls,
#panels #panelRuleNote,
#panels #panelMaterialList,
#panels .panel-help-note,
#panels #cat54CorelCard{
  display:none !important;
}

.elirya-bubble-corel-mix{
  margin-top:14px;
  display:grid;
  gap:12px;
  color:#fff4d8;
}

.bubble-corel-card{
  border-radius:22px;
  border:1px solid rgba(240,207,130,.25);
  background:rgba(255,255,255,.07);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.04),0 12px 28px rgba(0,0,0,.16);
  padding:13px;
}

.bubble-corel-status{
  background:linear-gradient(135deg,rgba(240,207,130,.18),rgba(255,255,255,.055));
}

.bubble-corel-kicker{
  display:block;
  color:#f0cf82;
  font-size:.72rem;
  line-height:1;
  letter-spacing:.11em;
  text-transform:uppercase;
  font-weight:900;
  margin:0 0 8px;
}

.bubble-corel-card strong{
  display:block;
  color:#fff9ec;
  font-size:1.06rem;
  line-height:1.18;
  margin:0 0 6px;
}

.bubble-corel-card p{
  margin:0 0 10px;
  color:#ffecca;
  line-height:1.35;
  font-size:.9rem;
}

.bubble-corel-popover{
  border-radius:28px;
  border:1px solid rgba(240,207,130,.28);
  background:rgba(0,0,0,.28);
  padding:10px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}

.bubble-corel-btn,
.bubble-corel-pill,
.bubble-corel-upload,
.bubble-corel-export,
.bubble-corel-poem{
  appearance:none;
  border:1px solid rgba(255,245,216,.26);
  background:rgba(255,255,255,.095);
  color:#fff7e6;
  border-radius:999px;
  padding:10px 13px;
  font-weight:900;
  cursor:pointer;
  text-align:center;
  font-family:Georgia,"Times New Roman",serif;
  min-height:40px;
  line-height:1.05;
}

.bubble-corel-pill{
  min-width:115px;
}

.bubble-corel-btn:hover,
.bubble-corel-btn:focus,
.bubble-corel-pill:hover,
.bubble-corel-pill:focus,
.bubble-corel-upload:hover,
.bubble-corel-upload:focus,
.bubble-corel-export:hover,
.bubble-corel-export:focus,
.bubble-corel-poem:hover,
.bubble-corel-poem:focus{
  outline:none;
  border-color:rgba(240,207,130,.60);
  background:rgba(240,207,130,.17);
}

.bubble-corel-btn.active,
.bubble-corel-pill.active{
  background:linear-gradient(180deg,#f4d98d,#b89554);
  color:#241307;
  border-color:rgba(255,255,255,.35);
  box-shadow:0 0 0 2px rgba(255,255,255,.10),0 8px 16px rgba(0,0,0,.22);
}

.bubble-corel-style-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.bubble-corel-style{
  border-radius:18px;
  min-height:95px;
  padding:9px 8px;
  display:grid;
  gap:7px;
  align-content:center;
}

.bubble-corel-style .bubble-corel-swatch{
  height:32px;
  border-radius:10px;
  border:1px solid rgba(240,207,130,.42);
  background:#111;
  box-shadow:inset 0 0 12px rgba(255,255,255,.04);
  overflow:hidden;
}

.bubble-corel-style[data-style*="marble"] .bubble-corel-swatch,
.bubble-corel-style[data-style*="plate"] .bubble-corel-swatch,
.bubble-corel-style[data-style="photo-plaque"] .bubble-corel-swatch{
  background:radial-gradient(circle at 22% 35%,rgba(255,255,255,.18),transparent 16%),linear-gradient(135deg,#020202,#242424 52%,#070707);
}
.bubble-corel-style[data-style="nameplate"] .bubble-corel-swatch,
.bubble-corel-style[data-style="large-plate"] .bubble-corel-swatch,
.bubble-corel-style[data-style="gold-plate"] .bubble-corel-swatch{
  background:linear-gradient(135deg,#ead98b,#9e7b32 52%,#f8eaa4);
}
.bubble-corel-style[data-style="picture-frame"] .bubble-corel-swatch{
  background:#22150d;
  box-shadow:inset 0 0 0 7px #b89554;
}
.bubble-corel-style[data-style="photo-engraved-plate"] .bubble-corel-swatch,
.bubble-corel-style[data-style="black-plaque-picture"] .bubble-corel-swatch{
  background:linear-gradient(90deg,#090909 0 44%,#dedede 44% 48%,#171717 48%);
}
.bubble-corel-style[data-style="wood-engraving"] .bubble-corel-swatch,
.bubble-corel-style[data-style="plain"],
.bubble-corel-style[data-style="plain-wood"] .bubble-corel-swatch{
  background:repeating-linear-gradient(12deg,#b79b67 0,#dec48b 16px,#9b7344 34px,#ead7ad 50px);
}
.bubble-corel-style[data-style="purple-white"] .bubble-corel-swatch{
  background:linear-gradient(135deg,#4a315f,#20102c);
}

.bubble-corel-field-grid{
  display:grid;
  gap:8px;
}
.bubble-corel-field-grid label{
  display:grid !important;
  gap:5px;
  margin:0 !important;
  color:#fff7e6;
  font-weight:900;
}
.bubble-corel-field-grid label span{font-size:.86rem;}
.bubble-corel-field-grid input,
.bubble-corel-field-grid textarea,
.bubble-corel-font-select{
  width:100%;
  box-sizing:border-box;
  border-radius:14px;
  border:1px solid rgba(255,245,216,.32);
  background:#fffaf2;
  color:#3b2418;
  padding:11px 12px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:1rem;
}
.bubble-corel-field-grid textarea{min-height:84px;resize:vertical;}

.bubble-corel-poems{
  display:grid;
  gap:7px;
  margin-top:10px;
}
.bubble-corel-poem{
  text-align:left;
  border-radius:14px;
  background:rgba(0,0,0,.18);
}

.bubble-corel-photo-card{display:none;}
.bubble-corel-photo-card.visible{display:block;}
.bubble-corel-hidden{position:fixed;left:-9999px;top:-9999px;opacity:0;}
.bubble-corel-photo-rail{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px;}
.bubble-corel-photo-rail span{
  border-radius:999px;
  background:rgba(240,207,130,.17);
  border:1px solid rgba(240,207,130,.22);
  color:#fff0cb;
  padding:7px 9px;
  font-weight:900;
  font-size:.82rem;
}

.bubble-corel-preview{
  border-radius:16px;
  background:#0f1011;
  border:1px solid rgba(240,207,130,.36);
  padding:16px;
  margin-top:8px;
  position:relative;
  min-height:188px;
  overflow:hidden;
}
.bubble-corel-preview-title{display:flex;justify-content:space-between;gap:10px;color:#f4d98d;font-weight:900;margin-bottom:8px;}
.bubble-corel-production{
  position:relative;
  border-radius:10px;
  border:2px solid rgba(240,207,130,.72);
  background:#050505;
  min-height:155px;
  overflow:hidden;
}
.bubble-corel-safe{
  position:absolute;inset:14px;border:2px dashed rgba(255,255,255,.65);border-radius:8px;pointer-events:none;
}
.bubble-corel-photo-box{
  position:absolute;left:32px;top:35px;width:30%;height:92px;border:2px solid rgba(240,207,130,.88);border-radius:8px;display:grid;place-items:center;color:#fff2c9;font-weight:900;text-align:center;overflow:hidden;
}
.bubble-corel-photo-box img{width:100%;height:100%;object-fit:cover;filter:grayscale(1) contrast(1.28) brightness(1.08);}
.bubble-corel-text-box{
  position:absolute;left:40%;right:28px;top:32px;bottom:24px;color:#f5dc91;text-align:center;font-weight:900;line-height:1.1;display:flex;flex-direction:column;justify-content:center;text-shadow:0 2px 5px rgba(0,0,0,.90);
}
.bubble-corel-production.layout-right .bubble-corel-photo-box{left:auto;right:32px;}
.bubble-corel-production.layout-right .bubble-corel-text-box{left:28px;right:40%;}
.bubble-corel-production.layout-center .bubble-corel-photo-box{left:50%;transform:translateX(-50%);top:18px;width:34%;height:70px;}
.bubble-corel-production.layout-center .bubble-corel-text-box{left:26px;right:26px;top:95px;}
.bubble-corel-production:not(.has-photo) .bubble-corel-photo-box{display:none;}
.bubble-corel-production:not(.has-photo) .bubble-corel-text-box{left:26px;right:26px;}
.bubble-corel-name{font-size:var(--bubble-name-size,1.55rem);}
.bubble-corel-dates{font-size:.95rem;}
.bubble-corel-short{font-size:1.0rem;}
.bubble-corel-body{font-size:var(--bubble-body-size,.84rem);font-style:italic;margin-top:5px;}
.bubble-corel-production.text-silver .bubble-corel-text-box{color:#eeeeea;}
.bubble-corel-production.text-natural .bubble-corel-text-box{color:#c7c2b8;}
.bubble-corel-export{width:100%;margin-top:10px;background:#fffaf2;color:#3a2112;}
.bubble-corel-data-list{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px;}
.bubble-corel-data-list div{border-radius:12px;background:rgba(0,0,0,.16);padding:8px;}
.bubble-corel-data-list span{display:block;color:#f0cf82;text-transform:uppercase;font-size:.7rem;font-weight:900;letter-spacing:.08em;}
.bubble-corel-data-list b{display:block;color:#fff;font-size:.92rem;margin-top:2px;}
.bubble-corel-note{margin-top:10px;color:#ffebc8;font-size:.86rem;line-height:1.3;}

@media(max-width:680px){
  .bubble-corel-style-grid{grid-template-columns:1fr;}
  .bubble-corel-popover{border-radius:20px;}
  .bubble-corel-pill{min-width:0;flex:1 1 44%;font-size:.92rem;padding:10px 8px;}
  .bubble-corel-data-list{grid-template-columns:1fr;}
  .bubble-corel-preview{padding:10px;}
  .bubble-corel-photo-box{left:22px;width:32%;}
  .bubble-corel-text-box{left:41%;right:18px;}
}

/* Cat 56: turn the right-side bubbles into accordion/flyout controls. */
#panels .panel-editor-card .panel-tabs{
  display:none !important;
}

.elirya-bubble-corel-mix .bubble-corel-accordion{
  padding:0;
  overflow:hidden;
}

.elirya-bubble-corel-mix .bubble-corel-accordion summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:14px 14px;
  border-radius:22px;
  color:#fff7e6;
  user-select:none;
}
.elirya-bubble-corel-mix .bubble-corel-accordion summary::-webkit-details-marker{display:none;}
.elirya-bubble-corel-mix .bubble-corel-accordion summary:after{
  content:'▼';
  color:#f0cf82;
  font-size:.78rem;
  margin-left:4px;
  transition:transform .18s ease;
}
.elirya-bubble-corel-mix .bubble-corel-accordion[open] summary:after{transform:rotate(180deg);}
.elirya-bubble-corel-mix .bubble-corel-accordion summary span{
  display:flex;
  align-items:center;
  gap:8px;
  color:#f0cf82;
  text-transform:uppercase;
  font-size:.76rem;
  letter-spacing:.08em;
  font-weight:900;
}
.elirya-bubble-corel-mix .bubble-corel-accordion summary small{
  display:grid;
  place-items:center;
  width:22px;
  height:22px;
  border-radius:999px;
  background:linear-gradient(180deg,#f4d98d,#b89554);
  color:#241307;
  font-size:.72rem;
  letter-spacing:0;
}
.elirya-bubble-corel-mix .bubble-corel-accordion summary b{
  color:#fffdf3;
  font-size:.92rem;
  text-align:right;
  line-height:1.1;
  max-width:44%;
}
.elirya-bubble-corel-mix .bubble-corel-accordion[open] summary{
  border-bottom:1px solid rgba(240,207,130,.18);
  border-bottom-left-radius:0;
  border-bottom-right-radius:0;
}
.elirya-bubble-corel-mix .bubble-corel-accordion > .bubble-corel-popover,
.elirya-bubble-corel-mix .bubble-corel-accordion > .bubble-corel-style-grid,
.elirya-bubble-corel-mix .bubble-corel-accordion > .bubble-corel-field-grid,
.elirya-bubble-corel-mix .bubble-corel-accordion > .bubble-corel-preview,
.elirya-bubble-corel-mix .bubble-corel-accordion > .bubble-corel-upload,
.elirya-bubble-corel-mix .bubble-corel-accordion > p,
.elirya-bubble-corel-mix .bubble-corel-accordion > .bubble-corel-poems,
.elirya-bubble-corel-mix .bubble-corel-accordion > .bubble-corel-photo-rail,
.elirya-bubble-corel-mix .bubble-corel-accordion > .bubble-corel-export,
.elirya-bubble-corel-mix .bubble-corel-accordion > .bubble-corel-data-list,
.elirya-bubble-corel-mix .bubble-corel-accordion > .bubble-corel-note{
  margin:12px 13px 13px;
}
.elirya-bubble-corel-mix .bubble-corel-accordion > .bubble-corel-field-grid{
  margin-bottom:6px;
}
.elirya-bubble-corel-mix .bubble-corel-accordion > .bubble-corel-poems{
  margin-top:8px;
}
.elirya-bubble-corel-mix .bubble-corel-accordion > .bubble-corel-preview{
  margin-top:12px;
}
.elirya-bubble-corel-mix .bubble-corel-photo-card:not(.visible){display:none !important;}

@media(max-width:680px){
  .elirya-bubble-corel-mix .bubble-corel-accordion summary{
    padding:13px 12px;
  }
  .elirya-bubble-corel-mix .bubble-corel-accordion summary b{
    max-width:48%;
    font-size:.86rem;
  }
}

/* Cat79: keep the old near-urn Corel experiment parked. */
#cat63CorelNearUrn{display:none!important;}
#bubbleCorelMix details[data-accordion-section="corel"]{display:none!important;}
