/* Scoped styling for the ribbon playground. The editor itself remains untouched. */
.modify-ribbon-demo .panel-kicker { color: #e81683; }
.modify-ribbon-demo .ribbon-demo-card { margin-top: 15px; padding: 13px; border: 1px solid #e8a2c7; border-radius: 9px; background: #fff7fb; }
.modify-ribbon-demo .ribbon-demo-card--dom { background: #f7f9fc; border-color: #dbe2ec; }
.modify-ribbon-demo .ribbon-demo-card__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.modify-ribbon-demo .ribbon-demo-card__eyebrow { display: block; margin-bottom: 3px; color: #e81683; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.modify-ribbon-demo .ribbon-demo-card__heading h3 { margin: 0; color: #172439; font-size: 15px; line-height: 1.2; }
.modify-ribbon-demo .ribbon-demo-state,
.modify-ribbon-demo .ribbon-demo-dom-badge { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; background: #edf3fc; color: #50739c; font-size: 9px; font-weight: 700; }
.modify-ribbon-demo .ribbon-demo-dom-badge { background: #fce4f1; color: #b00064; }
.modify-ribbon-demo .ribbon-demo-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.modify-ribbon-demo .ribbon-demo-actions .btn { min-height: 32px; padding: 6px 11px; font-size: 10px; white-space: nowrap; }
.modify-ribbon-demo .ribbon-demo-select-label { display: block; margin-top: 14px; color: #526f91; font-size: 10px; font-weight: 700; }
.modify-ribbon-demo .ribbon-demo-select-row { display: flex; align-items: center; gap: 7px; margin-top: 5px; }
.modify-ribbon-demo .ribbon-demo-select { min-width: 0; height: 34px; border: 1px solid #cad7e7; border-radius: 7px; color: #253b57; font-size: 10px; }
.modify-ribbon-demo .ribbon-demo-select-row .btn { flex: 0 0 auto; }
.modify-ribbon-demo .ribbon-demo-card__description { margin: 9px 0 0; color: #77859a; font-size: 10px; line-height: 1.45; }
.modify-ribbon-demo .ribbon-demo-footnote { margin: 10px 0 0; color: #8b98aa; font-size: 9px; line-height: 1.4; }
/* Classes used by the DOM customization itself. */
.demo-ribbon-home-highlight { background: linear-gradient(135deg, #fff0f8, #f5e6ff) !important; box-shadow: inset 0 -3px 0 #e81683; }
.demo-ribbon-custom-group { animation: ribbon-demo-group-in .28s ease both; }
.demo-ribbon-custom-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 7px; background: linear-gradient(135deg, #7216a4, #e81683); color: #fff; font-size: 11px; font-weight: 800; }
@keyframes ribbon-demo-group-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 900px) {
    .modify-ribbon-demo .ribbon-demo-actions--dom { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .modify-ribbon-demo .ribbon-demo-actions--dom .btn { width: 100%; }
}
