[data-lsd-root] .sds-bubble-modebar{
  grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:8px;
  background:#fff;border:1px solid #e7eaf1;border-radius:16px;padding:7px;margin-bottom:-4px;
  box-shadow:0 5px 18px rgba(15,23,42,.05)
}
[data-lsd-root] .sds-bubble-modebar button{
  appearance:none;border:0;border-radius:11px;background:transparent;color:#475569;
  min-height:42px;padding:9px 18px;font:800 14px/1.2 inherit;cursor:pointer;transition:.18s ease
}
[data-lsd-root] .sds-bubble-modebar button.is-active{
  color:#fff;background:linear-gradient(135deg,#7c3aed,#4f46e5);box-shadow:0 7px 20px rgba(79,70,229,.22)
}
[data-lsd-root] .sds-bubble-shell{display:none;grid-column:1/-1;grid-template-columns:minmax(300px,390px) minmax(0,1fr);gap:18px;direction:rtl}
[data-lsd-root].sds-bubble-active>.controls,[data-lsd-root].sds-bubble-active>.preview{display:none!important}
[data-lsd-root].sds-bubble-active>.sds-bubble-shell{display:grid!important}
.sds-bubble-panel,.sds-bubble-stage-card{background:#fff;border:1px solid #e7eaf1;border-radius:18px;box-shadow:0 8px 26px rgba(15,23,42,.06)}
.sds-bubble-panel{padding:18px;display:flex;flex-direction:column;gap:15px}
.sds-bubble-panel h3{margin:0;font-size:20px;color:#111827}
.sds-bubble-panel p{margin:0;color:#64748b;font-size:12px;line-height:1.55}
.sds-bubble-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.sds-bubble-panel label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:800;color:#334155}
.sds-bubble-panel input[type="text"],.sds-bubble-panel select{
  width:100%;min-height:43px;border:1px solid #dce1eb;border-radius:10px;padding:9px 11px;background:#fff;color:#111827;font:600 14px/1.2 inherit
}
.sds-bubble-panel input[type="range"]{width:100%;accent-color:#6d28d9}
.sds-bubble-value{font-weight:900;color:#6d28d9}
.sds-bubble-color-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}
.sds-bubble-color{position:relative;display:block!important;cursor:pointer}
.sds-bubble-color input{position:absolute;opacity:0;pointer-events:none}
.sds-bubble-color span{display:block;aspect-ratio:1;border-radius:10px;background:var(--c);border:3px solid #fff;box-shadow:0 0 0 1px #d6dae4}
.sds-bubble-color input:checked+span{box-shadow:0 0 0 3px #6d28d9}
.sds-bubble-hint{padding:10px 12px;border-radius:10px;background:#f5f3ff;color:#5b21b6!important}
.sds-bubble-status{display:none;padding:10px 12px;border-radius:10px;background:#fff7ed;color:#9a3412;font-size:12px;font-weight:800}
.sds-bubble-status.show{display:block}.sds-bubble-status.error{background:#fef2f2;color:#b91c1c}
.sds-bubble-stage-card{position:relative;min-height:620px;overflow:hidden;display:flex;flex-direction:column}
.sds-bubble-toolbar{display:flex;gap:7px;flex-wrap:wrap;align-items:center;padding:10px;border-bottom:1px solid #edf0f5;background:#fbfcfe}
.sds-bubble-toolbar button{border:1px solid #dce1eb;border-radius:9px;background:#fff;color:#334155;min-height:36px;padding:7px 11px;font:800 12px/1 inherit;cursor:pointer}
.sds-bubble-toolbar .sds-bubble-export{margin-right:auto;color:#fff;border-color:#4f46e5;background:#4f46e5}
.sds-bubble-viewer{position:relative;flex:1;min-height:560px;background:radial-gradient(circle at 50% 42%,#ffffff,#eef2f7 72%);direction:ltr}
.sds-bubble-viewer canvas{display:block;width:100%!important;height:100%!important;touch-action:none}
.sds-bubble-empty{position:absolute;inset:0;display:grid;place-items:center;text-align:center;color:#94a3b8;padding:25px;pointer-events:none;font-weight:700}
.sds-bubble-badge{position:absolute;left:12px;bottom:12px;z-index:2;background:rgba(15,23,42,.78);color:#fff;padding:6px 9px;border-radius:999px;font-size:10px;direction:ltr}
@media(max-width:900px){[data-lsd-root] .sds-bubble-shell{grid-template-columns:1fr}.sds-bubble-stage-card{min-height:500px}.sds-bubble-viewer{min-height:440px}}
@media(max-width:520px){[data-lsd-root] .sds-bubble-modebar{position:sticky;top:4px;z-index:20}.sds-bubble-row{grid-template-columns:1fr}.sds-bubble-stage-card{min-height:430px}.sds-bubble-viewer{min-height:380px}.sds-bubble-toolbar button{font-size:11px;padding:7px 9px}.sds-bubble-color-grid{grid-template-columns:repeat(6,1fr)}}

.sds-bubble-font-tip{padding:10px 12px;border-radius:10px;background:#ecfeff;color:#155e75!important;border:1px solid #cffafe}
.sds-bubble-letter-colors-wrap{border:1px solid #e7eaf1;border-radius:12px;padding:11px;background:#fafbff}
.sds-bubble-letter-colors-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px;color:#334155;font-size:12px}
.sds-bubble-letter-colors-head button{border:1px solid #d8ddea;background:#fff;border-radius:8px;padding:6px 8px;color:#5b21b6;font:800 11px/1 inherit;cursor:pointer}
.sds-bubble-letter-colors{display:flex;gap:8px;overflow-x:auto;padding:3px 2px 7px;direction:rtl}
.sds-bubble-letter-color{min-width:52px!important;display:flex!important;align-items:center!important;gap:6px!important;padding:7px!important;border:1px solid #e2e8f0;border-radius:10px;background:#fff;text-align:center}
.sds-bubble-letter-color>span{font-size:19px;font-weight:900;line-height:1}
.sds-bubble-letter-color input[type="color"]{width:32px;height:30px;padding:0;border:0;background:transparent;cursor:pointer}
.sds-bubble-letter-colors-wrap>p{margin-top:5px!important;font-size:10px!important}
