
.grid-stack-item-content[data-internal-spacing] .mm-pw__body,
.grid-stack-item-content[data-internal-spacing] .mm-widget-body{padding:var(--mm-widget-padding)!important;box-sizing:border-box}
.grid-stack-item-content[data-internal-spacing] .mm-pw__body>:not(link):not(script):not(style),
.grid-stack-item-content[data-internal-spacing] .mm-widget-body>:not(link):not(script):not(style),
.grid-stack-item-content[data-internal-spacing] .mm-biz-widget-content>:not(link):not(script):not(style){padding:0!important}
/* Scale text independently of cards, icons and window geometry. */
.dashboard-widget .mm-widget-body [data-mm-text-size]{font-size:calc(var(--mm-text-base) * var(--mm-widget-text-scale,1))!important}
.mm-dashboard-spacing{border:1px solid #cbd5e1;border-radius:12px;padding:0;background:white;color:#0f172a;box-shadow:0 8px 28px #0003;width:min(320px,calc(100vw - 24px));max-height:calc(100dvh - 16px);font:14px system-ui;overflow:hidden}
.mm-dashboard-spacing::backdrop{background:#0f172a22}
.mm-widget-style-drag{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px;border-bottom:1px solid #e2e8f0}
.mm-dashboard-spacing [data-style-close]{border:0;border-radius:8px;background:#f1f5f9;color:#475569;font-size:24px;min-width:36px;min-height:36px;cursor:pointer}
.mm-widget-style-fields{padding:14px;max-height:calc(100dvh - 90px);overflow:auto}
.mm-widget-style-fields label{display:block;margin-bottom:8px}
.mm-widget-style-fields label:not(:first-child){margin-top:18px}
.mm-dashboard-spacing output{float:right;color:#64748b}
.mm-dashboard-spacing input{display:block;width:100%;margin-top:10px}
.mm-widget-style-fields button{border:1px solid #ddd6fe;background:#f5f3ff;color:#5b21b6;padding:6px 9px;border-radius:8px;cursor:pointer}
.mm-dashboard-spacing [role=status]{color:#991b1b}
