:root{font-family:system-ui,sans-serif;color:#17202a;background:#f4f6f8}body{margin:0}main{max-width:880px;margin:0 auto;padding:24px 16px}.card{background:white;border-radius:14px;padding:24px;margin:16px 0;box-shadow:0 2px 12px #10203012}h1{margin-top:0}input,button,.button,select{font:inherit;border-radius:8px;padding:11px;border:1px solid #ccd3db}input{box-sizing:border-box;margin:6px 0}input[type=email],input[data-filter],select{width:100%}button,.button{background:#1769e0;color:white;border:0;cursor:pointer;text-decoration:none;display:inline-block}.danger{background:#b42318}.config{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:14px 0;border-top:1px solid #eee}.copy{margin-left:8px}.link{background:none;color:#1769e0;padding:0}header{display:flex;gap:12px;align-items:center;flex-wrap:wrap}header h1{flex:1;margin:0}nav{display:flex;gap:18px;margin:24px 0}a{color:#145fc7}.admin-row,.suggestion,.selected-item{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:13px 0;border-top:1px solid #eee}.import-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.import-source{margin:0}.muted,small{color:#65717d}.anchor{border-left:5px solid #1769e0}.wizard-section h3{font-size:1rem;margin-bottom:4px}.choice{display:flex;align-items:center;gap:8px;padding:12px 0;border-top:1px solid #eee;margin:0}.choice input{margin:0;width:20px;height:20px}.choice span{flex:1}.choice small{font-size:.75rem}.choice input[type=radio]{width:18px;height:18px}details{margin-top:14px;border-top:1px solid #eee;padding-top:12px}.wide{width:100%;margin:8px 0}.preview{border:2px solid #1769e0}.admin-config form{display:flex;gap:5px;flex-wrap:wrap}.admin-config input[type=file]{max-width:220px}label{display:block;margin:10px 0}@media(max-width:700px){main{padding:16px 10px}.card{padding:16px}.import-grid{display:block}.import-source{margin:16px 0}.admin-row,.suggestion,.selected-item{align-items:flex-start;flex-direction:column}.admin-config{display:block}.admin-config form,.admin-config>a{margin-top:9px}.button,button{min-height:44px}}

/* Import UI is intentionally scoped so the regular portal/admin UI remains unchanged. */
.import-shell{max-width:980px;margin:auto}.import-header{gap:16px;margin-bottom:8px}.import-header h1{font-size:clamp(1.45rem,4vw,2rem)}.import-nav{display:flex;gap:14px;margin:0}.import-intro{margin:8px 0 16px}.import-browser,.import-section,.import-pending{background:#fff;border-radius:12px;box-shadow:0 2px 12px #1020300d}.import-tabs{display:flex;gap:2px;border-bottom:1px solid #dfe4e9}.import-tab{flex:1;background:transparent;color:#53606d;border-radius:0;padding:12px 8px;border-bottom:3px solid transparent}.import-tab.is-active{color:#1769e0;border-bottom-color:#1769e0;font-weight:650}.import-tab span{font-size:.8rem;color:#65717d}.import-search-wrap{position:sticky;top:0;z-index:2;background:#fff;padding:10px 12px;border-bottom:1px solid #edf0f2}.import-search-wrap input{width:100%;margin:0}.import-list{padding:0 12px}.import-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:62px;padding:8px 4px;border-top:1px solid #edf0f2;text-decoration:none;color:inherit}.import-row-main{min-width:0;display:flex;flex-direction:column;gap:3px}.import-row-main strong,.import-row-meta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.import-row-meta{font-size:.82rem}.import-row-arrow{font-size:1.7rem;color:#71808c}.import-pending{margin-top:16px;padding:12px}.import-pending h2{font-size:1rem;margin:4px}.compact-button{padding:7px 10px;min-height:0}.empty-state{color:#65717d;padding:12px 4px}.wizard-step{margin:2px 0;color:#65717d}.wizard-selected{padding:10px 12px;background:#eaf2ff;border-radius:8px;margin:12px 0 16px}.wizard-grid{display:grid;gap:14px}.import-section{padding:14px;margin:0}.import-section h2{font-size:1.05rem;margin:0 0 3px}.section-note{font-size:.84rem;margin:0 0 6px}.import-choice{display:flex;align-items:center;gap:9px;min-height:52px;margin:0;border-top:1px solid #edf0f2;cursor:pointer}.import-choice input{width:20px;height:20px;flex:0 0 auto;margin:0}.import-choice span{min-width:0;flex:1;display:flex;flex-direction:column;gap:2px}.import-choice span small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.import-choice em{font-size:.75rem;color:#1769e0;font-style:normal}.selected-choice{background:#f5f9ff}.import-section details{margin-top:8px;padding-top:8px}.import-section summary{color:#1769e0;cursor:pointer;padding:8px 0;min-height:28px}.display-name-section{margin-top:14px}.name-suggestions{display:flex;gap:6px;flex-wrap:wrap;margin:7px 0}.name-chip{background:#eef4ff;color:#145fc7;padding:7px 11px;border:1px solid #c9dcff}.display-name-section input{width:100%;margin:0}.wizard-actions{display:flex;justify-content:flex-end;padding:12px 0}.preview{border:2px solid #1769e0;margin-top:14px}.preview-name{font-size:1.2rem;font-weight:650;margin:4px 0 12px}.preview-list{display:grid;grid-template-columns:auto 1fr;gap:5px 12px;margin:0}.preview-list dt{color:#65717d}.preview-list dd{margin:0;overflow:hidden;text-overflow:ellipsis}.import-bottom-actions{display:flex;justify-content:space-between;gap:10px;margin-top:16px}.secondary-button{background:#eef2f6;color:#263746}.attach-section{margin-top:14px}.attach-section>[data-attach-panel]{margin-top:12px}.attach-section .import-row form{margin:0}.attach-section .import-row button{white-space:nowrap}
@media(min-width:720px){.wizard-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.wizard-grid .import-section:first-child{grid-row:span 2}.import-search-wrap{top:0}}
@media(max-width:700px){main{padding:12px 10px}.import-header{align-items:flex-start;gap:5px}.import-header h1{font-size:1.45rem;line-height:1.15}.import-nav{font-size:.9rem;gap:12px;flex-basis:100%;order:2}.import-intro{font-size:.85rem;margin:5px 0 10px}.import-tabs{margin-inline:-1px}.import-tab{font-size:.86rem;padding:10px 3px}.import-section{padding:12px}.wizard-selected{margin:8px 0 12px}.wizard-grid{gap:10px}.wizard-actions{padding:10px 0}.wizard-actions button{width:100%}.wizard-shell .import-header{margin-bottom:0}.import-bottom-actions{position:sticky;bottom:0;background:#f4f6f8;padding:10px 0;z-index:3}.import-bottom-actions>*{flex:1;text-align:center}.import-pending{padding:8px}.import-pending .import-row{min-height:54px}}
@media(min-width:701px){.wizard-shell{max-width:900px}.wizard-pane{max-width:900px}.wizard-actions{position:sticky;bottom:0;background:#f4f6f8;z-index:3}}
.inline-error{padding:12px;margin:12px 0;background:#fff0ef;color:#9f1c17;border:1px solid #f2b8b3;border-radius:8px}
.catalog-header{margin-bottom:18px}.catalog-section{padding:18px}.catalog-section h2{font-size:1.25rem;margin:0 0 10px}.catalog-item{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:13px 0;border-top:1px solid #edf0f2}.catalog-item-main{min-width:0;display:flex;flex-direction:column;gap:4px}.catalog-summary{color:#53606d;font-size:.92rem}.catalog-item .status-badge{align-self:flex-start;width:max-content}.catalog-edit{flex:0 0 auto;margin:0;padding:0;border:0}.catalog-edit summary,.catalog-create summary{cursor:pointer;color:#1769e0;padding:9px 2px;min-height:26px}.catalog-create{margin-top:12px;border-top:1px solid #edf0f2;padding-top:10px}.catalog-form{margin-top:10px;padding:13px;background:#f7f9fb;border-radius:10px}.catalog-form label{margin:8px 0}.catalog-form input:not([type=checkbox]){display:block;width:100%;min-height:44px}.catalog-form fieldset{border:0;padding:0;margin:14px 0 8px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.catalog-form legend{font-size:.9rem;color:#53606d;margin-bottom:4px}.catalog-form .entitlement-input{max-width:100px}.catalog-active{display:flex;align-items:center;gap:8px}.catalog-active input{width:20px;height:20px;margin:0}.catalog-actions{display:flex;gap:8px;margin-top:12px}.secondary-button{background:#e7edf3;color:#263746}.is-inactive{opacity:.78}@media(max-width:700px){.catalog-header h1{font-size:1.45rem}.catalog-section{padding:14px}.catalog-item{display:block}.catalog-edit{margin-top:5px}.catalog-form fieldset{grid-template-columns:1fr;gap:4px}.catalog-form .entitlement-input{width:90px!important}.catalog-actions button{min-height:44px}.catalog-summary{line-height:1.4}}

.admin-users-card{max-width:900px}.admin-list-heading{display:flex;align-items:center;gap:14px}.admin-list-heading h2{flex:1}.admin-list-heading input{width:min(420px,100%);margin:0}.admin-user-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:64px;padding:9px 4px;border-top:1px solid #edf0f2;color:inherit;text-decoration:none}.admin-user-main{display:flex;flex-direction:column;min-width:0}.admin-user-main strong,.admin-user-main small,.admin-user-meta span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fallback-note{font-size:.7rem;color:#8a6d1d}.admin-user-meta{display:flex;flex-direction:column;align-items:flex-end;gap:3px;font-size:.82rem;color:#65717d;text-align:right;min-width:0}.status-badge{display:inline-block;border-radius:999px;padding:3px 8px;font-size:.75rem;font-weight:650;white-space:nowrap}.is-enabled{background:#e7f6ec;color:#18733a}.is-disabled{background:#fcebea;color:#a12a24}.pending-link{display:block;margin:0 0 8px}.user-title{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.user-title h2{margin:0}.user-email{margin:4px 0 18px;color:#65717d}.compact-migration{padding:0}.compact-migration summary{cursor:pointer;padding:22px 24px;font-size:1.12rem;font-weight:650;list-style-position:inside}.compact-migration form,.compact-migration>h3,.compact-migration>p,.compact-migration>.selected-item{margin-left:24px;margin-right:24px}.compact-migration form{margin-bottom:20px}.compact-migration .selected-item{margin-left:0;margin-right:0}.compact-migration .peer-list{margin-left:0;margin-right:0}
@media(max-width:700px){.admin-list-heading{display:block}.admin-list-heading input{width:100%}.admin-user-row{align-items:flex-start;flex-direction:column;gap:2px;min-height:64px;padding:10px 2px}.admin-user-meta{align-items:flex-start;text-align:left;display:block;line-height:1.35;max-width:100%}.admin-user-meta span{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.admin-user-meta .status-badge{display:inline-block;margin-top:3px}.compact-migration summary{padding:18px 16px}.compact-migration form,.compact-migration>h3,.compact-migration>p,.compact-migration>.selected-item{margin-left:16px;margin-right:16px}.compact-migration .peer-list{margin-left:0;margin-right:0}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.user-header{margin:4px 0 8px}.user-header h1{font-size:clamp(1.75rem,5vw,2.2rem);margin:0}.user-header .user-email{margin:2px 0}.edit-block{padding:0}.edit-block summary{cursor:pointer;padding:14px 18px;font-weight:650}.edit-block form{padding:0 18px 16px}.services h3{font-size:1rem;margin:16px 0 4px}.service-row,.service-admin-row,.access-row,.resource-row{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid #edf0f2;padding:11px 0}.service-admin-row span,.access-row span{display:flex;flex-direction:column;min-width:0}.service-admin-row small,.access-row small{color:#65717d}.service-add{display:grid;grid-template-columns:1fr 1.5fr .55fr 1fr auto;gap:8px;align-items:end;margin-top:14px}.service-add label{margin:0}.catalog-form{display:grid;grid-template-columns:1.1fr 1.6fr .6fr .8fr .7fr .9fr auto;gap:8px;align-items:end}.catalog-form label{margin:0}.catalog-form input:not([type=checkbox]),.catalog-form select{width:100%}.legacy{padding:0}.legacy>summary{cursor:pointer;padding:16px 18px;font-size:1.1rem;font-weight:650}.legacy>section,.legacy>details{margin:0 18px 14px}.legacy>details{padding-top:10px}.resource-row span{color:#18733a;font-size:.85rem}.compact-button{min-height:36px;padding:7px 10px}
@media(max-width:700px){.service-add,.catalog-form{display:block}.service-add label,.catalog-form label{margin:9px 0}.service-add button,.catalog-form button{margin-top:5px}.user-header{align-items:flex-start}.access-row details{width:auto}.access-row details[open]{width:100%}.access-row details form{margin:8px 0}.legacy>section,.legacy>details{margin-inline:14px}.resource-row{flex-wrap:wrap}.resource-row small{flex-basis:100%}}

/* Admin user page: compact, mobile-first controls. */
.admin-user-page button,.admin-user-page .button{width:auto;max-width:100%;min-height:0;padding:8px 12px;line-height:1.25;white-space:normal}
.portal-header{margin-bottom:18px}.portal-resource-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;padding:12px 0;border-top:1px solid #edf0f2}.portal-resource-row>strong{min-width:0;overflow-wrap:anywhere}.portal-resource-actions{display:flex;flex:0 0 auto;flex-wrap:wrap;gap:7px;align-items:center}.portal-resource-button{width:auto;flex:0 0 auto;min-height:42px;padding:9px 13px;line-height:1.2}.portal-resource-actions .copy{margin-left:0}.resource-note{margin-top:-4px}.resource-row>div{display:flex;flex-direction:column;gap:2px;min-width:0}.resource-row small{display:block}
.admin-user-page .secondary-button{background:#e7edf3;color:#263746}
.admin-user-page .admin-form-stack{display:flex;flex-direction:column;gap:8px;margin:0}
.admin-user-page .admin-form-stack label{margin:0}
.admin-user-page .admin-form-stack input:not([type=checkbox]),.admin-user-page .admin-form-stack select{width:100%;max-width:100%;box-sizing:border-box}
.admin-user-page .admin-action-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0}
.admin-user-page .admin-action-row .button{display:inline-block}
.admin-user-page .service-admin-row,.admin-user-page .access-row{align-items:flex-start}
.admin-user-page .service-row-main,.admin-user-page .access-meta{min-width:0;flex:1;display:flex;flex-direction:column;gap:2px}
.admin-user-page .service-row-main strong,.admin-user-page .access-meta strong{overflow-wrap:anywhere}
.admin-user-page .service-editor,.admin-user-page .access-editor{flex:0 1 auto;min-width:0;margin-top:0;padding-top:0;border-top:0}
.admin-user-page .service-editor[open],.admin-user-page .access-editor[open]{width:min(100%,560px);margin-top:8px;padding-top:10px;border-top:1px solid #edf0f2}
.admin-user-page .service-editor summary,.admin-user-page .access-editor summary,.admin-user-page .add-details summary{color:#1769e0;cursor:pointer;padding:6px 0;list-style-position:inside}
.admin-user-page .service-editor form+form{margin-top:8px;padding-top:8px;border-top:1px solid #edf0f2}
.admin-user-page .service-add{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.admin-user-page .add-details{margin-top:14px;padding-top:10px}
.admin-user-page .add-details[open]{padding:10px 12px 12px;background:#f7f9fb;border:1px solid #e2e8ee;border-radius:10px}
.admin-user-page .upload-form input[type=file]{width:100%;min-width:0;padding:8px}
.admin-user-page .danger-action{margin-top:12px;padding-top:12px;border-top:1px solid #f0d7d4}

@media(max-width:700px){
  .admin-user-page .card{padding:14px}
  .admin-user-page .service-admin-row,.admin-user-page .access-row{display:flex;flex-direction:column;gap:8px}
  .admin-user-page .service-editor,.admin-user-page .access-editor{width:100%;align-self:stretch}
  .admin-user-page .service-editor[open],.admin-user-page .access-editor[open]{width:auto;margin-top:0}
  .admin-user-page .service-editor summary,.admin-user-page .access-editor summary{padding:7px 0}
  .admin-user-page .admin-action-row{gap:7px}
  .admin-user-page .admin-action-row button,.admin-user-page .admin-action-row .button{flex:0 1 auto}
}

.help-header{justify-content:space-between;align-items:flex-start;margin-bottom:16px}.help-header h1{font-size:clamp(1.6rem,6vw,2.2rem);margin:0}.help-header p{margin:4px 0}.help-card{background:#fff;border-radius:14px;padding:18px;margin:14px 0;box-shadow:0 2px 12px #1020300d}.help-card h2{margin:0 0 10px;font-size:1.2rem}.help-recommended{border:2px solid #1769e0}.help-recommended h2{font-size:1.35rem}.eyebrow{margin:0 0 5px;color:#1769e0;font-weight:650}.help-install-button{margin-top:5px}.help-caption{margin:8px 0 0;font-size:.85rem}.help-steps{padding-left:24px;margin:4px 0 16px}.help-steps li{padding:4px 0}.help-import h3{font-size:1rem;margin:0 0 6px}.help-import ol{padding-left:22px;margin:0}.help-import li{padding:3px 0}.help-card details{margin-top:16px}.help-platform-list{display:flex;flex-wrap:wrap;gap:8px;padding-top:8px}.help-platform-list a{padding:6px 9px;background:#f1f5f8;border-radius:7px}.help-other-platforms>div{display:flex;flex-wrap:wrap;gap:7px 12px;align-items:baseline;border-top:1px solid #edf0f2;padding:10px 0}.help-other-platforms>div strong{min-width:120px}.help-other-platforms>div span{flex-basis:100%;color:#65717d;font-size:.9rem}.help-official-link{text-align:center;font-size:.9rem;margin:16px 0}.secondary-button{background:#e7edf3;color:#263746}
