/* Portal-only branding. The public choice assistant retains its existing style. */
.sml-admin-body .um-page{display:grid;gap:20px;max-width:1200px;min-width:0}
.sml-admin-body .um-page *{box-sizing:border-box}
.sml-admin-body .um-page summary{cursor:pointer;list-style:none;min-height:44px}
.sml-admin-body .um-page summary::-webkit-details-marker{display:none}
.sml-admin-body .um-page summary:focus-visible{outline:3px solid #0070c0;outline-offset:4px;border-radius:8px}
.sml-admin-body .um-create>summary{display:flex;align-items:center;justify-content:space-between;gap:20px}
.sml-admin-body .um-create>summary>span:first-child{display:grid;gap:5px}
.sml-admin-body .um-create small,.sml-admin-body .um-contact small,.sml-admin-body .um-action summary small,.sml-admin-body .um-reference small{font-size:13px;color:#56657a;font-weight:400;line-height:1.5}
.sml-admin-body .um-summary-button{display:inline-flex;align-items:center;justify-content:center;gap:12px;flex-shrink:0;background:#edf3fc;color:#06206f;border:1px solid #cbd7ea;border-radius:9px;padding:11px 15px;font-size:14px;font-weight:700;white-space:nowrap}
.sml-admin-body .um-create .um-summary-button{background:#0070c0;border-color:#0070c0;color:#fff}
.sml-admin-body .um-list{display:grid;gap:12px}
.sml-admin-body .um-card{border:1px solid #dae2ed;border-radius:12px;overflow:hidden;min-width:0}
.sml-admin-body .um-card>summary{display:grid;grid-template-columns:minmax(190px,1fr) minmax(180px,1.15fr) auto;gap:22px;align-items:center;padding:20px}
.sml-admin-body .um-card>summary:hover{background:#f7f9fd}
.sml-admin-body .um-card[open]>summary{background:#f2f6fc;border-bottom:1px solid #dae2ed}
.sml-admin-body .um-card[open] .um-summary-button>span{transform:rotate(180deg)}
.sml-admin-body .um-identity{display:flex;align-items:center;gap:13px;min-width:0}
.sml-admin-body .um-avatar{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border-radius:12px;background:#e8effc;color:#06206f;font-size:18px;font-weight:800}
.sml-admin-body .um-name{display:grid;gap:8px;min-width:0}
.sml-admin-body .um-name>strong{font-size:16px;overflow-wrap:anywhere}
.sml-admin-body .um-badges{display:flex;gap:6px;flex-wrap:wrap}
.sml-admin-body .um-badge{padding:4px 8px;border-radius:6px;background:#e8effc;color:#173f83;font-size:11px;font-weight:700;line-height:1.3}
.sml-admin-body .um-badge.um-active{background:#e9f5ee;color:#23633d}
.sml-admin-body .um-badge.um-inactive{background:#f2ecec;color:#8e3535}
.sml-admin-body .um-contact{display:grid;gap:6px;min-width:0;font-size:14px;overflow-wrap:anywhere}
.sml-admin-body .um-actions{padding:20px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start;background:#fafbfd}
.sml-admin-body .um-action{border:1px solid #d5dfed;border-radius:10px;background:#fff;min-width:0}
.sml-admin-body .um-action>summary{padding:16px 38px 16px 16px;display:grid;gap:5px;position:relative}
.sml-admin-body .um-action>summary:after{content:'+';position:absolute;right:16px;top:18px;color:#0070c0;font-size:20px}
.sml-admin-body .um-action[open]>summary:after{content:'×'}
.sml-admin-body .um-action[open]{grid-column:1/-1}
.sml-admin-body .um-form{display:grid;gap:18px;padding:4px 16px 20px;max-width:640px}
.sml-admin-body .um-form label{display:grid;gap:8px;min-width:0;font-size:14px;font-weight:650}
.sml-admin-body .um-form :is(input,select){display:block;width:100%;min-width:0;max-width:none;padding:12px;border:1px solid #becbdd;border-radius:8px;background:#fff;color:#17233b;font:inherit;min-height:44px}
.sml-admin-body .um-form p,.sml-admin-body .um-role-list p{font-size:14px;line-height:1.6;color:#56657a;margin:0}
.sml-admin-body .um-confirm{display:grid;gap:14px;border:1px solid #dae2ed;border-radius:8px;background:#f7f9fc;margin:0;padding:16px;min-width:0}
.sml-admin-body .um-confirm legend{font-size:12px;color:#56657a;padding:0 5px}
.sml-admin-body .um-form button{justify-self:start;min-height:44px;max-width:100%;padding:12px 18px;border:0;border-radius:8px;font:inherit;font-size:14px;font-weight:700;cursor:pointer;white-space:normal}
.sml-admin-body .um-form .um-primary{background:#0070c0;color:#fff}
.sml-admin-body .um-form .um-primary:hover{background:#005a9b}
.sml-admin-body .um-form .um-danger{background:#a63232;color:#fff}
.sml-admin-body .um-form .um-danger:hover{background:#852626}
.sml-admin-body .um-create-form{padding:24px 0 0;max-width:760px}
.sml-admin-body .um-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.sml-admin-body .um-self-note{grid-column:1/-1;margin:0;line-height:1.6;font-size:14px;color:#56657a}
.sml-admin-body .um-self-note a{color:#0070c0;font-weight:700}
.sml-admin-body .um-reference>summary{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}
.sml-admin-body .um-reference>summary:before{content:'+';color:#0070c0;font-size:20px}
.sml-admin-body .um-reference[open]>summary:before{content:'×'}
.sml-admin-body .um-reference .sml-table-wrap,.sml-admin-body .um-role-list{margin-top:20px}
.sml-admin-body .um-role-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.sml-admin-body .um-role-list h3{font-size:14px;margin:0 0 6px}
@media(max-width:1150px){.sml-admin-body .um-card>summary{grid-template-columns:minmax(0,1fr) auto;gap:14px}.sml-admin-body .um-contact{grid-column:1;grid-row:2;padding-left:57px}.sml-admin-body .um-card>summary>.um-summary-button{grid-column:2;grid-row:1/3}}
@media(max-width:600px){.sml-admin-body .um-page>.sml-panel{padding:16px}.sml-admin-body .um-create>summary{align-items:flex-start;flex-direction:column;gap:14px}.sml-admin-body .um-card>summary{padding:14px;gap:12px}.sml-admin-body .um-contact{padding-left:0;grid-column:1/-1;grid-row:2}.sml-admin-body .um-card>summary>.um-summary-button{grid-row:1;font-size:12px;padding:10px}.sml-admin-body .um-avatar{display:none}.sml-admin-body .um-actions{padding:12px;grid-template-columns:minmax(0,1fr)}.sml-admin-body .um-fields,.sml-admin-body .um-role-list{grid-template-columns:minmax(0,1fr)}.sml-admin-body .um-form button{justify-self:stretch}.sml-admin-body .um-reference small{display:block}}
.portal-body,.sml-admin-body{--portal-navy:#06206f;--portal-blue:#0070c0;--portal-gold:#e3a92b;background:#f4f6fa;color:#17233b}
.portal-body .portal-side{background:var(--portal-navy)}
.portal-body .portal-brand>span{color:var(--portal-navy);background:var(--portal-gold)}
.portal-body .portal-brand small,.portal-body .portal-user small,.portal-body .portal-user a,.portal-body .portal-side nav a{color:#d7e5ff}
.portal-body .portal-side nav a.active,.portal-body .portal-side nav a:hover{background:#183c8b;color:#fff}
.portal-body .portal-user{border-color:#365292}
.portal-body .btn{color:var(--portal-navy);border-color:#cbd5e4;min-height:44px}
.portal-body .btn.primary,.sml-admin-body .sml-primary{background:var(--portal-blue);border-color:var(--portal-blue);color:#fff}
.portal-body .btn.primary:hover,.sml-admin-body .sml-primary:hover{background:#005a9b;border-color:#005a9b}
.portal-body .stats strong,.portal-body .section-head>span{color:var(--portal-navy)}
.portal-body .section-head>span,.portal-body .type-pill{background:#e7effb;color:var(--portal-navy)}
.portal-body .panel,.portal-body .stats article,.portal-body .dossier-bar{border-color:#dae2ed;box-shadow:0 4px 18px #06206f06}
.portal-body .panel p,.portal-body label small,.portal-body td small,.portal-body .portal-top small{color:#56657a}
.portal-body :is(input,select,textarea){border-color:#bfcbdc;accent-color:var(--portal-blue)}
.portal-body :is(a,button,input,select,textarea):focus-visible,.sml-admin-body :is(a,button,input,select,textarea):focus-visible{outline:3px solid #0070c0;outline-offset:3px}
.portal-body .wizard-nav{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.portal-body .wizard-nav button{min-height:52px;padding:12px;border:1px solid #cbd5e4;border-radius:10px;background:#fff;color:var(--portal-navy);font:inherit;font-weight:750;cursor:pointer;text-align:left}
.portal-body .wizard-nav button[aria-current="step"]{border-color:var(--portal-navy);background:var(--portal-navy);color:#fff;box-shadow:inset 0 -4px var(--portal-gold)}
.portal-body .wizard-nav button:disabled{color:#657185;background:#ecf0f6;cursor:default}
.portal-body .wizard-progress{color:#56657a;margin:16px 0}
.portal-body [hidden]{display:none!important}
.portal-body .wizard-summary dd{overflow-wrap:anywhere;white-space:pre-wrap}
.portal-body .dossier-list-actions{display:flex;gap:8px;white-space:nowrap}
.portal-body .form-actions{flex-wrap:wrap}
.portal-body .form-actions [aria-disabled="true"]{opacity:.7;cursor:wait}
.portal-body .document-intro a{color:var(--portal-blue)}
.portal-body [data-dossier-wizard] .form-actions{position:sticky;bottom:0;z-index:2;background:#f4f6fa;padding:14px 0;border-top:1px solid #dae2ed;margin-bottom:0}
.sml-admin-body .sml-sidebar{background:var(--portal-navy)}
.sml-admin-body :is(.sml-login button,.sml-form-panel button,.sml-copy){background:var(--portal-blue)}
.sml-admin-body .sml-logo,.sml-admin-body .sml-sidebar .sml-logo{background:var(--portal-gold);color:var(--portal-navy)}
.sml-admin-body .sml-sidebar nav a.active,.sml-admin-body .sml-sidebar nav a:hover{background:#183c8b}
.sml-admin-body :is(.sml-preview,.sml-panel-head a,.sml-panel td a,.sml-copy-row a,.sml-stats article>strong){color:var(--portal-navy)}
.sml-admin-body .sml-sidebar :is(nav a,.sml-sidebar-bottom small,.sml-brand small){color:#d7e5ff}
@media(max-width:900px){.portal-body .portal-side{padding:16px}.portal-body .portal-side nav{margin-top:16px}.portal-body .portal-user{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:12px 0 0;margin-top:12px}.portal-body .portal-user small:first-child{display:none}.portal-body .portal-user a{margin:0 0 0 auto}}
@media(min-width:651px) and (max-width:900px){.portal-body .form-grid{grid-template-columns:1fr 1fr}}
@media(max-width:650px){.portal-body .wizard-nav{grid-template-columns:repeat(2,1fr)}.portal-body .wizard-nav button{font-size:14px}.portal-body .form-actions .btn{flex:1 1 auto}.portal-body .dossier-list-actions{flex-direction:column}}
.sml-admin-body .sml-lightspeed-columns{margin-top:20px;grid-template-columns:repeat(2,minmax(0,1fr))}
.sml-admin-body .sml-lightspeed-columns+.sml-panel{margin-top:20px}
@media(max-width:1000px){.sml-admin-body .sml-lightspeed-columns{grid-template-columns:minmax(0,1fr)}}
