.review-template-dialog{width:min(760px,calc(100vw - 32px));max-height:85dvh;border:1px solid #dce3eb;border-radius:14px;padding:20px;color:#203047;background:#fff}.review-template-dialog::backdrop{background:#17253866}.review-template-dialog header,.review-template-dialog footer{display:flex;justify-content:space-between;gap:12px;align-items:center}.review-template-dialog h2{font-size:20px;margin:0}.review-template-dialog p{font-size:13px;color:#64748b}.review-template-scroll{max-height:55dvh;overflow:auto;padding:6px}.review-template-scroll section{display:grid;grid-template-columns:1fr 160px;gap:10px;border-top:1px solid #dce3eb;padding:16px 0}.review-template-scroll label{display:grid;gap:5px;font-size:12px}.review-template-scroll input,.review-template-scroll textarea{width:100%;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:6px;padding:8px;font:inherit}.review-template-scroll textarea{min-height:76px}.review-template-scroll .wide{grid-column:1/-1}.review-template-dialog button{border:1px solid #ccd6e3;background:#f3f6fc;border-radius:6px;padding:7px 12px;cursor:pointer}.reply-tools-bar>small{font-size:10px;color:#64748b}.reply-tools>span:empty{display:none}.reply-tools>span{font-size:11px;color:#566170}.reply-tools-bar select{max-width:230px}.new-email-form small{display:block;font-size:12px;line-height:1.5;color:#64748b}
/* Explicit stacking for profile and assignment menus; compact header preserves room for history. */
.app-shell .topbar{position:relative;z-index:600!important}.app-shell .followup-toolbar{z-index:20!important}.app-shell .thread-header{position:relative;z-index:30}.app-shell .thread-actions-area{position:relative;z-index:10}.app-shell .user-menu-popover{z-index:610!important}.inbox-page .thread-actions-area .reply-tools-panel{max-height:35vh;overflow:auto}
@media(min-width:768px){.app-shell .inbox-page .followup-toolbar{padding:6px 10px!important;gap:4px 10px!important}.app-shell .inbox-page .thread-identity-row{flex:1 1 160px!important;width:auto!important}.app-shell .inbox-page .thread-controls-row{flex:0 1 auto!important}.app-shell .inbox-page .thread-header-actions{flex:0 1 auto!important}.app-shell .inbox-page .thread-header{padding:6px 8px!important}.app-shell .inbox-page .reply-tools-bar{gap:6px;flex-wrap:wrap}.app-shell .inbox-page .reply-tools-bar .button{padding:4px 8px;min-height:28px}}
.conversation-thread[data-review-hidden=true]{display:none!important}
