.portal-shell{background:#f3f6f9}.portal-sidebar{position:fixed;inset:0 auto 0 0;width:256px;z-index:50;background:#005775;color:white;display:flex;flex-direction:column;padding:24px 12px;overflow:auto;font:15px/1.45 Arial,sans-serif}.portal-brand{background:white;border-radius:9px;padding:12px;margin:0 6px 24px;display:block}.portal-brand img{width:100%;display:block}.portal-sidebar nav{flex:1}.portal-group{font-size:11px;letter-spacing:1px;color:#9ed0df;margin:25px 12px 8px}.portal-link{display:flex;align-items:center;gap:13px;padding:12px;border-radius:7px;color:white!important;text-decoration:none!important;margin:3px 0}.portal-link:hover{background:#ffffff14}.portal-link.active{background:#00afcc}.portal-link svg{width:22px;height:22px;flex:none;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.portal-account{border-top:1px solid #ffffff40;margin:24px 8px 0;padding-top:20px}.portal-account small{display:block;color:#badde5}.portal-account a{color:white}.portal-shell>main{margin-left:256px;width:calc(100% - 256px);max-width:none;padding:28px}.portal-shell>.app-header{margin-left:256px;width:calc(100% - 256px);padding:14px 28px}.portal-shell>.app-header>.brand,.portal-shell .main-nav>a{display:none}.portal-shell>footer{margin-left:256px}.portal-shell .main-nav{width:100%}.portal-shell .button-link,.portal-shell button:not(.secondary){border-radius:7px}.portal-shell button:active,.portal-link:active{transform:translateY(2px);filter:brightness(.94)}.chat-iframe-mode .portal-sidebar{display:none}.chat-iframe-mode.portal-shell>main{margin:0;width:100%}.portal-course-frame{width:100%;height:calc(100vh - 180px);border:0;background:white}.portal-permissions input[type=checkbox]{width:18px;height:18px;accent-color:#00afcc}@media(max-width:760px){.portal-sidebar{position:relative;width:100%;max-height:260px}.portal-brand{max-width:210px}.portal-account{display:none}.portal-shell>main,.portal-shell>.app-header,.portal-shell>footer{margin-left:0;width:100%}}
/* Reset mail application's generic navigation layout inside the portal rail. */
.portal-sidebar>nav{display:block;align-items:initial;justify-content:initial;gap:0;width:100%;padding:0}.portal-sidebar .portal-link{width:100%;box-sizing:border-box;font-weight:400}.portal-sidebar .portal-group{display:block}.portal-sidebar{box-sizing:border-box}.portal-shell>.app-header .main-nav>a{display:none!important}

.portal-upcoming{display:flex;gap:20px;align-items:center;padding:18px 0;border-bottom:1px solid #edf2f5}.portal-upcoming time{min-width:120px;color:#536b7a}.portal-upcoming div{flex:1}.portal-upcoming p{margin:5px 0}.portal-warning{border-left:4px solid #efb844;background:#fffbf0}@media(max-width:700px){.portal-upcoming{flex-wrap:wrap}}

.portal-preview-banner{background:#fff4d6;color:#6f5315;border-radius:10px;padding:10px 16px;margin-bottom:16px;font-size:13px}
/* Keep header menus above the sidebar and notifications inside the content area. */
.portal-shell>.app-header{z-index:60}
.portal-shell .notify-panel{left:0;right:auto;width:min(360px,calc(100vw - 320px));max-height:min(470px,calc(100dvh - 100px));overflow-wrap:anywhere}
@media(max-width:760px){.portal-shell .notify-panel{position:fixed;left:12px;right:12px;top:76px;width:auto;max-height:calc(100dvh - 90px)}}
/* Override the legacy two-column mail header: its logo now lives in the sidebar. */
.portal-shell>.app-header{display:flex!important;grid-template-columns:none!important;height:auto;min-height:68px;box-sizing:border-box}
.portal-shell>.app-header>.brand,.portal-shell>.app-header .main-nav>a{display:none!important}
.portal-shell>.app-header .main-nav{flex:1 1 auto!important;width:100%;min-width:0;justify-content:flex-start!important;flex-wrap:wrap!important;overflow:visible!important;gap:10px!important}
.portal-shell>.app-header .global-search{display:grid!important;flex:0 1 280px!important;width:280px!important;min-width:140px!important;max-width:100%!important}
.portal-shell>.app-header .notify-wrap,.portal-shell>.app-header .nav-menu{flex:0 0 auto!important}
@media(max-width:760px){.portal-shell>.app-header .global-search{flex:1 1 100%!important;width:100%!important}.portal-shell .notify-panel{top:126px!important;max-height:calc(100dvh - 140px)}}
.portal-permissions{max-width:1100px;margin:18px auto;padding:28px!important}
.portal-permissions h1{margin-bottom:24px}.portal-permissions h2{margin-top:24px;margin-bottom:14px}
.portal-permissions select[name=role]{max-width:440px}
.portal-permissions .permission-active{display:flex;align-items:center;gap:10px;margin:22px 0}
.portal-permissions input[type=checkbox]{display:inline-block;width:18px!important;height:18px;min-width:18px;margin:0!important;padding:0;accent-color:#008ba5;vertical-align:middle}
.portal-permissions table{table-layout:auto}.portal-permissions th,.portal-permissions td{vertical-align:middle;padding:16px 14px}
.portal-permissions th:last-child,.portal-permissions td:last-child{text-align:center;width:170px}
.portal-permissions .permission-actions{display:flex;align-items:center;gap:24px;flex-wrap:wrap;border-top:1px solid #e3eaf0;padding-top:24px;margin-top:24px}
.portal-permissions .permission-actions button{min-height:44px;padding:11px 22px}.portal-permissions .permission-back{display:inline-flex;align-items:center;min-height:44px;padding:8px 0}
@media(max-width:600px){.portal-permissions{padding:18px!important}.portal-permissions th:last-child,.portal-permissions td:last-child{width:110px}.portal-permissions .permission-actions{gap:12px}}

/* Editor spacing follows the existing card and button tokens. */
form[data-medicare-save] {min-width:0;}
form[data-medicare-save] .two {align-items:start;gap:16px;}
form[data-medicare-save] label {min-width:0;overflow-wrap:anywhere;}
form[data-medicare-save] input:not([type=checkbox]):not([type=radio]),
form[data-medicare-save] select,form[data-medicare-save] textarea {box-sizing:border-box;max-width:100%;}
form[data-medicare-save] .form-actions {display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
.portal-permissions table {width:100%;}
.portal-shell .page-head {gap:16px;flex-wrap:wrap;align-items:center;}
.portal-shell .table-wrap {max-width:100%;overflow-x:auto;}
@media(max-width:600px) {
 form[data-medicare-save] .two {grid-template-columns:minmax(0,1fr);}
 .portal-shell .card {min-width:0;box-sizing:border-box;}
 .portal-permissions .permission-actions {align-items:stretch;}
}
