.portal-layout{width:100%;max-width:760px;min-width:0;margin-inline:auto}

.portal-layout[data-portal=admin]{max-width:1000px}

.workspace:has(.portal-layout) .top{max-width:760px;margin-inline:auto}

.workspace:has([data-portal=admin]) .top{max-width:1000px}

.portal-card,.portal-form,.portal-table{min-width:0;max-width:100%}

.portal-form input,.portal-form textarea,.portal-form select{min-width:0}

.portal-empty{text-align:center;margin:0;padding:45px 16px;color:var(--muted)}

.portal-incident{display:grid;justify-items:start;gap:4px;width:100%;margin-top:10px;text-align:left}

.portal-incident small,.portal-incident span{color:var(--muted)}

.portal-notice img{display:block;max-width:100%;max-height:300px;border-radius:10px;margin:10px 0}

.portal-notice a{display:inline-block;margin:0 12px 8px 0}

.portal-expiry,.portal-notice-actions{display:flex;flex-wrap:wrap;align-items:end;gap:8px;margin-top:8px}

.portal-expiry label{margin:0}

.portal-expiry input{display:block;margin:4px 0 0}

.portal-layout input[type=search]{max-width:420px}

.start-networks{display:grid;gap:8px;margin:18px auto;width:100%;max-width:440px}

.start-network{display:flex;align-items:center;text-align:left;gap:12px;width:100%;min-height:48px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);text-decoration:none;font-weight:600;cursor:pointer}

.start-network:hover{background:var(--soft)}

.start-network>:last-child{margin-left:auto}

.start-network-icon{display:grid;place-items:center;width:28px;height:28px;flex:none;color:var(--network-color,var(--accent))}

.start-network-icon svg,.start-network-icon img{width:23px;height:23px}

.start-network-methods{display:flex;flex-wrap:wrap;gap:8px;padding:8px 0 0 40px}

@media(max-width:760px){

 :root[data-palette] .workspace .sidebar{position:fixed;inset:0 auto 0 0;height:100dvh;overscroll-behavior:contain}

 .workspace:has(.portal-layout) .main-shell,.workspace:has(.portal-layout) main,.workspace:has(.portal-layout) #content{min-width:0;max-width:100%;overflow-wrap:anywhere}

 .portal-fields{grid-template-columns:minmax(0,1fr)}

}

.portal-body{min-width:0;display:grid;gap:16px}

.portal-card{margin:0;padding:clamp(16px,3vw,26px);border-radius:18px}

.portal-card h2{margin:0 0 12px;font-size:21px;letter-spacing:-.02em}

.portal-card>button{margin-top:12px}

.portal-form{display:grid;gap:13px;margin:12px 0}

.portal-form label{display:grid;gap:6px;margin:0;font-weight:500}

.portal-form input,.portal-form textarea,.portal-form select{width:100%;margin:0}

.portal-form button[type=submit]{justify-self:start}

.portal-form .portal-check{display:flex;align-items:center;gap:8px}

.portal-form .portal-check input{width:auto}

.portal-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px}

.portal-profile-head{display:flex;align-items:center;gap:15px;margin:16px 0 24px}

.portal-profile-head img,.portal-profile-head>span{width:64px;height:64px;border-radius:18px;object-fit:cover;background:var(--soft)}

.portal-profile-head>span{display:grid;place-items:center;color:var(--accent);font-size:24px;font-weight:700}

.portal-profile-head small,.portal-table small{display:block;color:var(--muted)}

.portal-table{overflow:auto;border:1px solid var(--line);border-radius:12px}

.portal-table table{width:100%;min-width:650px;border-collapse:collapse;table-layout:auto}

.portal-table th,.portal-table td{padding:11px 12px;text-align:left;vertical-align:middle;border-bottom:1px solid var(--line)}

.portal-table tr:last-child td{border-bottom:0}

.portal-table th{color:var(--muted);font-weight:600;background:var(--soft)}

.portal-table button{white-space:nowrap}

.portal-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}

.portal-plan{display:flex;justify-content:space-between;gap:12px;font-size:22px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:var(--soft)}

.portal-metrics{display:flex;flex-wrap:wrap;gap:16px 28px}

.portal-metrics dt{color:var(--muted)}.portal-metrics dd{margin:3px 0 0;font-weight:600}

.portal-notice{margin-top:10px;padding:12px;border:1px solid var(--line);border-radius:12px}

.portal-notice small{display:block;color:var(--muted)}

.portal-notice p{white-space:pre-wrap;overflow-wrap:anywhere}

.portal-sidebar-notice{align-items:center;width:100%;margin-bottom:7px;overflow:hidden}

.portal-sidebar-notice span+span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

body.sidebar-compact .portal-sidebar-notice span+span{display:none}

.access-art:has(.access-background){inset:0;transform:none;filter:none;opacity:.58;display:block}

.access-background{width:100%;height:100%;object-fit:cover}

@media(max-width:840px){.portal-card{padding:14px}.portal-table{font-size:14px}}

.workspace-avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}



#portal-search{grid-template-columns:minmax(0,420px) auto;align-items:end;justify-content:start}

@media(max-width:470px){#portal-search{grid-template-columns:minmax(0,1fr)}}



/* Account rows keep the label and its control together, without a vacant column. */

.portal-layout[data-portal=account],.workspace:has([data-portal=account]) .top{max-width:720px}

#portal-profile>label:not(.portal-check){display:grid;grid-template-columns:minmax(130px,1fr) minmax(180px,320px);align-items:center;gap:24px;padding:12px 0;border-bottom:1px solid var(--line)}

#portal-profile input:not([type=checkbox]),#portal-profile select{max-width:none}

.portal-body .appearance-panel{margin:0;padding:24px;border-radius:18px}

.portal-body .palette-options{margin-top:0;gap:8px}

.portal-body .palette-choice{padding:10px;font-size:14px}

.admin-subnav{display:grid;gap:2px;padding:6px 0 10px 30px;border-left:1px solid var(--line);margin-left:20px}

.sidebar .admin-subnav button{min-height:32px;padding:4px 10px;font-size:14px;line-height:1.35;border-radius:6px}

.admin-subnav [data-current]{color:var(--accent);background:var(--soft)}

body.sidebar-compact .admin-subnav{display:none}

.notice-canvas{padding:22px;margin:0;background:var(--surface);overflow:hidden}

.notice-canvas .notice-title,.notice-canvas textarea{background:transparent!important;color:var(--ink);border:0;border-radius:4px;box-shadow:none;padding:10px 0;resize:none}

.notice-canvas .notice-title{font-size:24px;font-weight:650}

.notice-canvas textarea{min-height:100px;line-height:1.6}

.notice-canvas .notice-image-control{margin-top:10px;padding:12px;border:1px dashed var(--line);border-radius:8px;font-size:14px}

.notice-canvas input[type=file]{font-size:13px}

.notice-canvas img{max-height:360px;width:100%;object-fit:contain}

.portal-sidebar-notice{display:flex;flex-direction:column;text-align:left;padding:10px;gap:8px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}

.portal-sidebar-notice img{width:100%;max-height:110px;object-fit:cover;border-radius:6px}

.portal-sidebar-notice>span{min-width:0;width:100%;white-space:normal}

.portal-sidebar-notice strong{display:block;font-size:13px;line-height:1.4}

.portal-sidebar-notice small{display:block;font-size:12px;line-height:1.4;margin-top:4px;max-height:34px;overflow:hidden}

body.sidebar-compact .portal-sidebar-notice>span{display:none}

@media(max-width:760px){

 .admin-subnav{display:none}

 body.sidebar-mobile-open .admin-subnav{display:grid}

 #portal-profile>label:not(.portal-check){grid-template-columns:1fr;gap:7px}

 .portal-body .appearance-panel{padding:16px}

 .portal-sidebar-notice>span{display:none}

 body.sidebar-mobile-open .portal-sidebar-notice>span{display:block}

}



#portal-notice-draft .notice-title{font-size:24px;font-weight:650;line-height:1.3}#portal-notice-draft .notice-image-control input{max-width:100%}



.portal-id-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:16px;margin-top:16px;border-top:1px solid var(--line)}

.portal-id-row small{display:block;color:var(--muted);margin-top:3px}

.portal-id-row>div:last-child,.portal-avatar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}

.portal-id-row code{overflow-wrap:anywhere;color:var(--muted)}

.portal-id-row button,.portal-avatar-actions button{padding:6px 10px}

.portal-avatar-actions{margin-inline-start:auto}

@media(max-width:640px){

 .portal-id-row{align-items:flex-start;flex-direction:column}

 .portal-profile-head{flex-wrap:wrap}

 .portal-avatar-actions{margin-inline-start:0}

}



/* A shared selector for profile, appearance and contact forms. */

.portal-body .select-picker-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-width:0;min-height:42px;padding:10px 12px;text-align:left;background:var(--soft);border:1px solid var(--line);border-radius:9px;color:var(--ink);font:inherit;font-weight:400}

.select-picker-trigger>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.select-picker-panel{position:fixed;inset:auto;margin:0;padding:8px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);box-shadow:0 10px 30px #0002;max-width:calc(100vw - 16px)}

.select-picker-panel input{width:100%;margin:0 0 6px;padding:8px 10px;min-height:34px;background:var(--soft)}

.select-picker-options{max-height:min(260px,50dvh);overflow:auto;overscroll-behavior:contain}

.select-picker-options button{display:block;width:100%;min-height:34px;padding:8px 10px;border:0;border-radius:6px;text-align:left;box-shadow:none;background:transparent;color:inherit;font:inherit;font-weight:400}

.select-picker-options button:hover,.select-picker-options button:focus-visible{background:var(--soft);color:var(--accent)}

.select-picker-options [aria-selected=true]{background:var(--accent);color:#fff}

.select-picker-options p{margin:10px;color:var(--muted)}


/* Help remains reachable beside the account menu, including compact navigation. */
.sidebar-account-row{display:flex;align-items:center;gap:4px}.sidebar-account-row .profile{flex:1;min-width:0}.help-trigger{flex:0 0 36px}.help-menu{width:300px!important;max-height:calc(100dvh - 32px);overflow:auto}.help-menu a{display:flex;align-items:center;gap:10px;padding:10px 12px;text-decoration:none;color:inherit;border-radius:8px}.help-menu a:hover,.help-menu a:focus-visible{background:var(--soft);outline:2px solid var(--accent);outline-offset:-2px}.help-menu hr{border:0;border-top:1px solid var(--line,#ddd);margin:8px 0}.help-menu>small{padding:8px 12px;letter-spacing:.08em}.service-dot{width:9px;height:9px;flex:0 0 9px;border-radius:50%;background:#858b95}.service-dot[data-state=available]{background:#268544}.service-dot[data-state=degraded]{background:#bc5e11}.sidebar-compact .sidebar-account-row{flex-direction:column}@media(max-width:760px){.help-menu{max-width:calc(100vw - 16px)}}
