/* R152: preview starter controls become one horizontal, text-width row.
   On narrow screens it scrolls sideways instead of wrapping into columns. */
.r10-editor .tg-preview-footer-actions.r150-starter-pills {
 display:flex !important;flex-flow:row nowrap !important;align-items:center !important;
 justify-content:flex-start !important;gap:7px !important;
 max-width:100% !important;width:100% !important;min-width:0 !important;
 overflow-x:auto !important;overflow-y:hidden !important;
 padding:8px 4px 11px !important;margin:0 auto !important;
 -webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;scrollbar-width:thin;
}
.r10-editor .tg-preview-footer-actions.r150-starter-pills > .tg-edit-screen-button {
 flex:0 0 auto !important;display:inline-flex !important;width:max-content !important;
 max-width:none !important;min-width:0 !important;min-height:32px !important;
 padding:7px 11px !important;white-space:nowrap !important;grid-column:auto !important;
 border:1px solid #41576f !important;border-radius:18px !important;
 background:#1c3046 !important;color:#d4e8fa !important;
 font-size:11px !important;font-weight:700 !important;line-height:1.15 !important;
 box-shadow:none !important;text-decoration:none !important;
}
.r10-editor .tg-preview-footer-actions.r150-starter-pills > .tg-edit-screen-button:hover {
 background:#2b4767 !important;color:#e4f3ff !important;
}
.r10-editor .tg-preview-footer-actions.r150-starter-pills .r150-starter-label {
 width:auto !important;display:inline !important;white-space:nowrap !important;
 overflow:visible !important;text-overflow:clip !important;
}
/* R152 white dropdown-style dialogs for variable and event lists only. */
.modal-backdrop.r152-popover-backdrop {
 position:fixed;inset:0;z-index:690;padding:0;display:block;
 background:transparent !important;backdrop-filter:none !important;
}
.r152-popover-backdrop .modal.r152-compact-popover {
 visibility:hidden;position:fixed;display:block;overflow:visible;
 width:min(355px,calc(100vw - 20px));max-width:calc(100vw - 20px);
 max-height:min(65dvh,520px);padding:7px !important;margin:0 !important;
 background:#fff !important;color:#182c3d !important;border:1px solid #d4e1eb !important;
 border-radius:13px !important;box-shadow:0 10px 35px rgba(24,43,65,.20) !important;
 box-sizing:border-box;
}
.r152-popover-backdrop .r152-triggers-popover {width:min(405px,calc(100vw - 20px));}
.r152-popover-head {display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:7px 8px 9px;border-bottom:1px solid #e8eef3;}
.r152-popover-head > div {min-width:0;display:grid;gap:3px;}
.r152-popover-head strong {font-size:13px;line-height:1.25;color:#183b55;}
.r152-popover-head small {font-size:10px;line-height:1.35;color:#71879a;}
.r152-popover-close {border:0;background:transparent;color:#718599;padding:0;cursor:pointer;font-size:20px;line-height:1;width:26px;height:26px;border-radius:7px;}
.r152-popover-close:hover {background:#eef5f9;color:#1e4968;}
.r152-popover-list {display:grid;gap:1px;max-height:min(44dvh,340px);overflow-y:auto;padding:4px 0;}
.r152-popover-record {display:flex;align-items:stretch;min-height:43px;border-radius:8px;}
.r152-popover-record:hover {background:#f0f7fc;}
.r152-popover-row {flex:1;min-width:0;display:flex;align-items:center;gap:8px;border:0;background:transparent;color:inherit;padding:6px 7px;text-align:left;cursor:pointer;border-radius:8px;}
.r152-popover-row-content {flex:1;display:grid;gap:2px;min-width:0;}
.r152-popover-row-content strong {font-size:12px;font-weight:750;color:#18394f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.r152-popover-row-content small {font-size:10px;color:#698197;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.r152-popover-icon {width:24px;height:24px;flex:0 0 24px;display:grid;place-items:center;border-radius:7px;background:#e5f2fc;color:#2481cc;font-size:12px;font-weight:800;}
.r152-popover-chevron {font-size:18px;color:#8ba4b7;}
.r152-popover-delete {flex:0 0 26px;width:26px;height:30px;align-self:center;border:0;background:transparent;color:#8394a5;cursor:pointer;font-size:17px;border-radius:6px;}
.r152-popover-delete:hover {color:#c33;background:#fff0f0;}
.r152-popover-empty {font-size:11px !important;line-height:1.4 !important;color:#6e8397 !important;padding:9px 7px !important;margin:0 !important;text-align:left;}
.r152-popover-create {width:100%;min-height:33px;display:flex;justify-content:center;align-items:center;border:1px solid #c9e3f6;border-radius:8px;background:#edf7ff;color:#216caa;cursor:pointer;font-size:12px;font-weight:750;padding:7px 10px;}
.r152-popover-create:hover {background:#dcefff;border-color:#9acbe9;}
.r152-popover-create:disabled {opacity:.5;cursor:not-allowed;}
.r152-popover-backdrop button:focus-visible {outline:2px solid #2481cc;outline-offset:1px;}
@media (max-width:400px){.r152-popover-head small{font-size:9px}.r152-popover-row-content strong{font-size:11px}}
@media (prefers-reduced-motion:reduce){.r152-popover-backdrop button{transition:none}}

/* R153: reuse R152 white dropdown design for the Reusable actions library. */
.r152-popover-backdrop .r153-actions-popover {width:min(410px,calc(100vw - 20px));}

.r152-popover-backdrop .r153-action-copy {flex:0 0 26px;width:26px;height:30px;align-self:center;display:grid;place-items:center;background:transparent;border:0;border-radius:7px;color:#5586a9;font-size:16px;cursor:pointer}
.r152-popover-backdrop .r153-action-copy:hover{background:#e7f3fc;color:#216caa}
