/* v0.4.31 — safe appearance editor. No positioning changes to grid modules.
 * The edited card and title use only bounded inline properties validated on
 * the server. This sheet styles controls and approved primary actions only.
 */
.re376-dialog.re402-options{max-width:min(590px,94vw)!important;max-height:88dvh;overflow:auto;box-sizing:border-box;}
.re376-dialog .re431-style-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 15px;margin:14px 0 8px;padding:14px;border:1px solid #517d96;border-radius:11px;min-width:0;background:#1b303d;}
.re376-dialog .re431-style-settings legend{padding:0 8px;font-size:15px;font-weight:750;color:#f5fbff!important}
.re376-dialog :is(.re431-color-row,.re431-option-row,.re431-check-row){min-width:0;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px;margin:0!important;font-size:12px;line-height:1.3}
.re376-dialog .re431-color-row>span{flex:1;min-width:80px}
.re376-dialog .re431-style-settings input[type=color]{height:33px;width:47px;padding:2px!important;border-radius:7px!important;cursor:pointer;min-width:47px;}
.re376-dialog .re431-style-settings input[type=checkbox]{height:17px;width:17px;accent-color:#078fc7;flex:0 0 auto}
.re376-dialog .re431-style-settings input[type=number]{max-width:80px;min-width:58px}
.re376-dialog .re431-style-settings select{max-width:180px;min-height:33px}
.re376-dialog .re431-style-settings input:disabled{opacity:.45;cursor:not-allowed}
.re376-dialog .re431-help{grid-column:1/-1;font-size:12px;line-height:1.45;margin:3px 0 0;color:#c7dce7!important}
.re376-dialog .re431-reset-style{grid-column:1/-1;justify-self:start;background:transparent!important;border:1px solid #65bddb!important;color:#f4fbff!important;font-size:12px;font-weight:650}
/* All ordinary primary actions use the same blue as Add Module at rest. Never
 * restyle editor handles, selects, radio choices, or danger actions. */
#appShell #overviewView :is(.re423-card-links button,.re407-shortcut-open,.re56-tiny-link,.re56-linkbutton,.re429-primary),
#appShell :is(.re376-dialog-actions button[type=submit],.re431-primary-action){background:#078fc7!important;border-color:#078fc7!important;color:#fff!important;font-weight:750!important;}
#appShell #overviewView :is(.re423-card-links button,.re407-shortcut-open,.re56-tiny-link,.re56-linkbutton,.re429-primary):hover,
#appShell :is(.re376-dialog-actions button[type=submit],.re431-primary-action):hover{background:#0578aa!important;border-color:#0578aa!important;}
/* Custom colors apply only to recognized action buttons, not the module's
 * move / options / delete / resize handles or role/status controls. */
#appShell .re376-module[data-re431-buttons='1'] :is(.re423-card-links button,.re407-shortcut-open,.re56-tiny-link,.re56-linkbutton,.re429-primary,button[type=submit]),
#appShell #overviewView .re376-module[data-re431-buttons='1'] :is(.re423-card-links button,.re407-shortcut-open,.re56-tiny-link,.re56-linkbutton,.re429-primary,button[type=submit]){
 background:var(--re431-button-color)!important;border-color:var(--re431-button-color)!important;color:var(--re431-button-foreground,#fff)!important;font-weight:750!important;
}
#appShell .re376-module[data-re431-buttons='1'] :is(.re423-card-links button,.re407-shortcut-open,.re56-tiny-link,.re56-linkbutton,.re429-primary,button[type=submit]):focus-visible{outline:2px solid #56d4ff!important;outline-offset:2px!important}
@media(max-width:650px){.re376-dialog .re431-style-settings{grid-template-columns:minmax(0,1fr)}.re376-dialog .re431-help,.re376-dialog .re431-reset-style{grid-column:1}.re376-dialog{padding:14px!important}}
@media(prefers-reduced-motion:reduce){.re376-dialog .re431-style-settings *{transition:none!important}}

/* v0.4.32 preset selector and bounded title polish. Keep all geometry owned by
 * the existing six-column engine; never truncate or mask title text. */
.re376-dialog .re432-preset-row{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;font-size:13px;font-weight:700;min-width:0;}
.re376-dialog .re432-preset-row select{min-width:min(230px,100%);max-width:100%;min-height:37px;flex:1 1 190px;}
.re376-dialog .re432-preset-note{grid-column:1/-1;color:#c7dce7!important;font-size:12px;margin:0 0 4px;line-height:1.4;}
#appShell .re376-module[data-re431-styled='1'] .re376-heading{
 max-width:100%!important;min-width:0!important;box-sizing:border-box!important;
 white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;
 line-height:1.25!important;hyphens:auto;
}
@media(max-width:650px){
 .re376-dialog .re432-preset-row,.re376-dialog .re432-preset-note{grid-column:1;}
 #appShell .re376-module[data-re431-styled='1'] .re376-heading{max-width:100%!important;}
}
