/* R440: note and publish toolbar are controls, not a separate white card. */
.r10-editor .tg-preview-note-row{
  border:0!important;background:transparent!important;box-shadow:none!important;
  border-radius:0!important;padding:0!important;margin:4px auto 11px!important;
}
.r10-editor .tg-preview-note-row .tg-editor-mode-note{background:transparent!important}
/* The two template entrypoints are directly below More tools, not in the flow rail. */
.r10-editor .r440-preview-extra-tools{
  display:flex;justify-content:center;align-items:center;flex-wrap:wrap;
  gap:8px;width:min(100%,680px);margin:9px auto 5px;padding:0 6px;
  box-sizing:border-box;
}
.r10-editor .r440-preview-extra-tools button{
  appearance:none;cursor:pointer;min-height:37px;border:1px solid #aac9de;
  border-radius:11px;background:#eaf4fb;color:#225776;
  padding:8px 12px;font-size:12px;font-weight:700;line-height:1.25;font-family:inherit;flex:0 1 auto;
}
.r10-editor .r440-preview-extra-tools button:hover{background:#dbeefa}
.r10-editor .r440-preview-extra-tools button:focus-visible,
.simple-tools .r291-roles-toggle:focus-visible{outline:2px solid #61b4e2;outline-offset:2px}
/* Roles remain in the left Builder Tools menu but open as a floating dialog. */
.simple-tools .r291-roles-drawer{min-width:0;position:relative;border-top:1px solid #506579;padding:7px 0;margin:6px 0 0}
.simple-tools .r291-roles-toggle{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  cursor:pointer;border:0;border-radius:8px;padding:10px 8px;
  width:100%;background:transparent;color:inherit;text-align:left;
  font-size:12px;font-weight:600;line-height:1.4;font-family:inherit;
}
.simple-tools .r291-roles-toggle:hover,.simple-tools .r291-roles-toggle[aria-expanded="true"]{background:#31465e}
.simple-tools .r291-roles-popover{
  position:fixed;z-index:470;box-sizing:border-box;
  width:min(610px,calc(100vw - 24px));max-height:min(76dvh,650px);
  min-height:100px;overflow:auto;overscroll-behavior:contain;
  padding:13px;background:#f4f8fc;color:#203c50;
  border:1px solid #8baec5;border-radius:14px;
  box-shadow:0 20px 60px rgba(0,21,40,.35);
}
.simple-tools .r291-roles-popover .u291-root .u291-panel{padding:11px}
.simple-tools .r291-roles-popover .u291-root .form>label{flex:1 1 150px}
.simple-tools .r291-roles-popover:focus{outline:2px solid #61b4e2;outline-offset:2px}
@media(max-width:600px){
 .r10-editor .r440-preview-extra-tools{gap:6px}
 .r10-editor .r440-preview-extra-tools button{flex:1 1 185px}
 .simple-tools .r291-roles-popover{max-height:76dvh}
}
