Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Disable public cloud signup by default before v6 GA
rcourtmanc8c0e2777651
diff --git a/docs/release-control/v6/internal/subsystems/cloud-paid.md b/docs/release-control/v6/internal/subsystems/cloud-paid.mdindex 33b45e6b51..d0aa33ed90 100644--- a/docs/release-control/v6/internal/subsystems/cloud-paid.md+++ b/docs/release-control/v6/internal/subsystems/cloud-paid.md@@ -185,7 +185,13 @@ Public cloud self-serve signup follows the same rule: `internal/cloudcp/config.gand `internal/cloudcp/public_cloud_signup_handlers.go` must accept onlycanonical `cloud_*` Stripe prices for public hosted signup tiers and failclosed when misconfigured so self-hosted or prelaunch-only prices cannot leak-into live public checkout flows.+into live public checkout flows. Until the governed v6 cutover explicitly+opens that path, `internal/cloudcp/routes.go` and the hosted portal bootstrap+must also keep public cloud signup links and route registration disabled even+if canonical Cloud price IDs are already present for release-day readiness.+That prelaunch gate must not disable `/api/public/magic-link/request`, because+existing hosted commercial accounts still depend on the public portal sign-in+flow before v6 public Cloud checkout is opened.Signed hosted entitlement leases are part of the same boundary: lease signingand verification must canonicalize recognized Cloud plan aliases and reconcilelease `limits.max_monitored_systems` to the authoritative per-plan contract instead ofdiff --git a/internal/cloudcp/config.go b/internal/cloudcp/config.goindex 5535a45015..b84acf2c5d 100644--- a/internal/cloudcp/config.go+++ b/internal/cloudcp/config.go@@ -38,6 +38,7 @@ type CPConfig struct {AllowDockerlessProvisioning boolStripeWebhookSecret stringStripeAPIKey string+ PublicCloudSignupEnabled boolTrialSignupPriceID string // Cloud Starter (default tier) price IDCloudPowerPriceID string // Cloud Power tier price ID (optional)CloudMaxPriceID string // Cloud Max tier price ID (optional)@@ -126,6 +127,7 @@ func LoadConfig() (*CPConfig, error) {AllowDockerlessProvisioning: envOrDefaultBool("CP_ALLOW_DOCKERLESS_PROVISIONING", false),StripeWebhookSecret: strings.TrimSpace(os.Getenv("STRIPE_WEBHOOK_SECRET")),StripeAPIKey: strings.TrimSpace(os.Getenv("STRIPE_API_KEY")),+ PublicCloudSignupEnabled: envOrDefaultBool("CP_PUBLIC_CLOUD_SIGNUP_ENABLED", false),TrialSignupPriceID: strings.TrimSpace(os.Getenv("CP_TRIAL_SIGNUP_PRICE_ID")),CloudPowerPriceID: strings.TrimSpace(os.Getenv("CP_CLOUD_POWER_PRICE_ID")),CloudMaxPriceID: strings.TrimSpace(os.Getenv("CP_CLOUD_MAX_PRICE_ID")),@@ -218,7 +220,7 @@ func (c *CPConfig) validate() error {return fmt.Errorf("PULSE_EMAIL_FROM is required when CP_REQUIRE_EMAIL_PROVIDER=true")}}- if strings.TrimSpace(c.StripeAPIKey) != "" && strings.TrimSpace(c.TrialSignupPriceID) == "" {+ if strings.TrimSpace(c.StripeAPIKey) != "" && c.PublicCloudSignupEnabled && strings.TrimSpace(c.TrialSignupPriceID) == "" {return fmt.Errorf("CP_TRIAL_SIGNUP_PRICE_ID is required when STRIPE_API_KEY is configured")}if strings.TrimSpace(c.StripeAPIKey) != "" && strings.TrimSpace(c.TrialActivationPrivateKey) == "" {diff --git a/internal/cloudcp/config_test.go b/internal/cloudcp/config_test.goindex deabcdb56b..532ed31dab 100644--- a/internal/cloudcp/config_test.go+++ b/internal/cloudcp/config_test.go@@ -241,6 +241,7 @@ func TestLoadConfig_AcceptsCanonicalCloudSignupPriceIDs(t *testing.T) {setRequiredCPEnv(t)setTrialSigningEnv(t)t.Setenv("STRIPE_API_KEY", "sk_test_123")+ t.Setenv("CP_PUBLIC_CLOUD_SIGNUP_ENABLED", "true")t.Setenv("CP_TRIAL_SIGNUP_PRICE_ID", "price_1T5kflBrHBocJIGHUqPv1dzV")t.Setenv("CP_CLOUD_POWER_PRICE_ID", "price_1T5kg2BrHBocJIGHmkoF0zXY")t.Setenv("CP_CLOUD_MAX_PRICE_ID", "price_1T5kg4BrHBocJIGHHa8Ecqho")@@ -254,15 +255,31 @@ func TestLoadConfig_AcceptsCanonicalCloudSignupPriceIDs(t *testing.T) {}}-func TestLoadConfig_RequiresTrialSignupPriceWhenStripeEnabled(t *testing.T) {+func TestLoadConfig_AllowsMissingTrialSignupPriceWhenPublicCloudSignupDisabled(t *testing.T) {setRequiredCPEnv(t)- t.Setenv("CP_REQUIRE_EMAIL_PROVIDER", "false")+ setTrialSigningEnv(t)+ t.Setenv("STRIPE_API_KEY", "sk_test_123")+ t.Setenv("CP_TRIAL_SIGNUP_PRICE_ID", "")++ cfg, err := LoadConfig()+ if err != nil {+ t.Fatalf("LoadConfig: %v", err)+ }+ if cfg.PublicCloudSignupEnabled {+ t.Fatal("PublicCloudSignupEnabled = true, want false by default")+ }+}++func TestLoadConfig_RequiresTrialSignupPriceWhenPublicCloudSignupEnabled(t *testing.T) {+ setRequiredCPEnv(t)+ setTrialSigningEnv(t)t.Setenv("STRIPE_API_KEY", "sk_test_123")+ t.Setenv("CP_PUBLIC_CLOUD_SIGNUP_ENABLED", "true")t.Setenv("CP_TRIAL_SIGNUP_PRICE_ID", "")_, err := LoadConfig()if err == nil {- t.Fatal("expected error when STRIPE_API_KEY is set but CP_TRIAL_SIGNUP_PRICE_ID is missing")+ t.Fatal("expected error when public cloud signup is enabled but CP_TRIAL_SIGNUP_PRICE_ID is missing")}if !strings.Contains(err.Error(), "CP_TRIAL_SIGNUP_PRICE_ID is required") {t.Fatalf("unexpected error: %v", err)diff --git a/internal/cloudcp/portal/bootstrap.go b/internal/cloudcp/portal/bootstrap.goindex cd88a6110e..fb8124a028 100644--- a/internal/cloudcp/portal/bootstrap.go+++ b/internal/cloudcp/portal/bootstrap.go@@ -61,7 +61,7 @@ func MarshalBootstrapJSON(data BootstrapData) (template.JS, error) {return template.JS(payload), nil}-func BuildBootstrapData(authenticated bool, email string, accounts []portalPageAccount, hasSelfHostedCommercial bool) BootstrapData {+func BuildBootstrapDataWithSignupPath(authenticated bool, email string, accounts []portalPageAccount, hasSelfHostedCommercial bool, signupPath string) BootstrapData {bootstrapAccounts := make([]BootstrapAccount, 0, len(accounts))for _, account := range accounts {workspaces := make([]BootstrapWorkspace, 0, len(account.Workspaces))@@ -117,7 +117,7 @@ func BuildBootstrapData(authenticated bool, email string, accounts []portalPageAPortalPath: defaultPortalPath,BootstrapPath: PortalBootstrapPath,MagicLinkRequestPath: PortalMagicLinkRequestPath,- SignupPath: PortalSignupPath,+ SignupPath: signupPath,LogoutPath: defaultLogoutPath,AccountAPIBasePath: defaultAccountAPIBasePath,PortalAPIBasePath: defaultPortalAPIBasePath,@@ -125,6 +125,14 @@ func BuildBootstrapData(authenticated bool, email string, accounts []portalPageA}}+func BuildBootstrapData(authenticated bool, email string, accounts []portalPageAccount, hasSelfHostedCommercial bool) BootstrapData {+ return BuildBootstrapDataWithSignupPath(authenticated, email, accounts, hasSelfHostedCommercial, PortalSignupPath)+}++func BuildAnonymousBootstrapDataWithSignupPath(signupPath string) BootstrapData {+ return BuildBootstrapDataWithSignupPath(false, "", nil, false, signupPath)+}+func BuildAnonymousBootstrapData() BootstrapData {- return BuildBootstrapData(false, "", nil, false)+ return BuildAnonymousBootstrapDataWithSignupPath(PortalSignupPath)}diff --git a/internal/cloudcp/portal/dist/build_manifest.json b/internal/cloudcp/portal/dist/build_manifest.jsonindex 56edfb55eb..f93305f4d7 100644--- a/internal/cloudcp/portal/dist/build_manifest.json+++ b/internal/cloudcp/portal/dist/build_manifest.json@@ -1,5 +1,5 @@{- "source_hash": "105a2cf01f7b31e356d71c2f826b18be16165e4c9c61fba4504283bf965662ff",+ "source_hash": "dee5325d02ca13ee1eb3b4ff7d09478406bbd5805999ced971f4b7f62700d7f0","build_inputs": ["package.json","tsconfig.json",diff --git a/internal/cloudcp/portal/dist/portal_app.css b/internal/cloudcp/portal/dist/portal_app.cssindex d928e67be4..3122a8054f 100644--- a/internal/cloudcp/portal/dist/portal_app.css+++ b/internal/cloudcp/portal/dist/portal_app.css@@ -54,57 +54,37 @@:root {color-scheme: light;--font-ui:- "Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",- Roboto,+ "Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji",- "Segoe UI Emoji",- "Segoe UI Symbol";- --font-display:- "Inter",- -apple-system,- BlinkMacSystemFont,- "Segoe UI",- Roboto,- Helvetica,- Arial,- sans-serif;- --bg: #f4f4f5;- --panel: #ffffff;- --panel-strong: #f7fafc;- --panel-muted: #eff4f8;- --ink: #18181b;- --ink-soft: #52525b;- --ink-muted: #71717a;- --line: #e4e4e7;- --line-strong: #d4d4d8;- --accent: #0f766e;- --accent-strong: #115e59;- --accent-soft: #ccfbf1;- --warn: #9a3412;- --warn-soft: #ffedd5;- --danger: #991b1b;- --danger-soft: #fee2e2;- --success: #166534;- --success-soft: #dcfce7;- --nav-bg: #ffffff;- --nav-line: #e2e8f0;- --nav-copy: #64748b;- --nav-ink: #0f172a;- --shadow-sm: none;- --shadow-md: none;- --shadow-lg: none;- --shadow-hover: none;- --radius-sm: 4px;- --radius-md: 6px;- --radius-lg: 8px;-}-* {+ "Segoe UI Emoji";+ --bg: #ffffff;+ --bg-subtle: #f6f8fa;+ --bg-inset: #eff2f5;+ --ink: #1f2328;+ --ink-secondary: #59636e;+ --ink-muted: #848d97;+ --border: #d1d9e0;+ --border-muted: #e1e4e8;+ --accent: #0969da;+ --accent-emphasis: #0550ae;+ --accent-subtle: #ddf4ff;+ --danger: #d1242f;+ --danger-subtle: #ffebe9;+ --success: #1a7f37;+ --success-subtle: #dafbe1;+ --warn: #9a6700;+ --warn-subtle: #fff8c5;+ --radius: 6px;+}+*,+*::before,+*::after {box-sizing: border-box;}html {@@ -114,4740 +94,1574 @@ body {margin: 0;min-height: 100vh;font-family: var(--font-ui);+ font-size: 14px;+ line-height: 1.5;background: var(--bg);color: var(--ink);-webkit-font-smoothing: antialiased;- -moz-osx-font-smoothing: grayscale;}a {- color: inherit;+ color: var(--accent);+ text-decoration: none;+}+a:hover {+ text-decoration: underline;+}+[hidden] {+ display: none !important;}header {position: sticky;top: 0;- z-index: 10;+ z-index: 20;display: flex;align-items: center;justify-content: space-between;gap: 12px;- padding: 8px 16px;- border-bottom: 1px solid var(--line);- background: rgba(255, 255, 255, 0.98);+ height: 48px;+ padding: 0 16px;+ border-bottom: 1px solid var(--border);+ background: var(--bg);}header .brand {- font-size: 16px;- font-weight: 700;- letter-spacing: -0.02em;+ font-size: 14px;+ font-weight: 600;+ color: var(--ink);}.header-account-chip {display: inline-flex;align-items: center;- gap: 10px;- border: 1px solid var(--line);- background: #fff;- border-radius: 4px;- padding: 3px 6px 3px 10px;+ gap: 8px;}.header-account-email {- font-size: 12px;- color: var(--ink-soft);+ font-size: 13px;+ color: var(--ink-secondary);}header .logout-btn,.link-button,.btn-primary,.btn-secondary,.btn-danger,-.btn-remove {+.btn-remove,+.btn-compact {appearance: none;border: none;text-decoration: none;font: inherit;+ cursor: pointer;+ display: inline-flex;+ align-items: center;+ justify-content: center;+ font-size: 13px;+ font-weight: 500;+ line-height: 1;+ border-radius: var(--radius);+ transition: background 80ms ease;}header .logout-btn,.btn-secondary,.link-button {- border: 1px solid var(--line-strong);- background: #fff;+ padding: 5px 12px;+ border: 1px solid var(--border);+ background: var(--bg-subtle);color: var(--ink);- border-radius: var(--radius-md);- padding: 6px 16px;- font-size: 14px;- font-weight: 500;- cursor: pointer;- transition:- border-color 140ms ease,- background 140ms ease,- box-shadow 140ms ease;- display: inline-flex;- align-items: center;- justify-content: center;}header .logout-btn:hover,.btn-secondary:hover,.link-button:hover {- border-color: var(--line-strong);- background: #f4f4f5;- box-shadow: none;+ background: var(--bg-inset);}.btn-primary {- border-radius: var(--radius-md);- padding: 8px 16px;- font-size: 14px;- display: inline-flex;- align-items: center;- justify-content: center;+ padding: 5px 16px;background: var(--accent);color: #fff;font-weight: 600;- box-shadow: none;- cursor: pointer;- transition: background 140ms ease, box-shadow 140ms ease;}.btn-primary:hover {- background: var(--accent-strong);- box-shadow: none;+ background: var(--accent-emphasis);}.btn-danger {- border-radius: var(--radius-md);- padding: 8px 16px;- font-size: 14px;- display: inline-flex;- align-items: center;- justify-content: center;- background: var(--danger-soft);+ padding: 5px 16px;+ background: var(--danger-subtle);color: var(--danger);font-weight: 600;- cursor: pointer;- transition: background 140ms ease, box-shadow 140ms ease;}.btn-danger:hover {- background: #fecaca;- box-shadow: none;+ background: #ffc7c7;+}+.btn-remove {+ padding: 5px 12px;+ border: 1px solid rgba(208, 36, 36, 0.2);+ background: transparent;+ color: var(--danger);+ font-weight: 500;+}+.btn-remove:hover {+ background: var(--danger-subtle);}.btn-compact {- padding: 6px 12px;- font-size: 13px;- border-radius: var(--radius-sm);+ padding: 3px 10px;+ font-size: 12px;}.main {- max-width: 1480px;+ max-width: 800px;margin: 0 auto;- padding: 12px 16px 36px;+ padding: 0 24px 64px;}.portal-shell {- display: block;-}-.portal-shell-head {- padding: 24px 32px;- border-bottom: 1px solid var(--line);- background: var(--bg);-}-.portal-shell-head-main {display: flex;flex-direction: column;- gap: 8px;-}-.portal-shell-head-kicker,-.account-panel-kicker,-.billing-card-kicker,-.account-eyebrow {- font-size: 12px;- font-weight: 600;- letter-spacing: 0.05em;- color: var(--ink-soft);-}-.portal-shell-head-kicker,-.account-panel-kicker,-.billing-card-kicker {- color: var(--accent);-}-.account-eyebrow {- color: var(--ink-muted);-}-.portal-shell-head p,-.intro-card p {- margin: 0;- font-size: 12px;- line-height: 1.5;- color: var(--ink-soft);-}-.portal-shell-head-row {- display: grid;- grid-template-columns: minmax(0, 1fr) auto;- gap: 14px;- align-items: center;-}-.portal-shell-head-copy {- display: flex;- flex-direction: column;- gap: 4px;- max-width: 760px;+ gap: 0;}-.portal-shell-head-brand-row {+.portal-identity-bar {display: flex;- align-items: center;- gap: 12px;- flex-wrap: nowrap;+ align-items: baseline;+ gap: 8px;+ padding: 16px 0 12px;+ font-size: 13px;+ color: var(--ink-secondary);}-.portal-shell-head-title {+.portal-identity-bar h2 {margin: 0;- font-family: var(--font-display);- font-size: 28px;- line-height: 1;- letter-spacing: -0.045em;- font-weight: 750;+ font-size: 20px;+ font-weight: 600;color: var(--ink);}-.portal-shell-head-chip {- display: inline-flex;- align-items: center;- min-height: 24px;- padding: 0 10px;- border-radius: 4px;- background: #edf5f7;- color: var(--accent-strong);- font-size: 10px;- font-weight: 800;- letter-spacing: 0.08em;-}-.portal-shell-head-summary {+.portal-identity-sep {+ color: var(--border);+}+.portal-tab-bar {display: flex;- align-items: center;- gap: 8px;- align-self: start;- flex-wrap: nowrap;+ align-items: stretch;+ gap: 0;+ border-bottom: 1px solid var(--border);+ margin-bottom: 0;}-.portal-shell-summary-pill {- display: inline-flex;- align-items: center;- gap: 6px;- min-height: 32px;- padding: 0 12px;+.portal-tab {+ appearance: none;border: none;- border-radius: 4px;background: transparent;- font-size: 12px;- color: var(--ink-soft);+ font: inherit;+ font-size: 14px;+ font-weight: 500;+ color: var(--ink-secondary);+ padding: 8px 16px;+ cursor: pointer;+ border-bottom: 2px solid transparent;+ margin-bottom: -1px;+ transition: color 80ms ease;}-.portal-shell-summary-pill strong {+.portal-tab:hover {color: var(--ink);- font-size: 11px;- font-weight: 800;- letter-spacing: 0.08em;-}-.portal-command-strip,-.intro-card,-.billing-panel,-.account-surface,-.empty-state {- border: 1px solid var(--line);- background: #fff;- box-shadow: none;- transition: border-color 140ms ease, background 140ms ease;- border-radius: var(--radius-lg);-}-.portal-shell-layout {- display: grid;- grid-template-columns: 256px minmax(0, 1fr);- gap: 0;- align-items: start;- background: var(--bg);- min-height: calc(100vh - 57px);-}-.portal-shell-nav {- position: static;- height: 100%;- border-right: 1px solid var(--line);- background: var(--panel);-}-.portal-shell-nav-header {- display: flex;- flex-direction: column;- gap: 5px;- padding: 16px 14px 12px;- border-bottom: 1px solid var(--nav-line);-}-.portal-shell-nav-eyebrow {- font-size: 11px;- font-weight: 600;- letter-spacing: 0.05em;- color: var(--ink-muted);}-.portal-shell-nav-title {- font-family: var(--font-ui);- font-size: 16px;- line-height: 1.2;- font-weight: 600;+.portal-tab.active {color: var(--ink);+ font-weight: 600;+ border-bottom-color: var(--accent);}-.portal-shell-nav-support {- font-size: 11px;- line-height: 1.4;- color: var(--nav-copy);- max-width: 180px;+.portal-tab-utility {+ margin-left: auto;+ color: var(--ink-muted);+ font-weight: 400;}-.portal-shell-nav-group {+.portal-shell-main {display: flex;flex-direction: column;- gap: 6px;- padding: 12px 10px;+ gap: 0;}-.portal-shell-nav-link {- display: flex;- flex-direction: column;- gap: 4px;- width: 100%;- padding: 8px 12px;- border: 1px solid transparent;- border-radius: var(--radius-md);- background: transparent;- text-align: left;- cursor: pointer;- transition: background 140ms ease, color 140ms ease;+.portal-shell-main > .portal-content-panel {+ display: none !important;}-.portal-shell-nav-link + .portal-shell-nav-link {- border-top: none;+.portal-shell[data-shell-section=workspaces] .portal-content-panel-workspaces,+.portal-shell[data-shell-section=access] .portal-content-panel-access,+.portal-shell[data-shell-section=billing] .portal-content-panel-billing,+.portal-shell[data-shell-section=support] .portal-content-panel-support,+.portal-shell[data-shell-section=overview] .portal-content-panel-overview {+ display: block !important;+}+.portal-shell[data-shell-section=overview] .account-content-panel-overview,+.portal-shell[data-shell-section=workspaces] .account-content-panel-workspaces,+.portal-shell[data-shell-section=access] .account-content-panel-access {+ display: block !important;}-.portal-shell-nav-link:hover {- background: var(--panel-muted);- border-color: transparent;+.portal-shell[data-shell-section=overview] .account-content-panel-workspaces,+.portal-shell[data-shell-section=overview] .account-content-panel-access,+.portal-shell[data-shell-section=workspaces] .account-content-panel-overview,+.portal-shell[data-shell-section=workspaces] .account-content-panel-access,+.portal-shell[data-shell-section=access] .account-content-panel-overview,+.portal-shell[data-shell-section=access] .account-content-panel-workspaces {+ display: none !important;}-.portal-shell-nav-link.active {- background: var(--panel-muted);- border-color: transparent;+.portal-content-panel {+ padding: 20px 0 0;}-.portal-shell-nav-row {+.portal-section-header {display: flex;align-items: center;justify-content: space-between;- gap: 8px;-}-.portal-shell-nav-label-group {- display: inline-flex;- align-items: center;- gap: 8px;- min-width: 0;+ gap: 12px;+ margin-bottom: 12px;}-.portal-shell-nav-index {- display: inline-flex;- align-items: center;- justify-content: center;- min-width: 20px;- height: 20px;- border-radius: var(--radius-md);- background: var(--panel-strong);- color: var(--ink-muted);- font-size: 11px;+.portal-section-header h3 {+ margin: 0;+ font-size: 14px;font-weight: 600;}-.portal-shell-nav-label {- display: block;- font-size: 14px;- font-weight: 500;- color: var(--ink);+.portal-section-note {+ font-size: 13px;+ color: var(--ink-secondary);+ margin-bottom: 12px;}-.portal-shell-nav-badge {- display: inline-flex;- align-items: center;- min-height: 20px;- padding: 0 7px;- border-radius: 4px;- background: transparent;+.portal-section-copy {+ font-size: 13px;+ color: var(--ink-secondary);+ margin: -4px 0 12px;+ line-height: 1.4;+}+.account-surface {border: none;- font-size: 10px;- font-weight: 700;- letter-spacing: 0.06em;- color: var(--ink-muted);- white-space: nowrap;+ background: transparent;+ padding: 0;}-.portal-shell-nav-copy {- display: block;- font-size: 10.5px;- line-height: 1.4;- color: var(--nav-copy);+.account-surface + .account-surface {+ margin-top: 24px;+ padding-top: 20px;+ border-top: 1px solid var(--border);}-.portal-shell-nav-link.active .portal-shell-nav-badge {- background: #e0f2fe;- color: #0284c7;- border-color: transparent;+.account-content-panel {+ display: block;}-.portal-shell-nav-link.active .portal-shell-nav-index {+.account-content-panel-overview,+.account-content-panel-workspaces,+.account-content-panel-access {+ padding: 0;+ border: none;background: transparent;- color: var(--ink);}-.portal-shell-main {- min-width: 0;- padding: 0 0 32px;+.workspace-list-wrap {+ border: 1px solid var(--border);+ border-radius: var(--radius);background: var(--bg);+ overflow: hidden;}-.portal-shell-main > .portal-content-panel {- display: none !important;+.workspace-list-toolbar {+ display: flex;+ justify-content: flex-end;+ gap: 8px;+ padding: 8px 16px;+ border-bottom: 1px solid var(--border-muted);+ background: var(--bg-subtle);}-.portal-account-context {+.workspace-list-head {display: grid;- grid-template-columns: minmax(0, 1fr) auto;- gap: 16px;- align-items: start;- padding: 24px 32px 24px;- border-bottom: 1px solid var(--line);- background: var(--panel);+ grid-template-columns: minmax(0, 2fr) 80px 80px 160px;+ gap: 8px;+ padding: 6px 16px;+ background: var(--bg-subtle);+ border-bottom: 1px solid var(--border);+ font-size: 12px;+ font-weight: 600;+ color: var(--ink-secondary);}-.portal-account-context-copy {+.workspace-list {display: flex;flex-direction: column;- gap: 6px;- min-width: 0;}-.portal-account-context-meta {- display: flex;+.workspace-row {+ display: grid;+ grid-template-columns: minmax(0, 2fr) 80px 80px 160px;+ gap: 8px;align-items: center;- gap: 6px;- flex-wrap: nowrap;-}-.portal-account-context-separator,-.portal-account-context-access {- font-size: 12px;- font-weight: 700;- color: var(--ink-muted);+ padding: 10px 16px;+ border-top: 1px solid var(--border-muted);+ background: var(--bg);+ transition: background 60ms ease;}-.portal-account-context-row {- display: flex;- align-items: baseline;- gap: 10px;- flex-wrap: nowrap;+.workspace-row:first-child {+ border-top: none;}-.portal-account-context-row h2 {- margin: 0;- font-family: var(--font-display);- font-size: 22px;- line-height: 0.98;- letter-spacing: -0.035em;- font-weight: 720;+.workspace-row:hover {+ background: var(--bg-subtle);}-.portal-account-context-copy p {- display: block;- margin: 0;- max-width: 720px;- font-size: 12px;- line-height: 1.45;- color: var(--ink-soft);+.workspace-row.selected {+ background: var(--accent-subtle);}-.portal-account-context-chips {- display: flex;- align-items: center;- gap: 8px;- flex-wrap: nowrap;-}-.portal-account-context-summary {- display: flex;- align-items: center;- justify-content: flex-end;- gap: 0;- flex-wrap: nowrap;- padding: 4px;- border: 1px solid var(--line);- border-radius: var(--radius-lg);- background: rgba(255, 255, 255, 0.74);- box-shadow: none;-}-.portal-account-context-stat {+.workspace-row-primary {display: flex;flex-direction: column;- align-items: flex-start;- gap: 3px;+ gap: 1px;min-width: 0;- padding: 8px 12px;- border: none;- border-radius: 10px;- background: transparent;-}-.portal-account-context-stat + .portal-account-context-stat {- border-left: 1px solid var(--line);-}-.portal-account-context-stat span {- font-size: 10px;- font-weight: 800;- letter-spacing: 0.1em;- color: var(--ink-muted);-}-.portal-account-context-stat strong {- font-size: 12px;- line-height: 1.2;- color: var(--ink);-}-.portal-shell[data-shell-section=overview] .portal-content-panel-overview,-.portal-shell[data-shell-section=billing] .portal-content-panel-billing,-.portal-shell[data-shell-section=support] .portal-content-panel-support,-.portal-shell[data-shell-section=workspaces] .portal-content-panel-overview,-.portal-shell[data-shell-section=access] .portal-content-panel-overview {- display: block !important;-}-.portal-shell[data-shell-section=overview] .account-content-panel-overview,-.portal-shell[data-shell-section=workspaces] .account-content-panel-workspaces,-.portal-shell[data-shell-section=access] .account-content-panel-access {- display: block !important;-}-.portal-shell[data-shell-section=overview] .account-content-panel-workspaces,-.portal-shell[data-shell-section=overview] .account-content-panel-access,-.portal-shell[data-shell-section=workspaces] .account-content-panel-overview,-.portal-shell[data-shell-section=workspaces] .account-content-panel-access,-.portal-shell[data-shell-section=access] .account-content-panel-overview,-.portal-shell[data-shell-section=access] .account-content-panel-workspaces {- display: none !important;-}-.portal-support-link,-.support-link,-.billing-panel .helper-text a {- color: var(--accent-strong);- font-weight: 600;-}-.portal-stage {- display: flex;- flex-direction: column;- gap: 18px;-}-.portal-content-panel {- padding: 12px 14px 0;}-.portal-top-section,-.billing-section {+.workspace-row-heading {display: flex;- flex-direction: column;- gap: 12px;-}-.portal-top-section-header h2,-.billing-header h2 {- margin: 4px 0 0;- font-family: var(--font-ui);- font-size: 24px;- line-height: 1.2;- font-weight: 600;+ align-items: baseline;+ gap: 8px;+ min-width: 0;}-.portal-top-section-header p,-.billing-note {- margin: 6px 0 0;+.workspace-name {+ margin: 0;font-size: 14px;- line-height: 1.5;- color: var(--ink-soft);- max-width: 600px;+ font-weight: 600;+ color: var(--ink);}-.billing-header {+.workspace-meta {display: flex;- align-items: start;- justify-content: space-between;- gap: 12px;- flex-wrap: nowrap;+ gap: 6px;}-.account-surface {- border: none;- background: transparent;- box-shadow: none;- padding: 0 0 6px;+.workspace-meta-item {+ font-size: 12px;+ color: var(--ink-muted);}-.account-surface + .account-surface {- margin-top: 22px;-}-.account-badges,-.account-context-strip,-.workspace-badges,-.workspace-actions,-.account-actions,-.workspace-management-actions,-.form-actions {- display: flex;- align-items: center;- gap: 10px;- flex-wrap: nowrap;+.workspace-meta-item + .workspace-meta-item::before {+ content: "\b7";+ margin-right: 6px;+ color: var(--border);}-.account-context-strip {- justify-content: flex-end;+.workspace-row-note {+ margin: 0;+ font-size: 12px;+ color: var(--ink-secondary);}-.account-context-chip {- display: inline-flex;+.workspace-row-status-cell {+ display: flex;align-items: center;- min-height: auto;- padding: 0 8px;- border: none;- border-radius: var(--radius-sm);- background: transparent;- color: var(--ink-soft);- font-size: 12px;- font-weight: 500;}.workspace-actions {- justify-content: flex-end;display: flex;- flex-direction: row;- gap: 8px;align-items: center;+ gap: 6px;+ justify-content: flex-end;}.workspace-actions form {margin: 0;}-.workspace-actions .btn-primary,-.workspace-actions .btn-secondary {- min-width: 126px;+.badge {+ display: inline-flex;+ align-items: center;+ padding: 1px 6px;+ border: 1px solid var(--border);+ border-radius: 2em;+ font-size: 12px;+ font-weight: 500;+ color: var(--ink-secondary);+ background: var(--bg-subtle);+ white-space: nowrap;}-.account-surface-body {- display: grid;- grid-template-columns: 1fr;- gap: 14px;+.badge-healthy {+ border-color: #aedcb5;+ background: var(--success-subtle);+ color: var(--success);}-.account-content-panel {- display: block;+.badge-active {+ border-color: #aedcb5;+ background: var(--success-subtle);+ color: var(--success);}-.account-content-panel-overview,-.account-content-panel-workspaces,-.account-content-panel-access {- padding: 0;- border: none;- border-radius: 0;- background: transparent;- box-shadow: none;-}-.account-command-deck,-.account-overview-card,-.account-stat-card,-.workspace-row,-.workspace-management-panel,-.access-management-panel,-.add-workspace-form,-.access-roster,-.access-invite-panel,-.billing-card,-.billing-panel .subsection {- border: 1px solid var(--line);- background: var(--panel);- border-radius: var(--radius-lg);- box-shadow: none;- transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);-}-.account-overview-card:hover,-.account-stat-card:hover,-.workspace-row:hover,-.billing-card:hover {- transform: none;- box-shadow: none;-}-.account-overview-card,-.account-stat-card,-.workspace-management-panel,-.access-management-panel,-.add-workspace-form,-.billing-panel,-.access-roster,-.access-invite-panel {- padding: 24px;+.badge-unhealthy,+.badge-failed {+ border-color: #f5b3b3;+ background: var(--danger-subtle);+ color: var(--danger);}-.account-overview-card h3,-.account-stage-header h3,-.workspace-management-header h3,-.access-management-header h3,-.billing-card h3,-.billing-panel h3,-.billing-panel .subsection h4 {- margin: 8px 0 0;- font-family: var(--font-ui);- font-size: 16px;- font-weight: 600;- color: var(--ink);+.badge-checking,+.badge-provisioning {+ border-color: #c6d9f0;+ background: var(--accent-subtle);+ color: var(--accent);}-.account-overview-card p,-.account-stage-header p,-.workspace-management-header p,-.access-management-header p,-.access-panel-heading p,-.billing-card p,-.billing-panel p,-.billing-panel .helper-text {- margin: 10px 0 0;- font-size: 13px;- line-height: 1.55;- color: var(--ink-soft);+.badge-suspended {+ border-color: #e3c97a;+ background: var(--warn-subtle);+ color: var(--warn);}-.account-command-deck {- display: grid;- grid-template-columns: minmax(0, 1.36fr) minmax(320px, 0.78fr);- gap: 14px;- align-items: start;- padding: 0;- border: none;- border-radius: 0;- background: transparent;+.badge-deleting {+ border-color: #f5b3b3;+ background: var(--danger-subtle);+ color: var(--danger);}-.overview-task-grid,-.billing-overview-grid {- display: grid;- gap: 14px;+.workspace-operations-shell {+ display: flex;+ flex-direction: column;+ gap: 12px;}-.overview-task-grid {- grid-template-columns: repeat(3, minmax(0, 1fr));+.workspace-operations-detail {+ position: static;}-.billing-overview-grid {- grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));- margin-bottom: 14px;+.workspace-management-panel {+ border: 1px solid var(--border);+ border-radius: var(--radius);+ padding: 16px;+ background: var(--bg);}-.overview-task-card,-.billing-task-card {+.workspace-management-header {display: flex;- flex-direction: column;+ align-items: flex-start;+ justify-content: space-between;gap: 12px;- min-width: 0;- padding: 16px;- border: 1px solid var(--line);- border-radius: var(--radius-lg);- background: var(--panel);- box-shadow: none;+ margin-bottom: 12px;}-.overview-task-card h4,-.billing-task-card h3 {+.workspace-management-header h3 {margin: 0;- font-family: var(--font-display);- font-size: 18px;- line-height: 1.08;- letter-spacing: -0.022em;- font-weight: 710;- color: var(--ink);+ font-size: 14px;+ font-weight: 600;}-.overview-task-card p,-.billing-task-card p,-.billing-task-note {- margin: 0;+.workspace-management-header p {+ margin: 4px 0 0;font-size: 13px;- line-height: 1.55;- color: var(--ink-soft);-}-.overview-task-card-attention {- background: var(--panel);-}-.overview-task-card-next {- background: var(--panel);-}-.billing-task-card-muted {- background: var(--panel-strong);+ color: var(--ink-secondary);}-.overview-task-list,-.billing-task-points {+.workspace-management-content {display: flex;flex-direction: column;- gap: 10px;+ gap: 12px;}-.overview-task-item,-.billing-task-point {- display: flex;- flex-direction: column;- gap: 4px;- padding-top: 10px;- border-top: 1px solid var(--line);+.workspace-management-content h4 {+ margin: 0;+ font-size: 14px;+ font-weight: 600;}-.overview-task-item:first-child,-.billing-task-point:first-child {- padding-top: 0;- border-top: none;+.workspace-management-meta {+ font-size: 12px;+ color: var(--ink-muted);}-.overview-task-item strong,-.billing-task-point strong {+.workspace-management-summary {+ margin: 0;font-size: 13px;- color: var(--ink);+ color: var(--ink-secondary);}-.overview-task-item span,-.billing-task-point span {- font-size: 12px;- line-height: 1.5;- color: var(--ink-soft);-}-.overview-task-item-action {- flex-direction: row;- align-items: center;- justify-content: space-between;- gap: 12px;+.workspace-management-facts {+ display: grid;+ grid-template-columns: repeat(3, 1fr);+ gap: 8px;}-.overview-task-copy {+.workspace-management-fact {display: flex;flex-direction: column;gap: 4px;- min-width: 0;+ padding: 10px;+ border: 1px solid var(--border-muted);+ border-radius: var(--radius);+ background: var(--bg-subtle);}-.overview-task-actions,-.overview-task-summary-bar,-.billing-task-actions {- display: flex;- align-items: center;- gap: 10px;- flex-wrap: nowrap;+.workspace-management-fact span {+ font-size: 11px;+ font-weight: 600;+ color: var(--ink-muted);+ text-transform: uppercase;+ letter-spacing: 0.04em;}-.overview-task-actions,-.billing-task-actions {- margin-top: auto;+.workspace-management-fact strong {+ font-size: 14px;+ color: var(--ink);}-.overview-task-summary-bar {- margin-top: 14px;+.workspace-management-guidance {+ padding: 12px;+ border: 1px solid var(--border-muted);+ border-radius: var(--radius);+ background: var(--bg-subtle);+ font-size: 13px;+ color: var(--ink-secondary);}-.overview-task-summary-pill {- display: inline-flex;- align-items: center;+.workspace-management-actions {+ display: flex;gap: 8px;- min-height: 34px;- padding: 0 12px;- border: none;- border-radius: 0;- background: transparent;- font-size: 12px;- color: var(--ink-soft);}-.overview-task-summary-pill strong {- font-size: 10px;- font-weight: 800;- letter-spacing: 0.08em;- color: var(--ink-muted);-}-.account-overview-main-column,-.account-overview-side-column {- display: flex;- flex-direction: column;- gap: 12px;- min-width: 0;+.workspace-management-empty {+ margin-top: 8px;+ color: var(--ink-secondary);+ font-size: 13px;}-.account-overview-card {+.workspace-management-empty-shell {display: flex;flex-direction: column;- gap: 12px;+ gap: 8px;}-.account-overview-briefing-card {- display: grid;- grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);- gap: 14px;- align-items: start;- background: var(--panel);+.workspace-management-empty-actions-card {+ padding: 12px;+ border: 1px solid var(--border-muted);+ border-radius: var(--radius);+ background: var(--bg-subtle);}-.account-overview-lead {+.workspace-management-empty-actions-copy {display: flex;flex-direction: column;- gap: 0;- min-width: 0;-}-.account-overview-brief-strip {- display: grid;- grid-template-columns: repeat(2, minmax(0, 1fr));- gap: 10px;- margin-top: 14px;+ gap: 4px;}-.account-overview-brief-point {- display: flex;- flex-direction: column;- gap: 5px;- min-height: 100%;- padding: 12px;- border: 1px solid var(--line);- border-radius: 10px;- background: rgba(252, 253, 254, 0.96);+.workspace-management-empty-actions-card h4 {+ margin: 0;+ font-size: 14px;+ font-weight: 600;}-.account-overview-brief-point-wide {- grid-column: 1 / -1;+.workspace-management-empty-actions-card p {+ margin: 4px 0 0;+ font-size: 13px;+ color: var(--ink-secondary);}-.account-overview-brief-point strong {+.workspace-management-empty-note {font-size: 12px;- line-height: 1.3;- letter-spacing: 0.02em;- color: var(--ink);+ color: var(--ink-muted);}-.account-overview-brief-point span {- font-size: 12px;- line-height: 1.55;- color: var(--ink-soft);+.add-workspace-form {+ display: none;}-.account-overview-next-block {- display: flex;- flex-direction: column;- gap: 0;- min-width: 0;- padding-left: 14px;- border-left: 1px solid var(--line);-}-.account-overview-next-block h4 {- margin: 6px 0 0;- font-family: var(--font-display);- font-size: 18px;- line-height: 1.08;- letter-spacing: -0.022em;- font-weight: 710;-}-.account-overview-next-block > p {- margin: 8px 0 0;+.add-workspace-form.visible {+ display: block;+}+.add-workspace-form,+.access-section,+.billing-panel {+ display: none;+}+.add-workspace-form.visible,+.access-section.visible,+.billing-panel.visible {+ display: block;+}+.add-workspace-form {+ border: 1px solid var(--border);+ border-radius: var(--radius);+ padding: 16px;+ background: var(--bg);+}+.add-workspace-form label,+.billing-panel label,+.access-invite label {+ display: block;+ margin-bottom: 4px;font-size: 13px;- line-height: 1.55;- color: var(--ink-soft);+ font-weight: 500;+ color: var(--ink);+}+.add-workspace-form input,+.billing-panel input,+.billing-panel textarea,+.access-invite input,+.access-invite select {+ width: 100%;+ padding: 6px 10px;+ border: 1px solid var(--border);+ border-radius: var(--radius);+ background: var(--bg);+ color: var(--ink);+ font: inherit;+ font-size: 14px;+}+.add-workspace-form input:focus,+.billing-panel input:focus,+.billing-panel textarea:focus,+.access-invite input:focus,+.access-invite select:focus {+ outline: none;+ border-color: var(--accent);+ box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.15);}-.account-overview-metrics {+.form-actions {display: flex;- flex-direction: column;+ align-items: center;gap: 8px;- padding: 10px 12px;- border: 1px solid var(--line);- border-radius: 12px;- background: var(--panel);+ margin-top: 8px;}-.account-overview-metrics-header {- margin-top: 12px;- padding: 10px 12px;+.form-group {+ margin-bottom: 12px;}-.account-metric-strip {- display: grid;- grid-template-columns: repeat(5, minmax(0, 1fr));- gap: 0;- padding: 0;- border: none;- border-radius: 0;- background: transparent;+.form-group label {+ display: block;+ margin-bottom: 4px;+ font-size: 13px;+ font-weight: 500;+ color: var(--ink);}-.account-stat-card-inline {- min-width: 0;- display: flex;- flex-direction: column;- justify-content: center;- gap: 5px;- min-height: 68px;- padding: 8px 12px;- border: none;- border-left: 1px solid var(--line);- border-radius: 0;- background: transparent;- box-shadow: none;+.form-group input,+.form-group textarea,+.form-group select {+ width: 100%;+ padding: 6px 10px;+ border: 1px solid var(--border);+ border-radius: var(--radius);+ background: var(--bg);+ color: var(--ink);+ font: inherit;+ font-size: 14px;}-.account-stat-card-inline:first-child {- border-left: none;+.form-group input:focus,+.form-group textarea:focus,+.form-group select:focus {+ outline: none;+ border-color: var(--accent);+ box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.15);}-.account-stat-label,-.access-stat-label {- display: block;- font-size: 11px;- font-weight: 800;- letter-spacing: 0.12em;- color: var(--ink-muted);+.form-group textarea {+ min-height: 80px;+ resize: vertical;}-.account-stat-value,-.access-stat-value {- display: block;- margin-top: 8px;- font-size: 24px;- font-weight: 800;- letter-spacing: -0.04em;+.access-management-panel {+ padding: 0;+ border: none;+ background: transparent;}-.account-stat-healthy {- color: var(--success);+.access-management-stats {+ display: block;+ margin-bottom: 8px;}-.account-stat-checking {- color: var(--accent);+.access-stat-summary {+ font-size: 13px;+ color: var(--ink-muted);}-.account-stat-unhealthy,-.access-stat-error {+.access-stat-summary-error {color: var(--danger);}-.account-action-strip {+.access-task-strip {display: flex;- align-items: start;- justify-content: space-between;- gap: 18px;- grid-column: 1 / -1;- padding: 24px;- background: var(--panel);- border-radius: var(--radius-lg);- box-shadow: none;+ gap: 8px;+ margin-bottom: 12px;}-.account-action-copy {- max-width: 720px;+.access-task-button {+ appearance: none;+ padding: 5px 12px;+ border: 1px solid var(--border);+ border-radius: var(--radius);+ background: var(--bg);+ color: var(--ink-secondary);+ font: inherit;+ font-size: 13px;+ font-weight: 500;+ cursor: pointer;}-.account-action-copy p {- margin: 8px 0 0;- font-size: 14px;- line-height: 1.6;- color: var(--ink-soft);+.access-task-button:hover {+ background: var(--bg-subtle);}-.account-overview-secondary {- display: grid;- grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);- gap: 12px;- grid-column: 1 / -1;+.access-task-button.is-active,+.access-task-button.active {+ border-color: var(--accent);+ background: var(--accent-subtle);+ color: var(--accent);}-.overview-side-card {- padding: 24px;- border: 1px solid var(--line);- border-radius: 12px;- background: #fcfcfd;- box-shadow: none;-}-.overview-side-card h4 {- margin: 6px 0 0;- font-size: 17px;- line-height: 1.08;- letter-spacing: -0.03em;-}-.overview-side-card p {- margin: 8px 0 0;- font-size: 13px;- line-height: 1.55;- color: var(--ink-soft);+.access-roster {+ border: 1px solid var(--border);+ border-radius: var(--radius);+ background: var(--bg);+ overflow: hidden;+ padding: 0;+}+.access-roster.state-only {+ border: none;+ background: transparent;+ padding: 0;}-.overview-side-card-stable {+.access-roster-toolbar {display: flex;- flex-direction: column;- gap: 12px;- background: #fbfcfe;+ justify-content: flex-end;+ gap: 8px;+ padding: 8px 16px;+ background: var(--bg-subtle);+ border-bottom: 1px solid var(--border-muted);}-.overview-stable-list {- display: grid;- grid-template-columns: repeat(2, minmax(0, 1fr));- gap: 10px;+.access-panel-heading {+ padding: 10px 16px 6px;}-.overview-stable-item {- display: flex;- flex-direction: column;- gap: 3px;- min-height: 100%;- padding: 11px 12px;- border: 1px solid var(--line);- border-left: 3px solid #dbe5ee;- border-radius: 10px;- background: #fff;-}-.overview-stable-item:first-child {- padding-top: 11px;-}-.overview-stable-item strong {- font-size: 12px;- line-height: 1.3;- color: var(--ink);- letter-spacing: 0.02em;+.access-panel-heading h4 {+ margin: 0;+ font-size: 13px;+ font-weight: 600;}-.overview-stable-item span {- font-size: 11px;- line-height: 1.5;- color: var(--ink-soft);+.access-panel-heading p {+ margin: 2px 0 0;+ font-size: 12px;+ color: var(--ink-secondary);}-.overview-next-checklist {+.access-roster-list {display: flex;flex-direction: column;- gap: 0;- margin-top: 12px;}-.overview-next-check {- display: flex;- flex-direction: column;- gap: 3px;- padding: 9px 0 9px 12px;- border-top: 1px solid var(--line);- border-left: 3px solid rgba(15, 118, 110, 0.2);+.access-roster-list.state-only {+ border: none;background: transparent;+ overflow: visible;}-.overview-next-check:first-child {- border-top: none;- padding-top: 0;-}-.overview-next-check strong {+.access-roster-head {+ display: grid;+ grid-template-columns: minmax(0, 1fr) 140px 120px;+ gap: 12px;+ padding: 6px 16px;+ background: var(--bg-subtle);+ border-bottom: 1px solid var(--border);font-size: 12px;- line-height: 1.3;- color: var(--ink);-}-.overview-next-check span {- font-size: 11px;- line-height: 1.5;- color: var(--ink-soft);-}-.overview-next-actions {- display: flex;- gap: 10px;- flex-wrap: nowrap;- margin-top: 12px;+ font-weight: 600;+ color: var(--ink-secondary);}-.overview-alert-list {- display: flex;- flex-direction: column;- gap: 0;- margin-top: 12px;+.access-roster-head-readonly {+ grid-template-columns: minmax(0, 1fr) 140px;}-.overview-alert-row {- display: flex;- align-items: start;- justify-content: space-between;+.access-member-row {+ display: grid;+ grid-template-columns: minmax(0, 1fr) 140px 120px;gap: 12px;- padding: 9px 0 9px 12px;- border-top: 1px solid var(--line);- border-left: 3px solid rgba(154, 52, 18, 0.16);+ align-items: center;+ padding: 8px 16px;+ border-top: 1px solid var(--border-muted);}-.overview-alert-row:first-child {+.access-member-row-readonly {+ grid-template-columns: minmax(0, 1fr) 140px;+}+.access-member-row:first-of-type {border-top: none;- padding-top: 0;}-.overview-alert-main {+.access-member-row:hover {+ background: var(--bg-subtle);+}+.access-member-identity {display: flex;flex-direction: column;- gap: 4px;+ gap: 1px;+ min-width: 0;}-.overview-alert-main strong {- font-size: 13px;+.access-member-topline {+ display: flex;+ align-items: center;+ gap: 8px;+}+.access-member-email {+ font-size: 14px;+ font-weight: 500;+ color: var(--ink);}-.overview-alert-main span {+.access-member-caption {font-size: 12px;- line-height: 1.5;- color: var(--ink-soft);+ color: var(--ink-muted);}-.add-workspace-form {- grid-column: 1 / -1;+.access-inline-role-badge {+ display: none;}-.account-main-stage {+.access-control-cell {display: flex;- flex-direction: column;- gap: 16px;+ align-items: center;}-.portal-support-panel {- border: 1px solid var(--line);- border-radius: var(--radius-lg);- padding: 14px 16px;- background: #fff;- box-shadow: none;+.access-role-badge {+ font-size: 13px;+ font-weight: 500;+ color: var(--ink);+ padding: 0;+ border: none;+ background: transparent;}-.portal-support-panel h2 {- margin: 8px 0 0;- font-family: var(--font-display);- font-size: clamp(1.48rem, 2vw, 1.95rem);- line-height: 1.02;- letter-spacing: -0.034em;- font-weight: 730;-}-.portal-support-panel > p {- margin: 10px 0 0;- max-width: 680px;+.access-control-locked {font-size: 13px;- line-height: 1.55;- color: var(--ink-soft);+ color: var(--ink-muted);+ padding: 0;+ border: none;+ background: transparent;}-.portal-support-brief-strip {- display: grid;- grid-template-columns: repeat(3, minmax(0, 1fr));- gap: 12px;- margin-top: 16px;+.access-role-select {+ width: 100%;+ padding: 4px 8px;+ border: 1px solid var(--border);+ border-radius: var(--radius);+ background: var(--bg);+ font: inherit;+ font-size: 13px;}-.portal-support-brief-card {+.access-list-message {display: flex;flex-direction: column;- gap: 5px;- padding: 12px 14px;- border: 1px solid var(--line);- border-radius: var(--radius-lg);- background: var(--panel);+ gap: 4px;+ padding: 20px 16px;+ color: var(--ink-secondary);}-.portal-support-brief-card strong {- font-size: 11px;- letter-spacing: 0.08em;- color: var(--accent-strong);+.access-list-message-title {+ font-size: 14px;+ font-weight: 600;+ color: var(--ink);}-.portal-support-brief-card span {- font-size: 12px;- line-height: 1.5;- color: var(--ink-soft);+.access-list-message-copy {+ font-size: 13px;+ color: var(--ink-secondary);}-.portal-support-route-grid {- display: grid;- grid-template-columns: 1fr;- gap: 14px;+.access-list-message.error {+ background: var(--danger-subtle);}-.portal-support-layout {- display: grid;- grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);- gap: 14px;- margin-top: 18px;+.access-list-message.error .access-list-message-title,+.access-list-message.error .access-list-message-copy {+ color: var(--danger);}-.portal-support-route-card {- display: flex;- flex-direction: column;- gap: 10px;+.access-task-panel,+.access-invite-panel,+.access-job-note-panel {+ border: 1px solid var(--border);+ border-radius: var(--radius);padding: 16px;- border: 1px solid var(--line);- border-radius: var(--radius-md);- background: var(--panel);-}-.portal-support-route-card h3 {- margin: 0;- font-size: 18px;- letter-spacing: -0.02em;-}-.portal-support-route-card p {- margin: 0;- font-size: 14px;- line-height: 1.65;- color: var(--ink-soft);+ background: var(--bg);+ margin-bottom: 12px;}-.portal-support-runbook {+.access-task-header {display: flex;- flex-direction: column;+ align-items: flex-start;+ justify-content: space-between;gap: 12px;- padding: 16px;- border: 1px solid var(--line);- border-radius: var(--radius-md);- background: #fbfcfd;+ margin-bottom: 12px;}-.portal-support-runbook h3 {+.access-task-header h4 {margin: 0;- font-size: 18px;- letter-spacing: -0.02em;+ font-size: 14px;+ font-weight: 600;}-.portal-support-runbook p {- margin: 0;+.access-task-header p {+ margin: 4px 0 0;font-size: 13px;- line-height: 1.55;- color: var(--ink-soft);+ color: var(--ink-secondary);}-.portal-support-runbook-brief {- display: grid;- grid-template-columns: repeat(3, minmax(0, 1fr));- gap: 10px;+.access-policy-panel {+ border: 1px solid var(--border-muted);+ border-radius: var(--radius);+ background: var(--bg-subtle);+ padding: 16px;}-.portal-support-runbook-brief-card {+.access-policy-list {display: flex;flex-direction: column;- gap: 5px;- min-height: 100%;- padding: 12px 14px;- border: 1px solid var(--line);- border-radius: 12px;- background: var(--panel);-}-.portal-support-runbook-brief-card strong {- font-size: 11px;- letter-spacing: 0.08em;- color: var(--accent-strong);-}-.portal-support-runbook-brief-card span {- font-size: 12px;- line-height: 1.5;- color: var(--ink-soft);-}-.portal-support-runbook-grid {- display: grid;- grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.9fr);- gap: 12px;+ border: 1px solid var(--border-muted);+ border-radius: var(--radius);+ overflow: hidden;+ background: var(--bg);}-.portal-support-runbook-section {+.access-policy-row {display: flex;flex-direction: column;- gap: 10px;- min-height: 100%;+ gap: 2px;+ padding: 8px 12px;+ border-top: 1px solid var(--border-muted);}-.portal-support-runbook-section-title {- font-size: 11px;- letter-spacing: 0.08em;- color: var(--ink-muted);+.access-policy-row:first-child {+ border-top: none;}-.portal-support-handoff-note {- display: flex;- flex-direction: column;- gap: 4px;- min-height: 100%;- padding: 12px 14px 12px 16px;- border: 1px solid var(--line);- border-left: 2px solid rgba(15, 118, 110, 0.18);- border-radius: 12px;- background: var(--panel);-}-.portal-support-handoff-note strong {- font-size: 11px;- letter-spacing: 0.08em;- color: var(--ink-muted);+.access-policy-row strong {+ font-size: 12px;+ font-weight: 600;+ color: var(--ink);}-.portal-support-handoff-note span {+.access-policy-row span {font-size: 12px;- line-height: 1.5;- color: var(--ink-soft);+ color: var(--ink-secondary);}-.portal-support-runbook-list,-.portal-support-points {+.access-remove-points {display: flex;flex-direction: column;- gap: 0;+ gap: 8px;}-.portal-support-runbook-step,-.portal-support-point {+.access-remove-point {display: flex;flex-direction: column;- gap: 4px;- padding: 11px 0 11px 12px;- border-top: 1px solid var(--line);- border-left: 2px solid rgba(11, 106, 114, 0.14);-}-.portal-support-runbook-step:first-child,-.portal-support-point:first-child {- padding-top: 0;- border-top: none;+ gap: 2px;}-.portal-support-runbook-step strong,-.portal-support-point strong {- font-size: 12px;- line-height: 1.35;+.access-remove-point strong {+ font-size: 13px;color: var(--ink);}-.portal-support-runbook-step span,-.portal-support-point span {+.access-remove-point span {font-size: 12px;- line-height: 1.5;- color: var(--ink-soft);-}-.portal-support-actions {- display: flex;- align-items: center;- gap: 10px;- flex-wrap: nowrap;- margin-top: auto;-}-.account-stage-header {- padding: 0 2px 12px;- border-bottom: 1px solid rgba(193, 205, 218, 0.86);- margin-bottom: 12px;-}-.account-stage-header-row {- display: flex;- align-items: flex-start;- justify-content: space-between;- gap: 12px;+ color: var(--ink-secondary);}-.section-context-strip {+.access-invite {display: flex;- align-items: center;+ flex-direction: column;gap: 8px;- flex-wrap: nowrap;- margin-top: 8px;-}-.section-context-chip {- display: inline-flex;- align-items: center;- min-height: 24px;- padding: 0 9px;- border: none;- border-radius: 0;- background: transparent;- color: var(--ink-muted);- font-size: 10px;- font-weight: 800;- letter-spacing: 0.08em;}-.account-stage-header-actions {+.access-shell {display: flex;- align-items: center;- gap: 8px;- flex-wrap: nowrap;- justify-content: flex-end;- flex: 0 0 auto;- padding-top: 0;-}-.account-stage-header h3 {- margin: 7px 0 0;- font-size: 21px;- line-height: 1.02;- letter-spacing: -0.05em;-}-.account-stage-header p {- margin: 8px 0 0;- max-width: 720px;- font-size: 13px;- line-height: 1.55;- color: var(--ink-soft);+ flex-direction: column;+ gap: 12px;}-.account-stage-header-overview {+.billing-surface-block {+ border: 1px solid var(--border);+ border-radius: var(--radius);+ background: var(--bg);+ overflow: hidden;margin-bottom: 12px;}-.workspace-list-wrap {- display: flex;- flex-direction: column;- gap: 10px;- padding: 12px;- border: 1px solid var(--line);- border-radius: 12px;- background: var(--panel);- box-shadow: none;-}-.workspace-list-toolbar {- display: flex;- align-items: center;- justify-content: flex-start;- gap: 16px;- padding: 0 2px 10px;- border-bottom: 1px solid var(--line);+.billing-surface-block-empty {+ padding: 16px;}-.workspace-list-summary {- font-size: 13px;- line-height: 1.45;- color: var(--ink-soft);- max-width: 620px;+.billing-surface-header {+ padding: 10px 16px 6px;}-.workspace-list-head {- display: grid;- grid-template-columns: minmax(0, 2.55fr) 102px 112px 164px;- gap: 14px;- padding: 0 14px 6px;- border-bottom: 1px solid var(--line);- font-size: 11px;- font-weight: 800;- letter-spacing: 0.12em;- color: var(--ink-muted);+.billing-surface-header h3 {+ margin: 0;+ font-size: 14px;+ font-weight: 600;}-.workspace-list {+.billing-action-list,+.billing-action-list-surface {display: flex;flex-direction: column;- gap: 0;- border: 1px solid var(--line);- border-radius: 12px;- background: #fff;- overflow: hidden;}-.workspace-row {+.billing-action-row,+.billing-action-row-surface {display: grid;- grid-template-columns: minmax(0, 2.55fr) 102px 112px 164px;- gap: 14px;+ grid-template-columns: minmax(0, 1fr) auto;+ gap: 12px;align-items: center;- padding: 11px 14px;- background: #fff;- border-top: 1px solid var(--line);- transition: border-color 140ms ease, background 140ms ease;+ padding: 10px 16px;+ border-top: 1px solid var(--border-muted);}-.workspace-row:first-child {+.billing-action-row:first-child,+.billing-action-row-surface:first-child {border-top: none;}-.workspace-row:hover {- background: #fbfdff;-}-.workspace-row.selected {- position: relative;- border-color: rgba(11, 106, 114, 0.34);- background: #eef8fa;- box-shadow: none;-}-.workspace-row.selected .workspace-name {- color: var(--accent-strong);-}-.workspace-row.selected .workspace-row-note {- color: var(--ink);-}-.workspace-row-primary {+.billing-action-main {display: flex;flex-direction: column;- gap: 3px;- min-width: 0;-}-.workspace-row-heading {- display: flex;- align-items: baseline;- gap: 10px;+ gap: 2px;min-width: 0;}-.workspace-name,-.workspace-management-content h4,-.access-panel-heading h4 {+.billing-action-copy h3 {margin: 0;- font-size: 17px;- line-height: 1.1;- letter-spacing: -0.025em;-}-.workspace-meta {- display: flex;- gap: 8px;- flex-wrap: nowrap;- min-width: 0;+ font-size: 14px;+ font-weight: 600;}-.workspace-row-heading .workspace-meta:empty {- display: none;+.billing-action-copy p {+ margin: 2px 0 0;+ font-size: 13px;+ color: var(--ink-secondary);}-.workspace-meta-item {- display: inline-flex;- align-items: center;- min-height: auto;- padding: 0;- border-radius: 0;- background: transparent;- font-size: 11px;+.billing-action-meta {+ font-size: 12px;color: var(--ink-muted);}-.workspace-meta-item + .workspace-meta-item::before {- content: "\2022";- margin-right: 10px;- color: #c0cad6;-}-.workspace-row-note,-.workspace-management-summary {- margin: 0;- font-size: 11px;- line-height: 1.45;- color: var(--ink-soft);-}-.workspace-row-status-cell {+.billing-action-cta {display: flex;align-items: center;- min-width: 0;-}-.workspace-row-status-cell-badge .badge {- min-height: 24px;- width: auto;- min-width: 86px;- justify-content: center;- border-radius: 7px;- padding: 0 9px;- font-size: 10px;- letter-spacing: 0.1em;-}-.account-management-grid {- display: grid;- grid-template-columns: 1fr;- gap: 14px;-}-.workspace-operations-shell {- display: grid;- grid-template-columns: minmax(0, 1.68fr) minmax(320px, 0.92fr);- gap: 14px;- align-items: start;- padding: 0;- border: none;- border-radius: 0;- background: transparent;-}-.workspace-operations-main,-.workspace-operations-detail {- min-width: 0;}-.workspace-operations-detail {- position: sticky;- top: 14px;-}-.workspace-operations-shell-idle {- grid-template-columns: 1fr;+.billing-shell {+ display: flex;+ flex-direction: column;gap: 12px;}-.workspace-operations-shell-idle .workspace-operations-main {- order: 1;-}-.workspace-operations-shell-idle .workspace-operations-detail {- order: 2;- position: static;+.billing-shell-main,+.billing-shell-detail {+ display: flex;+ flex-direction: column;+ gap: 0;}-.workspace-management-panel {- box-shadow: none;+.billing-shell-main {+ border: 1px solid var(--border);+ border-radius: var(--radius);+ overflow: hidden;+ background: var(--bg);}-.workspace-management-panel.visible,-.access-section.visible .access-management-panel {- box-shadow: none;+.billing-shell-main-head {+ padding: 10px 16px;+ border-bottom: 1px solid var(--border-muted);}-.workspace-management-panel {- background: #fff;+.billing-shell-main-head h3 {+ margin: 0;+ font-size: 14px;+ font-weight: 600;}-.workspace-management-panel-idle {- border: 1px solid var(--line);- border-radius: 12px;- background: #fbfcfd;- box-shadow: none;+.billing-shell-main-head p {+ margin: 4px 0 0;+ font-size: 13px;+ color: var(--ink-secondary);}-.workspace-management-panel-idle.visible {- box-shadow: none;+.billing-inline-support {+ padding: 12px 16px;+ border-top: 1px solid var(--border-muted);+ background: transparent;+ margin-top: 0;}-.workspace-management-content {- display: flex;- flex-direction: column;- gap: 14px;+.billing-inline-support h4 {+ margin: 0;+ font-size: 14px;+ font-weight: 600;}-.workspace-management-header,-.access-management-header {- display: flex;- align-items: start;- justify-content: space-between;- gap: 16px;+.billing-inline-support p {+ margin: 4px 0 0;+ font-size: 13px;+ color: var(--ink-secondary);}-.workspace-management-empty {- margin-top: 14px;+.billing-inline-support-actions {display: flex;- flex-direction: column;- gap: 10px;- padding: 0;- border-radius: 0;- background: transparent;- color: var(--ink-soft);+ gap: 8px;+ margin-top: 8px;}-.workspace-management-empty-shell {- display: grid;- grid-template-columns: minmax(0, 1fr);- gap: 10px;+.billing-detail-shell {+ border: 1px solid var(--border);+ border-radius: var(--radius);+ background: var(--bg);+ overflow: hidden;}-.workspace-management-empty-actions-card {- display: flex;- flex-direction: column;- gap: 10px;- padding: 12px;- border: 1px solid var(--line);- border-radius: 10px;- background: #fff;+.billing-panel {+ padding: 16px;+ border-radius: var(--radius);+ background: var(--bg);}-.workspace-management-empty-actions-copy {- display: flex;- flex-direction: column;- gap: 6px;-}-.workspace-management-empty-actions-card h4 {- margin: 0;- font-size: 17px;- line-height: 1.1;- letter-spacing: -0.025em;-}-.workspace-management-empty-actions-card p {- margin: 0;- font-size: 12px;- line-height: 1.45;- color: var(--ink-soft);-}-.workspace-management-empty-note {- padding: 0 2px;- font-size: 12px;- line-height: 1.5;- color: var(--ink-soft);-}-.workspace-management-content {- margin-top: 16px;-}-.workspace-management-meta {- font-size: 12px;- font-weight: 700;- letter-spacing: 0.1em;- color: var(--ink-muted);-}-.workspace-management-facts {- display: grid;- grid-template-columns: repeat(3, minmax(0, 1fr));- gap: 10px;-}-.workspace-management-fact {- display: flex;- flex-direction: column;- gap: 6px;- padding: 12px;- border: 1px solid var(--line);- border-radius: 10px;- background: var(--panel-muted);-}-.workspace-management-fact span {- font-size: 11px;- font-weight: 800;- letter-spacing: 0.1em;- color: var(--ink-muted);-}-.workspace-management-fact strong {- font-size: 15px;- line-height: 1.2;- letter-spacing: -0.02em;- color: var(--ink);-}-.workspace-management-guidance {- padding: 24px;- border: 1px solid var(--line);- border-radius: 10px;- background: #fff;- font-size: 13px;- line-height: 1.55;- color: var(--ink-soft);-}-.workspace-management-actions {- display: flex;- justify-content: flex-start;- align-items: center;- gap: 10px;- margin-top: 4px;-}-.workspace-management-actions .btn-danger {- width: 100%;- justify-content: center;- max-width: 220px;-}-.add-workspace-form,-.access-section,-.billing-panel {- display: none;-}-.add-workspace-form.visible,-.access-section.visible,.billing-panel.visible {display: block;}-.add-workspace-form label,-.billing-panel label,-.access-invite label {- display: block;- margin-bottom: 6px;- font-size: 12px;- font-weight: 700;- letter-spacing: 0.04em;- color: var(--ink-muted);-}-.add-workspace-form input,-.billing-panel input,-.billing-panel textarea,-.access-invite input,-.access-invite select,-.access-table select {- width: 100%;- border: 1px solid var(--line-strong);- border-radius: 12px;- padding: 11px 13px;- background: #fff;- color: var(--ink);- font: inherit;-}-.add-workspace-form input:focus,-.billing-panel input:focus,-.billing-panel textarea:focus,-.access-invite input:focus,-.access-invite select:focus,-.access-table select:focus {- outline: 2px solid rgba(15, 109, 115, 0.18);- border-color: var(--accent);-}-.access-stat-card {- min-width: 0;- padding: 10px 12px;- border-radius: var(--radius-sm);- background: var(--panel-muted);-}-.access-management-stats {- display: grid;- grid-template-columns: repeat(4, minmax(0, 1fr));- gap: 10px;- margin: 12px 0;-}-.access-stat-card {- border: 1px solid var(--line);- border-radius: 10px;- background: #fbfcfd;-}-.access-stat-value {- margin-top: 6px;- font-size: 22px;-}-.access-task-strip {- display: flex;- flex-wrap: nowrap;- gap: 8px;- margin-top: 12px;-}-.access-task-button {- display: inline-flex;- align-items: center;- justify-content: center;- min-height: 32px;- padding: 0 12px;- border: 1px solid var(--line);- border-radius: 4px;- background: #fff;- color: var(--ink-muted);- font-size: 11px;- font-weight: 800;- letter-spacing: 0.08em;-}-.access-task-button.is-active {- border-color: rgba(15, 109, 115, 0.22);- background: rgba(15, 109, 115, 0.08);- color: var(--accent-strong);-}-.access-shell {- display: grid;- grid-template-columns: minmax(0, 1.82fr) minmax(292px, 0.84fr);- gap: 14px;- align-items: start;-}-.access-shell-main,-.access-shell-detail {- min-width: 0;-}-.access-shell-detail {- position: sticky;- top: 14px;-}-.access-shell-idle {- grid-template-columns: 1fr;-}-.access-roster-column {- display: flex;- flex-direction: column;- gap: 14px;- min-width: 0;-}-.access-management-panel {- box-shadow: none;-}-.access-roster,-.access-invite-panel,-.access-task-panel,-.access-job-note-panel {- background: #fff;- border-color: var(--line);-}-.access-roster {- align-self: start;- display: flex;- flex-direction: column;- gap: 12px;-}-.access-roster.state-only {- border: none;- background: transparent;- box-shadow: none;- padding: 0;-}-.access-task-panel,-.access-job-note-panel {- display: flex;- flex-direction: column;- gap: 12px;- padding: 24px;- border: 1px solid var(--line);- border-radius: 12px;-}-.access-task-header,-.access-task-body {- display: flex;- flex-direction: column;- gap: 14px;-}-.access-task-header {- gap: 12px;-}-.access-policy-panel {- border: 1px solid var(--line);- border-radius: 12px;- background: var(--panel-muted);- padding: 24px;-}-.access-review-strip {- display: flex;- flex-direction: column;- gap: 10px;- padding-top: 2px;-}-.access-review-shell {- padding: 24px;- border: 1px solid var(--line);- border-radius: 12px;- background: #fff;-}-.access-review-grid {- display: grid;- grid-template-columns: repeat(2, minmax(0, 1fr));- gap: 10px;-}-.access-review-card {- display: flex;- flex-direction: column;- gap: 6px;- padding: 12px;- border: 1px solid #dde5ef;- border-radius: 10px;- background: var(--panel-muted);-}-.access-review-card strong {- font-size: 13px;- line-height: 1.25;- color: var(--ink);-}-.access-review-card span {- font-size: 12px;- line-height: 1.55;- color: var(--ink-soft);-}-.access-panel-heading {- margin-bottom: 10px;-}-.access-panel-heading-tight {- margin-bottom: 0;-}-.access-panel-heading p {- max-width: 720px;-}-.access-roster-list {- display: flex;- flex-direction: column;- gap: 0;- border: 1px solid var(--line);- border-radius: 10px;- background: #fff;- overflow: hidden;-}-.access-roster-list.state-only {- border: none;- border-radius: 0;- background: transparent;- overflow: visible;-}-.access-roster-head {- display: grid;- grid-template-columns: minmax(0, 1fr) 142px 122px;- gap: 14px;- padding: 0 12px 8px;- border-bottom: 1px solid var(--line);- font-size: 11px;- font-weight: 800;- letter-spacing: 0.12em;- color: var(--ink-muted);-}-.access-member-row {- display: grid;- grid-template-columns: minmax(0, 1fr) 142px 122px;- align-items: center;- gap: 10px;- padding: 10px 12px;- border: none;- border-top: 1px solid var(--line);- background: #fff;-}-.access-roster-head-readonly,-.access-member-row-readonly {- grid-template-columns: minmax(0, 1fr) 142px;-}-.access-member-row:first-of-type {- border-top: none;-}-.access-member-row:hover {- background: #fbfdff;-}-.access-member-identity {- display: flex;- flex-direction: column;- gap: 4px;- min-width: 0;-}-.access-member-topline {- display: flex;- align-items: center;- justify-content: flex-start;- gap: 8px;- min-width: 0;-}-.access-member-email {- font-size: 12px;- font-weight: 700;- color: var(--ink);-}-.access-member-caption {- font-size: 10px;- line-height: 1.4;- color: var(--ink-soft);-}-.access-control-cell {- display: flex;- align-items: center;- min-width: 0;-}-.access-control-cell-role {- justify-content: flex-start;-}-.access-control-cell-access {- justify-content: flex-end;-}-.access-role-badge {- display: inline-flex;- align-items: center;- min-height: 32px;- padding: 0 10px;- border-radius: 8px;- border: 1px solid #d7e3f4;- background: #f8fbff;- color: #35507a;- font-size: 11px;- font-weight: 700;- letter-spacing: 0.08em;-}-.access-inline-role-badge {- display: inline-flex;- align-items: center;- min-height: 20px;- padding: 0 7px;- border: 1px solid var(--line);- border-radius: 6px;- background: #fff;- color: var(--ink-muted);- font-size: 10px;- font-weight: 800;- letter-spacing: 0.08em;- white-space: nowrap;-}-.access-role-select {- width: 100%;- min-width: 0;- min-height: 32px;- padding-inline: 9px 26px;- border-radius: 8px;- border: 1px solid var(--line-strong);- background: #fff;- color: var(--ink);- font-size: 11px;- font-weight: 700;-}-.access-control-locked {- display: inline-flex;- align-items: center;- justify-content: center;- min-height: 34px;- width: 100%;- padding: 0 10px;- border: 1px solid var(--line);- border-radius: 8px;- background: var(--panel-muted);- color: var(--ink-muted);- font-size: 11px;- font-weight: 700;- letter-spacing: 0.08em;-}-.access-list-message {- display: flex;- flex-direction: column;- align-items: flex-start;- justify-content: center;- gap: 8px;- min-height: 196px;- padding: 22px;- border: 1px solid var(--line);- border-radius: 12px;- background: #f8fbfd;- box-shadow: none;-}-.access-list-message-title {- font-size: 16px;- line-height: 1.1;- letter-spacing: -0.02em;- color: var(--ink);-}-.access-list-message-copy {- font-size: 13px;- line-height: 1.55;- color: var(--ink-soft);-}-.access-list-message.error {- border-color: rgba(166, 27, 27, 0.18);- background: var(--danger-soft);- box-shadow: none;-}-.access-list-message.error .access-list-message-title,-.access-list-message.error .access-list-message-copy {- color: var(--danger);-}-.btn-remove {- min-height: 34px;- width: 100%;- padding: 0 10px;- border: 1px solid rgba(166, 27, 27, 0.16);- border-radius: 8px;- background: rgba(166, 27, 27, 0.04);- color: var(--danger);- font-size: 11px;- font-weight: 700;- letter-spacing: 0.08em;- cursor: pointer;-}-.btn-remove:hover {- background: rgba(166, 27, 27, 0.08);-}-.access-invite {- display: flex;- flex-direction: column;- gap: 12px;-}-.access-policy-list {- display: flex;- flex-direction: column;- gap: 0;- border: 1px solid var(--line);- border-radius: 10px;- background: var(--panel-muted);- overflow: hidden;-}-.access-policy-row {- display: flex;- flex-direction: column;- gap: 4px;- padding: 12px 14px;- border-top: 1px solid var(--line);-}-.access-policy-row:first-child {- border-top: none;-}-.access-policy-row strong {- font-size: 12px;- letter-spacing: 0.08em;- color: var(--ink-muted);-}-.access-policy-row span {- font-size: 12px;- line-height: 1.4;- color: var(--ink-soft);-}-.access-remove-points {- display: flex;- flex-direction: column;- gap: 10px;-}-.access-remove-point {- display: flex;- flex-direction: column;- gap: 4px;- padding-left: 12px;- border-left: 3px solid rgba(11, 106, 114, 0.14);-}-.access-remove-point strong {- font-size: 13px;- line-height: 1.3;- color: var(--ink);-}-.access-remove-point span {- font-size: 12px;- line-height: 1.45;- color: var(--ink-soft);-}-.billing-action-list {- display: grid;- grid-template-columns: 1fr;- gap: 0;- border: 1px solid var(--line);- border-radius: 12px;- background: #fff;- overflow: hidden;-}-.billing-shell {- display: grid;- grid-template-columns: minmax(0, 1fr);- gap: 14px;- align-items: start;- padding: 12px;- border: 1px solid var(--line);- border-radius: 12px;- background: #fff;-}-.billing-shell-job-open {- grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);-}-.billing-shell-main,-.billing-shell-detail {- display: flex;- flex-direction: column;- gap: 8px;-}-.billing-shell-main-head,-.billing-inline-support {- padding: 11px 12px;- border: 1px solid var(--line);- border-radius: 12px;- background: var(--panel-strong);-}-.billing-shell-main-head h3 {- margin: 4px 0 0;- font-size: 16px;- line-height: 1.08;- letter-spacing: -0.03em;-}-.billing-shell-main-head p,-.billing-inline-support p {- margin: 5px 0 0;- font-size: 11px;- line-height: 1.45;- color: var(--ink-soft);-}-.billing-inline-support h4 {- margin: 4px 0 0;- font-size: 16px;- line-height: 1.08;- letter-spacing: -0.03em;-}-.billing-inline-support-points {- display: flex;- flex-direction: column;- gap: 0;- margin-top: 8px;-}-.billing-inline-support-point {- display: flex;- flex-direction: column;- gap: 3px;- padding: 8px 0 8px 10px;- border-top: 1px solid var(--line);- border-left: 2px solid rgba(15, 118, 110, 0.16);-}-.billing-inline-support-point:first-child {- padding-top: 0;- border-top: none;-}-.billing-inline-support-point strong {- font-size: 11px;- letter-spacing: 0.08em;- color: var(--ink-muted);-}-.billing-inline-support-point span {- font-size: 11px;- line-height: 1.45;- color: var(--ink-soft);-}-.billing-inline-support-actions {- display: flex;- align-items: center;- gap: 8px;- flex-wrap: nowrap;- margin-top: 10px;-}-.billing-detail-shell {- border: 1px solid var(--line);- border-radius: 12px;- background: #fff;- box-shadow: none;- overflow: hidden;-}-.billing-task-header {- display: flex;- align-items: flex-start;- justify-content: space-between;- gap: 12px;- padding-bottom: 12px;- border-bottom: 1px solid var(--line);-}-.billing-task-header h3 {- margin: 4px 0 0;- font-size: 18px;- line-height: 1.04;- letter-spacing: -0.03em;-}-.billing-task-header p {- margin: 8px 0 0;- max-width: 560px;- font-size: 13px;- line-height: 1.55;- color: var(--ink-soft);-}-.billing-task-body {- display: flex;- flex-direction: column;- gap: 14px;- margin-top: 14px;-}-.billing-brief-card {- padding: 16px;- border: 1px solid var(--line);- border-radius: var(--radius-md);- background: var(--panel-muted);-}-.billing-brief-card-primary {- background: #fff;-}-.billing-brief-card h3 {- margin: 8px 0 0;- font-size: 18px;- line-height: 1.08;- letter-spacing: -0.03em;-}-.billing-brief-card p {- margin: 10px 0 0;- font-size: 14px;- line-height: 1.6;- color: var(--ink-soft);-}-.billing-empty-shell {- display: grid;- grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.92fr);- gap: 12px;- margin-top: 12px;- align-items: start;-}-.billing-empty-intro {- grid-column: 1 / -1;- display: grid;- grid-template-columns: repeat(3, minmax(0, 1fr));- gap: 10px;-}-.billing-empty-intro-item {- display: flex;- flex-direction: column;- gap: 4px;- padding: 10px 12px;- border: 1px solid var(--line);- border-radius: 12px;- background: var(--panel);-}-.billing-empty-intro-item strong {- font-size: 11px;- letter-spacing: 0.08em;- color: var(--accent-strong);-}-.billing-empty-intro-item span {- font-size: 11px;- line-height: 1.45;- color: var(--ink-soft);-}-.billing-empty-primary,-.billing-empty-side {- display: flex;- flex-direction: column;- gap: 12px;- min-width: 0;-}-.billing-empty-section {- display: flex;- flex-direction: column;- gap: 10px;- padding: 12px;- border: 1px solid var(--line);- border-radius: 12px;- background: #fbfcfd;-}-.billing-empty-section-compact {- gap: 8px;-}-.billing-empty-column-title {- font-size: 12px;- font-weight: 800;- letter-spacing: 0.12em;- color: var(--ink-muted);-}-.billing-action-row {- display: grid;- grid-template-columns: minmax(0, 1fr) auto;- align-items: center;- gap: 10px;- padding: 10px 12px;- border: none;- border-top: 1px solid var(--line);- background: #fff;- transition:- border-color 140ms ease,- background 140ms ease,- box-shadow 140ms ease;-}-.billing-action-row:first-child {- border-top: none;-}-.billing-action-row:hover,-.billing-action-row.active {- border-color: rgba(15, 109, 115, 0.28);- background: #f8fbfd;- box-shadow: none;-}-.billing-action-main {- display: flex;- flex-direction: column;- gap: 5px;- min-width: 0;-}-.billing-action-tags {- display: flex;- align-items: center;- justify-content: flex-start;- gap: 6px;-}-.billing-action-tags-tight {- flex-wrap: nowrap;-}-.billing-action-meta-chip {- display: inline-flex;- align-items: center;- min-height: 20px;- padding: 0 8px;- border-radius: 4px;- background: #eef4f8;- color: var(--ink-muted);- font-size: 10px;- font-weight: 700;- letter-spacing: 0.04em;-}-.billing-action-copy {- display: flex;- flex-direction: column;- gap: 2px;-}-.billing-action-copy h3 {- margin: 0;- font-size: 14px;- line-height: 1.16;- letter-spacing: -0.03em;-}-.billing-action-copy p {- margin: 0;- font-size: 11px;- line-height: 1.35;- color: var(--ink-soft);- max-width: 520px;-}-.billing-action-cta {- display: flex;- align-items: center;-}-.billing-action-button {- min-width: 92px;- min-height: 32px;- padding: 0 10px;- border-radius: 8px;- font-size: 11px;- letter-spacing: 0.08em;-}-.billing-panel {- padding: 16px;- border-radius: var(--radius-md);- background: #fff;-}-.billing-panel.visible.auth-panel {- display: block;-}-.billing-empty-points {- display: grid;- grid-template-columns: repeat(2, minmax(0, 1fr));- gap: 10px;-}-.billing-empty-points-stack {- grid-template-columns: 1fr;-}-.billing-empty-support {- margin-top: 2px;- font-size: 13px;- line-height: 1.55;- color: var(--ink-soft);-}-.billing-empty-actions {- display: flex;- align-items: center;- gap: 8px;- flex-wrap: nowrap;- margin-top: 10px;-}-.billing-empty-point {- display: flex;- flex-direction: column;- gap: 3px;- padding: 8px 0 8px 10px;- border-top: 1px solid var(--line);- border-left: 2px solid rgba(15, 118, 110, 0.18);- background: transparent;-}-.billing-empty-point:first-child {- padding-top: 0;- border-top: none;-}-.billing-empty-point strong {- font-size: 11px;- letter-spacing: 0.08em;- color: var(--ink-muted);-}-.billing-empty-point span {- font-size: 11px;- line-height: 1.45;- color: var(--ink-soft);-}-.billing-empty-checklist {- display: flex;- flex-direction: column;- gap: 0;-}-.billing-empty-check {- display: flex;- flex-direction: column;- gap: 3px;- padding: 8px 0 8px 10px;- border-top: 1px solid var(--line);- border-left: 2px solid rgba(154, 52, 18, 0.14);- background: transparent;-}-.billing-empty-check:first-child {- padding-top: 0;- border-top: none;-}-.billing-empty-check strong {- font-size: 12px;- color: var(--ink);-}-.billing-empty-check span {- font-size: 11px;- line-height: 1.5;- color: var(--ink-soft);-}-.billing-empty-flow-list {- display: flex;- flex-direction: column;- gap: 0;-}-.billing-empty-flow {- display: flex;- flex-direction: column;- gap: 3px;- padding: 8px 0 8px 10px;- border-top: 1px solid var(--line);- border-left: 2px solid #dbe5ee;- background: transparent;-}-.billing-empty-flow:first-child {- border-top: none;- padding-top: 0;-}-.billing-empty-flow strong {- font-size: 11px;- letter-spacing: 0.08em;- color: var(--ink-muted);-}-.billing-empty-flow span {- font-size: 11px;- line-height: 1.45;- color: var(--ink-soft);-}-.billing-section-auth {- max-width: 760px;-}-.billing-panel textarea {- min-height: 120px;- resize: vertical;-}-.billing-panel .form-group {- margin-bottom: 14px;-}-.billing-panel .helper-text {- font-size: 13px;-}-.billing-panel .subsection {- margin-top: 18px;-}-.billing-panel .warning {- margin-bottom: 14px;- padding: 24px;- border-radius: var(--radius-sm);- background: var(--warn-soft);- color: var(--warn);-}-.billing-panel .checkbox-row {- display: flex;- align-items: start;- gap: 10px;- margin: 12px 0;-}-.billing-panel .checkbox-row input[type=checkbox] {- width: 18px;- height: 18px;- margin-top: 2px;-}-.billing-status {- display: none;- margin-top: 14px;- padding: 24px;- border-radius: var(--radius-sm);- font-size: 14px;- line-height: 1.6;-}-.billing-status.visible {- display: block;-}-.billing-status.success {- background: var(--success-soft);- color: var(--success);-}-.billing-status.error {- background: var(--danger-soft);- color: var(--danger);-}-.empty-state,-.intro-card {- border-radius: var(--radius-lg);- padding: 26px;-}-.empty-state {- text-align: left;-}-.empty-state p {- margin: 0;- line-height: 1.7;- color: var(--ink-soft);-}-.empty-state-spaced {- margin-top: 8px;-}-.support-copy {- margin-top: 10px !important;-}-.badge {- display: inline-flex;- align-items: center;- min-height: 28px;- padding: 0 10px;- border-radius: 4px;- font-size: 11px;- font-weight: 800;- letter-spacing: 0.08em;-}-.badge-role,-.badge-read_only,-.badge-canceled {- background: #edf1f5;- color: #5b6774;-}-.badge-msp {- background: #d7ecf4;- color: #0d5564;-}-.badge-cloud,-.badge-individual,-.badge-active,-.badge-healthy {- background: var(--success-soft);- color: var(--success);-}-.badge-checking,-.badge-provisioning {- background: var(--accent-soft);- color: var(--accent-strong);-}-.badge-unhealthy,-.badge-failed {- background: var(--danger-soft);- color: var(--danger);-}-.badge-suspended,-.badge-deleting {- background: var(--warn-soft);- color: var(--warn);-}-.spinner {- display: inline-block;- width: 18px;- height: 18px;- border: 2px solid rgba(15, 109, 115, 0.18);- border-top-color: var(--accent);- border-radius: 50%;- animation: spin 0.6s linear infinite;-}-[hidden] {- display: none !important;-}-@keyframes spin {- to {- transform: rotate(360deg);- }-}-.toast {- position: fixed;- right: 24px;- bottom: 24px;- z-index: 100;- display: none;- max-width: 340px;- padding: 14px 18px;- border-radius: var(--radius-lg);- background: #15242c;- color: #fff;- box-shadow: none;-}-.toast.visible {- display: block;-}-.toast.error {- background: #6e1414;-}-@media (max-width: 1180px) {- .account-management-grid,- .access-shell,- .access-review-grid,- .account-overview-secondary,- .overview-task-grid,- .billing-overview-grid,- .billing-shell,- .billing-action-list,- .billing-empty-shell,- .billing-empty-intro,- .billing-empty-points,- .workspace-operations-shell {- grid-template-columns: 1fr;- }- .portal-shell-layout,- .account-command-deck,- .account-overview-brief-strip,- .account-overview-briefing-card {- grid-template-columns: 1fr;- }- .account-overview-next-block {- padding-left: 0;- padding-top: 14px;- border-left: none;- border-top: 1px solid var(--line);- }- .account-metric-strip {- grid-template-columns: repeat(3, minmax(0, 1fr));- }- .portal-shell-nav {- position: static;- }- .workspace-management-content {- grid-template-columns: 1fr;- }- .workspace-management-facts {- grid-template-columns: 1fr;- }- .workspace-list-head {- display: none;- }-}-@media (max-width: 920px) {- .portal-shell-head-row {- grid-template-columns: 1fr;- }- .portal-account-context {- display: grid;- grid-template-columns: minmax(0, 1fr) auto;- gap: 16px;- align-items: start;- padding: 24px 32px 24px;- border-bottom: 1px solid var(--line);- background: var(--panel);- }- .portal-account-context-summary {- grid-template-columns: 1fr;- }- .portal-account-context-row,- .account-stage-header-row {- align-items: start;- flex-direction: column;- }- .workspace-row {- grid-template-columns: 1fr;- }- .workspace-row-heading {- flex-direction: column;- align-items: flex-start;- gap: 3px;- }- .workspace-list-toolbar {- flex-direction: column;- align-items: flex-start;- }- .workspace-operations-detail {- position: static;- }- .account-metric-strip {- grid-template-columns: repeat(2, minmax(0, 1fr));- }-}-@media (max-width: 1024px) {- header {- padding: 14px 16px;- align-items: flex-start;- flex-direction: column;- }- .main {- padding: 18px 14px 40px;- }- .portal-shell-layout,- .portal-support-brief-strip,- .portal-support-runbook-brief,- .portal-support-route-grid {- grid-template-columns: 1fr;- }- .portal-shell-layout {- display: flex;- flex-direction: column;- height: auto;- min-height: 100vh;- }- .portal-support-layout,- .portal-support-runbook-grid {- grid-template-columns: 1fr;- }- .portal-shell-nav {- min-height: auto;- border-right: none;- border-bottom: 1px solid var(--nav-line);- }- .portal-shell-nav-header {- padding: 12px 14px 8px;- }- .portal-shell-nav-title {- font-size: 16px;- }- .portal-shell-nav-support {- display: none;- }- .portal-shell-nav-group {- display: flex;- flex-direction: row;- gap: 8px;- padding: 10px 12px 12px;- overflow-x: auto;- overscroll-behavior-x: contain;- scroll-padding-inline: 12px;- scroll-snap-type: x proximity;- scrollbar-width: none;- }- .portal-shell-nav-group::-webkit-scrollbar {- display: none;- }- .portal-shell-nav-link {- flex: 0 0 auto;- min-width: 118px;- padding: 10px 10px;- scroll-snap-align: start;- }- .portal-shell-nav-row {- align-items: flex-start;- }- .portal-shell-nav-index,- .portal-shell-nav-copy {- display: none;- }- .portal-shell-nav-link:hover,- .portal-shell-nav-link.active {- transform: none;- }- .portal-shell-nav-link.active {- box-shadow: none;- }- .intro-card,- .billing-panel {- padding: 18px;- }- .portal-shell-head,- .portal-account-context,- .portal-content-panel {- padding-left: 16px;- padding-right: 16px;- }- .portal-account-context {- display: grid;- grid-template-columns: minmax(0, 1fr) auto;- gap: 16px;- align-items: start;- padding: 24px 32px 24px;- border-bottom: 1px solid var(--line);- background: var(--panel);- }- .portal-account-context-copy {- gap: 4px;- }- .portal-account-context-meta,- .portal-account-context-copy p {- display: none;- }- .portal-account-context-row {- gap: 6px;- }- .portal-account-context-row h2 {- font-size: 18px;- line-height: 1.02;- }- .portal-account-context-chips {- gap: 6px;- }- .account-context-chip {- min-height: auto;- padding: 0 7px;- font-size: 10px;- }- .portal-account-context-summary {- display: grid;- grid-template-columns: repeat(3, minmax(0, 1fr));- gap: 8px;- width: 100%;- padding: 0;- border: none;- border-radius: 0;- background: transparent;- box-shadow: none;- }- .portal-account-context-stat {- gap: 2px;- padding: 8px 0 0;- border-top: 1px solid var(--line);- border-radius: 0;- }- .portal-account-context-stat + .portal-account-context-stat {- border-left: none;- }- .portal-account-context-stat span {- font-size: 9px;- }- .portal-account-context-stat strong {- font-size: 11px;- }- .workspace-operations-shell-selected .workspace-operations-detail,- .workspace-operations-shell-form-open .workspace-operations-detail {- order: 1;- }- .workspace-operations-shell-selected .workspace-operations-main,- .workspace-operations-shell-form-open .workspace-operations-main {- order: 2;- }- .access-shell-job-open .access-shell-detail {- order: 1;- }- .access-shell-job-open .access-shell-main {- order: 2;- }- .workspace-management-header,- .access-management-header,- .billing-header,- .billing-action-tags,- .billing-task-header {- flex-direction: column;- align-items: flex-start;- }- .account-action-strip {- flex-direction: column;- align-items: stretch;- }- .workspace-actions,- .workspace-actions form,- .workspace-actions .btn-primary,- .workspace-actions .btn-secondary {- width: 100%;- }- .access-member-row,- .access-roster-head {- grid-template-columns: 1fr;- }- .access-control-cell {- width: 100%;- }- .access-control-cell-access {- justify-content: start;- width: 100%;- }- .billing-action-row,- .billing-shell,- .billing-empty-shell,- .billing-empty-intro,- .access-shell,- .workspace-operations-shell,- .overview-task-grid,- .account-overview-card,- .account-overview-secondary,- .overview-quick-actions,- .billing-empty-points {- grid-template-columns: 1fr;- }- .billing-action-cta,- .billing-action-button {- width: 100%;- justify-content: start;- }-}-.account-context-chip + .account-context-chip::before {- content: "\2022";- margin-right: 8px;- color: var(--line-strong);-}-.portal-shell-summary-pill + .portal-shell-summary-pill::before {- content: "\b7";- margin-right: 12px;- font-size: 16px;- color: var(--line-strong);-}-.portal-shell-summary-pill {- padding: 0;- min-height: auto;- font-size: 13px;- color: var(--ink-soft);-}-.overview-task-summary-pill + .overview-task-summary-pill::before {- content: "\2022";- margin-right: 12px;- color: var(--line-strong);-}-.section-context-chip + .section-context-chip::before {- content: "\2022";- margin-right: 8px;- color: var(--line-strong);-}-.workspace-actions {- display: flex !important;- flex-direction: row !important;- flex-wrap: nowrap !important;- gap: 12px !important;- align-items: center !important;- justify-content: flex-end !important;-}-.workspace-actions form {- margin: 0 !important;- display: flex !important;-}-.workspace-actions .btn-primary,-.workspace-actions .btn-secondary {- min-width: 0 !important;- white-space: nowrap !important;- width: auto !important;-}-:root {- --font-ui:- "Roboto",- -apple-system,- BlinkMacSystemFont,- "Segoe UI",- Helvetica,- Arial,- sans-serif,- "Apple Color Emoji",- "Segoe UI Emoji",- "Segoe UI Symbol";- --font-display:- "Roboto",- -apple-system,- BlinkMacSystemFont,- "Segoe UI",- Helvetica,- Arial,- sans-serif;- --bg: #f3f5f7;- --panel: #ffffff;- --panel-strong: #f7f9fc;- --panel-muted: #eef2f6;- --ink: #171a1f;- --ink-soft: #4c5663;- --ink-muted: #6b7480;- --line: #dbe2ea;- --line-strong: #c5cfda;- --accent: #0b57d0;- --accent-strong: #0842a0;- --accent-soft: #e8f0fe;- --warn: #9a3412;- --warn-soft: #ffedd5;- --danger: #b3261e;- --danger-soft: #f9dedc;- --success: #146c2e;- --success-soft: #e6f4ea;- --radius-sm: 10px;- --radius-md: 12px;- --radius-lg: 16px;-}-body {- background: var(--bg);-}-header {- padding: 10px 20px;- border-bottom-color: var(--line);- background: rgba(252, 253, 255, 0.96);- backdrop-filter: blur(10px);-}-header .brand {- font-size: 15px;- font-weight: 700;- letter-spacing: -0.02em;-}-.header-account-chip {- gap: 8px;- padding: 3px 4px 3px 12px;- border-color: var(--line);- border-radius: 999px;-}-.header-account-email {- font-size: 12px;- color: var(--ink-soft);-}-.main {- max-width: 1360px;- padding: 24px 24px 48px;-}-header .logout-btn,-.btn-secondary,-.link-button {- border-color: var(--line-strong);- border-radius: 999px;- padding: 8px 14px;- font-size: 13px;- font-weight: 600;-}-.btn-primary,-.btn-danger,-.btn-remove {- border-radius: 999px;- padding: 9px 15px;- font-size: 13px;- font-weight: 600;-}-.btn-primary {- background: var(--accent);-}-.btn-primary:hover {- background: var(--accent-strong);-}-.btn-danger {- background: var(--danger-soft);- color: var(--danger);-}-.portal-shell-layout {- grid-template-columns: 220px minmax(0, 1fr);- gap: 24px;- background: transparent;- min-height: auto;-}-.portal-shell-nav {- position: sticky;- top: 72px;- align-self: start;- height: auto;- border: none;- background: transparent;-}-.portal-shell-nav-header {- gap: 4px;- padding: 4px 0 12px;- border-bottom: none;-}-.portal-shell-nav-eyebrow {- font-size: 11px;- font-weight: 700;- letter-spacing: 0.08em;- color: var(--ink-muted);-}-.portal-shell-nav-title {- font-size: 15px;- font-weight: 700;- color: var(--ink);-}-.portal-shell-nav-support,-.portal-shell-nav-copy,-.portal-shell-nav-index,-.portal-account-context-chips {- display: none !important;-}-.portal-shell-nav-group {- display: flex;- flex-direction: column;- gap: 6px;- padding: 0;- overflow: visible;- scroll-snap-type: none;-}-.portal-shell-nav-link {- min-width: 0;- padding: 12px 14px;- border: 1px solid transparent;- border-radius: 14px;- background: transparent;- color: var(--ink-soft);-}-.portal-shell-nav-link:hover {- background: #eceff3;- border-color: transparent;-}-.portal-shell-nav-link.active {- background: #fff;- border-color: var(--line);- color: var(--ink);-}-.portal-shell-nav-row {- align-items: center;- justify-content: space-between;- gap: 12px;-}-.portal-shell-nav-label {- font-size: 14px;- font-weight: 600;-}-.portal-shell-nav-badge {- min-height: auto;- padding: 0;- border: none;- border-radius: 0;- background: transparent;- font-size: 12px;- font-weight: 500;- color: var(--ink-muted);-}-.portal-shell-main {- display: flex;- flex-direction: column;- gap: 24px;-}-.portal-account-context {- display: grid;- grid-template-columns: minmax(0, 1fr) 320px;- gap: 24px;- align-items: start;- padding: 22px 24px;- border: 1px solid var(--line);- border-radius: var(--radius-lg);- background: var(--panel);-}-.portal-account-context-copy {- display: flex;- flex-direction: column;- gap: 8px;-}-.portal-account-context-meta {- display: flex;- align-items: center;- gap: 8px;- font-size: 12px;- color: var(--ink-muted);-}-.portal-account-context-separator {- color: var(--line-strong);-}-.portal-account-context-row-title h2 {- margin: 0;- font-size: 32px;- line-height: 1.05;- letter-spacing: -0.045em;- font-weight: 700;-}-.portal-account-context-copy p {- margin: 0;- max-width: 760px;- font-size: 14px;- line-height: 1.55;- color: var(--ink-soft);-}-.portal-account-context-summary {- display: grid;- grid-template-columns: 1fr;- gap: 14px;- min-width: 0;- padding-left: 24px;- border-left: 1px solid var(--line);-}-.portal-account-context-stat {- gap: 4px;- padding: 0;- border: none;- border-radius: 0;-}-.portal-account-context-stat span {- font-size: 12px;- color: var(--ink-muted);-}-.portal-account-context-stat strong {- font-size: 15px;- font-weight: 600;- color: var(--ink);-}-.portal-content-panel,-.account-content-panel,-.account-content-panel-overview,-.account-content-panel-workspaces,-.account-content-panel-access,-.portal-support-panel {- padding: 0;- border: none;- background: transparent;- box-shadow: none;-}-.account-panel-kicker,-.billing-card-kicker,-.portal-shell-head-kicker {- color: var(--ink-muted);- font-size: 11px;- font-weight: 700;- letter-spacing: 0.08em;- text-transform: uppercase;-}-.account-stage-header,-.billing-header {- display: grid;- grid-template-columns: minmax(0, 1fr);- gap: 10px;- margin-bottom: 16px;-}-.account-stage-header h3,-.billing-header h2,-.portal-support-panel h2 {- margin: 4px 0 0;- font-size: 28px;- line-height: 1.08;- letter-spacing: -0.035em;- font-weight: 700;-}-.account-stage-header p,-.billing-header p,-.billing-note,-.portal-support-panel > p {- margin: 8px 0 0;- font-size: 14px;- line-height: 1.55;- color: var(--ink-soft);-}-.section-context-strip {- display: flex;- flex-wrap: wrap;- gap: 10px;- margin-top: 12px;-}-.section-context-chip {- padding: 0;- border: none;- border-radius: 0;- background: transparent;- font-size: 12px;- font-weight: 500;- color: var(--ink-muted);-}-.section-context-chip + .section-context-chip::before {- content: "\2022";- margin-right: 10px;- color: var(--line-strong);-}-.overview-task-grid {- grid-template-columns: repeat(3, minmax(0, 1fr));- gap: 16px;-}-.overview-task-card,-.billing-task-card,-.portal-support-route-card,-.portal-support-runbook,-.workspace-list-wrap,-.workspace-management-panel,-.access-roster,-.access-task-panel,-.access-invite-panel,-.access-job-note-panel,-.access-policy-panel,-.billing-shell-main,-.billing-shell-detail,-.billing-panel {- border: 1px solid var(--line);- border-radius: var(--radius-lg);- background: var(--panel);- box-shadow: none;-}-.overview-task-card,-.billing-task-card,-.portal-support-route-card,-.portal-support-runbook,-.billing-shell-main,-.billing-shell-detail,-.billing-panel {- padding: 20px;-}-.overview-task-card h4,-.billing-task-card h3,-.portal-support-route-card h3,-.portal-support-runbook h3,-.billing-panel h3 {- margin: 0;- font-size: 20px;- line-height: 1.15;- letter-spacing: -0.02em;- font-weight: 650;-}-.overview-task-card p,-.billing-task-card p,-.billing-task-note,-.billing-task-meta,-.portal-support-route-card p,-.portal-support-runbook p,-.billing-action-copy p,-.billing-action-meta {- font-size: 14px;- line-height: 1.55;- color: var(--ink-soft);-}-.overview-task-list,-.billing-task-points,-.portal-support-points,-.portal-support-runbook-list {- gap: 0;-}-.overview-task-item,-.billing-task-point,-.portal-support-point,-.portal-support-runbook-step {- padding: 12px 0;- border-top: 1px solid var(--line);-}-.overview-task-item:first-child,-.billing-task-point:first-child,-.portal-support-point:first-child,-.portal-support-runbook-step:first-child {- padding-top: 0;- border-top: none;-}-.overview-task-actions,-.billing-task-actions,-.portal-support-actions,-.billing-inline-support-actions {- gap: 8px;- flex-wrap: wrap;-}-.billing-task-meta {- padding-top: 12px;- border-top: 1px solid var(--line);-}-.workspace-operations-shell,-.access-shell,-.billing-shell,-.portal-support-layout {- display: grid;- grid-template-columns: minmax(0, 1fr) 360px;- gap: 16px;-}-.workspace-list-wrap,-.access-roster {- overflow: hidden;-}-.workspace-list-toolbar,-.access-panel-heading {- padding: 18px 20px 12px;-}-.workspace-list-head,-.access-roster-head {- background: var(--panel-strong);- font-size: 12px;- font-weight: 600;- color: var(--ink-muted);-}-.workspace-list-head {- display: grid;- grid-template-columns: minmax(0, 1.45fr) 140px 140px 180px;- gap: 16px;- padding: 10px 20px;- border-top: 1px solid var(--line);- border-bottom: 1px solid var(--line);-}-.workspace-row {- display: grid;- grid-template-columns: minmax(0, 1.45fr) 140px 140px 180px;- gap: 16px;- align-items: center;- padding: 16px 20px;- border: none;- border-top: 1px solid var(--line);- border-radius: 0;- background: var(--panel);-}-.workspace-row:first-child {- border-top: none;-}-.workspace-row-primary {- min-width: 0;-}-.workspace-row-heading {- display: flex;- flex-direction: column;- gap: 4px;-}-.workspace-name {- margin: 0;- font-size: 15px;- font-weight: 600;-}-.workspace-meta,-.workspace-row-note {- color: var(--ink-soft);-}-.workspace-meta {- font-size: 12px;-}-.workspace-row-note {- font-size: 13px;- line-height: 1.5;-}-.workspace-actions {- justify-content: flex-start !important;- gap: 8px !important;-}-.badge {- display: inline-flex;- align-items: center;- justify-content: center;- min-height: 28px;- padding: 0 10px;- border: 1px solid var(--line);- border-radius: 999px;- background: var(--panel-strong);- font-size: 12px;- font-weight: 600;- color: var(--ink-soft);-}-.badge-healthy {- border-color: #cbe6d0;- background: #edf7ef;- color: #24693d;-}-.badge-unhealthy,-.badge-failed {- border-color: #f0c2bf;- background: #fce8e6;- color: #8b1f1f;-}-.badge-checking,-.badge-provisioning,-.badge-suspended {- border-color: #d7dce2;- background: #f2f4f7;- color: #5e6773;-}-.workspace-management-panel,-.access-task-panel {- align-self: start;-}-.workspace-management-header,-.access-task-header,-.billing-task-header {- display: flex;- align-items: flex-start;- justify-content: space-between;- gap: 16px;-}-.workspace-management-content,-.access-task-body {- display: flex;- flex-direction: column;- gap: 16px;-}-.access-management-panel {- padding: 0;- border: none;- background: transparent;-}-.access-management-header {- padding: 0;- margin-bottom: 16px;-}-.access-management-stats {- display: grid;- grid-template-columns: repeat(4, minmax(0, 1fr));- gap: 12px;- margin-bottom: 16px;-}-.access-stat-card {- display: flex;- flex-direction: column;- gap: 4px;- padding: 14px 16px;- border: 1px solid var(--line);- border-radius: 14px;- background: var(--panel);-}-.access-stat-label {- font-size: 12px;- color: var(--ink-muted);-}-.access-stat-value {- font-size: 15px;- font-weight: 600;- color: var(--ink);-}-.access-task-strip {- display: flex;- flex-wrap: wrap;- gap: 8px;- margin-top: 12px;-}-.access-task-button {- appearance: none;- border: 1px solid var(--line);- border-radius: 999px;- background: var(--panel);- padding: 8px 12px;- font: inherit;- font-size: 13px;- font-weight: 500;- color: var(--ink);- cursor: pointer;-}-.access-task-button.active {- border-color: #bfd3ff;- background: var(--accent-soft);- color: var(--accent-strong);-}-.access-roster {- padding: 0;-}-.access-roster-head {- display: grid;- grid-template-columns: minmax(0, 1fr) 180px 160px;- gap: 16px;- padding: 10px 20px;- border-top: 1px solid var(--line);- border-bottom: 1px solid var(--line);-}-.access-roster-head-readonly {- grid-template-columns: minmax(0, 1fr) 180px;-}-.access-roster-list {- padding: 0 20px 16px;-}-.access-member-row {- display: grid;- grid-template-columns: minmax(0, 1fr) 180px 160px;- gap: 16px;- align-items: center;- padding: 14px 0;- border-bottom: 1px solid var(--line);-}-.access-member-row-readonly {- grid-template-columns: minmax(0, 1fr) 180px;-}-.access-member-row:last-child {- border-bottom: none;-}-.access-inline-role-badge {- display: none;-}-.access-member-email {- font-size: 14px;- font-weight: 500;-}-.access-member-caption {- font-size: 13px;- line-height: 1.5;- color: var(--ink-soft);-}-.access-control-cell {- justify-content: flex-start;-}-.access-role-badge,-.access-control-locked {- padding: 0;- border: none;- background: transparent;- color: var(--ink);- font-size: 13px;- font-weight: 500;-}-.access-role-select {- width: 100%;- min-height: 40px;- padding: 0 12px;- border: 1px solid var(--line);- border-radius: 10px;- background: #fff;- font: inherit;-}-.billing-header {- grid-template-columns: minmax(0, 1fr) 320px;- align-items: end;-}-.billing-overview-grid {- gap: 16px;- margin-bottom: 16px;-}-.billing-shell-main-head {- display: flex;- flex-direction: column;- gap: 6px;- margin-bottom: 4px;-}-.billing-action-list {- display: flex;- flex-direction: column;-}-.billing-action-row {- display: grid;- grid-template-columns: minmax(0, 1fr) auto;- gap: 16px;- align-items: center;- padding: 16px 0;- border: none;- border-top: 1px solid var(--line);- border-radius: 0;- background: transparent;-}-.billing-action-row:first-child {- padding-top: 0;- border-top: none;-}-.billing-action-main {- display: flex;- flex-direction: column;- gap: 8px;-}-.billing-action-copy h3 {- margin: 0;- font-size: 16px;- font-weight: 600;-}-.billing-action-copy p {- margin: 4px 0 0;-}-.billing-action-meta {- font-size: 12px;- color: var(--ink-muted);-}-.billing-action-cta,-.billing-action-button {- width: auto;- justify-content: center;-}-.billing-inline-support {- margin-top: 20px;- padding-top: 16px;- border-top: 1px solid var(--line);-}-.portal-support-panel > .section-context-strip {- margin-bottom: 16px;-}-.portal-support-route-grid {- display: grid;- gap: 16px;-}-.portal-support-link {- font-size: 13px;- color: var(--accent);- text-decoration: none;-}-.portal-support-link:hover {- text-decoration: underline;-}-.portal-auth-shell {- display: grid;- grid-template-columns: minmax(0, 1fr) 420px;- gap: 24px;- align-items: start;- min-height: calc(100vh - 140px);-}-.portal-auth-intro,-.portal-auth-card {- border: 1px solid var(--line);- border-radius: var(--radius-lg);- background: var(--panel);-}-.portal-auth-intro {- display: flex;- flex-direction: column;- gap: 16px;- padding: 30px 32px;-}-.portal-auth-intro h1 {- margin: 0;- max-width: 12ch;- font-family: var(--font-display);- font-size: 56px;- line-height: 0.94;- letter-spacing: -0.06em;- color: var(--ink);-}-.portal-auth-intro p {- margin: 0;- max-width: 60ch;- font-size: 15px;- line-height: 1.65;- color: var(--ink-soft);-}-.portal-auth-scope-list {- display: grid;- gap: 0;- margin-top: 6px;-}-.portal-auth-scope-row {- display: grid;- grid-template-columns: 112px minmax(0, 1fr);- gap: 16px;- align-items: start;- padding: 14px 0;- border-top: 1px solid var(--line);-}-.portal-auth-scope-row h3,-.portal-auth-card h2 {- margin: 0;- color: var(--ink);-}-.portal-auth-scope-row h3 {- font-size: 13px;- font-weight: 700;- letter-spacing: 0;-}-.portal-auth-scope-row p {- margin: 0;- max-width: none;- font-size: 14px;- line-height: 1.55;-}-.portal-auth-panel {- position: sticky;- top: 84px;-}-.portal-auth-card {- display: flex;- flex-direction: column;- gap: 14px;- padding: 24px;-}-.portal-auth-card h2 {- font-family: var(--font-display);- font-size: 28px;- line-height: 1.05;- letter-spacing: -0.045em;-}-.portal-auth-card > p {- margin: 0;- font-size: 14px;- line-height: 1.6;- color: var(--ink-soft);-}-.portal-auth-form-group {- display: flex;- flex-direction: column;- gap: 8px;- margin-top: 4px;-}-.portal-auth-form-group label {- font-size: 13px;- font-weight: 600;- line-height: 1.4;- color: var(--ink);-}-.portal-auth-form-group input {- width: 100%;- min-height: 44px;- padding: 0 14px;- border: 1px solid var(--line-strong);- border-radius: 12px;- background: #fff;- color: var(--ink);- font: inherit;- box-shadow: none;-}-.portal-auth-form-group input::placeholder {- color: #8a94a3;-}-.portal-auth-form-group input:focus {- outline: none;- border-color: var(--accent);- box-shadow: 0 0 0 3px rgba(11, 87, 208, 0.12);-}-.portal-auth-actions {- margin-top: 2px;-}-.portal-auth-actions .btn-primary {- min-width: 160px;-}-.portal-auth-secondary-action {- margin: -4px 0 0;- font-size: 13px;- line-height: 1.5;- color: var(--ink-soft);-}-.portal-auth-secondary-action a {- color: var(--accent);- font-weight: 600;- text-decoration: none;-}-.portal-auth-secondary-action a:hover {- text-decoration: underline;-}-.form-group {- display: flex;- flex-direction: column;- gap: 8px;-}-.form-group label {- font-size: 13px;- font-weight: 600;- line-height: 1.4;- color: var(--ink);-}-.form-group input,-.form-group textarea,-.form-group select {- width: 100%;- min-height: 44px;- padding: 0 14px;- border: 1px solid var(--line-strong);- border-radius: 12px;- background: #fff;- color: var(--ink);- font: inherit;- box-shadow: none;-}-.form-group textarea {- min-height: 120px;- padding-top: 12px;- padding-bottom: 12px;- resize: vertical;-}-.form-group input::placeholder,-.form-group textarea::placeholder {- color: #8a94a3;-}-.form-group input:focus,-.form-group textarea:focus,-.form-group select:focus {- outline: none;- border-color: var(--accent);- box-shadow: 0 0 0 3px rgba(11, 87, 208, 0.12);-}-@media (max-width: 960px) {- .main {- padding: 16px 16px 40px;- }- .portal-shell-layout {- grid-template-columns: 1fr;- gap: 16px;- }- .portal-shell-nav {- position: static;- }- .portal-shell-nav-header {- padding-bottom: 8px;- }- .portal-shell-nav-group {- flex-direction: row;- gap: 8px;- overflow-x: auto;- overscroll-behavior-x: contain;- scrollbar-width: none;- }- .portal-shell-nav-group::-webkit-scrollbar {- display: none;- }- .portal-shell-nav-link {- flex: 0 0 auto;- white-space: nowrap;- }- .portal-account-context,- .billing-header,- .workspace-operations-shell,- .access-shell,- .billing-shell,- .portal-auth-shell,- .portal-support-layout {- grid-template-columns: 1fr;- }- .portal-auth-shell {- min-height: 0;- }- .portal-auth-panel {- position: static;- order: -1;- }- .portal-auth-intro,- .portal-auth-card {- padding: 22px 22px 24px;- }- .portal-auth-intro h1 {- max-width: 9ch;- font-size: 42px;- }- .portal-auth-scope-row {- grid-template-columns: 1fr;- gap: 6px;- }- .portal-account-context {- gap: 16px;- padding: 18px 18px 20px;- }- .portal-account-context-summary {- grid-template-columns: repeat(3, minmax(0, 1fr));- padding-left: 0;- padding-top: 12px;- border-left: none;- border-top: 1px solid var(--line);- }- .portal-account-context-row-title h2,- .account-stage-header h3,- .billing-header h2,- .portal-support-panel h2 {- font-size: 24px;- }- .overview-task-grid,- .billing-overview-grid {- grid-template-columns: 1fr;- }- .access-management-stats {- grid-template-columns: repeat(2, minmax(0, 1fr));- }- .workspace-list-head {- display: none;- }- .workspace-row {- grid-template-columns: 1fr;- gap: 12px;- }- .workspace-row-status-cell {- display: flex;- justify-content: flex-start;- }- .access-roster-head,- .access-member-row,- .access-member-row-readonly {- grid-template-columns: 1fr;- }- .billing-action-row {- grid-template-columns: 1fr;- }- .billing-action-cta,- .billing-action-button {- width: 100%;- justify-content: flex-start;- }-}-@media (max-width: 640px) {- header {- padding: 8px 12px;- }- .main {- padding: 12px 12px 32px;- }- .header-account-email {- max-width: 140px;- overflow: hidden;- text-overflow: ellipsis;- white-space: nowrap;- }- .portal-account-context-summary {- grid-template-columns: 1fr;- }- .portal-auth-intro,- .portal-auth-card {- padding: 18px 18px 20px;- }- .portal-auth-intro h1,- .portal-auth-card h2 {- font-size: 24px;- line-height: 1.08;- }- .portal-auth-intro p,- .portal-auth-scope-row p,- .portal-auth-card > p {- font-size: 14px;- }- .portal-auth-actions .btn-primary {- width: 100%;- justify-content: center;- }-}-.portal-shell-main {- width: min(1080px, calc(100vw - 48px));- margin: 0 auto;- display: flex;- flex-direction: column;- gap: 18px;- padding: 10px 0 40px;-}-.portal-shell-main > .portal-content-panel {- display: none !important;- width: 100%;-}-.portal-shell[data-shell-section=workspaces] .portal-content-panel-workspaces,-.portal-shell[data-shell-section=access] .portal-content-panel-access,-.portal-shell[data-shell-section=billing] .portal-content-panel-billing,-.portal-shell[data-shell-section=support] .portal-content-panel-support,-.portal-shell[data-shell-section=overview] .portal-content-panel-overview {- display: block !important;-}-.portal-account-context {- display: block;- padding: 0 0 14px;- border: none;- border-bottom: 1px solid var(--line);- border-radius: 0;- background: transparent;-}-.portal-account-context-copy {- gap: 6px;-}-.portal-account-context-meta {- gap: 8px;- flex-wrap: wrap;-}-.portal-account-context-separator {- color: var(--line-strong);-}-.portal-account-context-row-title h2 {- font-size: 32px;- line-height: 1.02;- letter-spacing: -0.045em;-}-.portal-account-context-copy p {- max-width: 760px;- font-size: 14px;- line-height: 1.5;-}-.portal-account-context-summary {- display: none !important;-}-.portal-shell-nav {- position: static;- top: auto;- display: flex;- align-items: flex-end;- justify-content: space-between;- gap: 20px;- border: none;- border-bottom: 1px solid var(--line);- background: transparent;-}-.portal-shell-nav-header {- display: none !important;-}-.portal-shell-nav-group {- display: flex;- flex-direction: row;- gap: 10px;- padding: 0 0 6px;- overflow-x: auto;- overscroll-behavior-x: contain;- scrollbar-width: none;-}-.portal-shell-nav-group::-webkit-scrollbar {- display: none;-}-.portal-shell-nav-group-primary {- flex: 1 1 auto;- min-width: 0;-}-.portal-shell-nav-group-utility {- flex: 0 0 auto;- justify-content: flex-end;-}-.portal-shell-nav-link {- min-width: 0;- padding: 0 8px 10px;- border: none;- border-bottom: 2px solid transparent;- border-radius: 0;- background: transparent;- color: var(--ink-muted);-}-.portal-shell-nav-link:hover {- background: transparent;- color: var(--ink);-}-.portal-shell-nav-link.active {- border: none;- border-bottom: 2px solid var(--accent);- background: transparent;- color: var(--ink);-}-.portal-shell-nav-link-utility {- color: var(--ink-soft);-}-.portal-shell-nav-link-utility.active {- border-bottom-color: var(--line-strong);-}-.portal-shell-nav-row {- justify-content: flex-start;- gap: 0;-}-.portal-shell-nav-label {+.billing-panel h3 {+ margin: 0 0 8px;font-size: 14px;font-weight: 600;}-.portal-shell-nav-link-utility .portal-shell-nav-label {+.billing-panel p {+ margin: 0 0 8px;font-size: 13px;- font-weight: 500;-}-.portal-shell-nav-badge {- display: none !important;-}-.portal-content-panel,-.account-content-panel,-.account-content-panel-overview,-.account-content-panel-workspaces,-.account-content-panel-access,-.portal-support-panel {- padding: 0;- border: none;- background: transparent;- box-shadow: none;+ color: var(--ink-secondary);}-.account-surface + .account-surface {- margin-top: 28px;+.billing-panel .helper-text {+ font-size: 13px;+ color: var(--ink-muted);+ margin-top: 8px;}-.account-stage-header,-.billing-header {- display: grid;- grid-template-columns: minmax(0, 1fr);- gap: 10px;- margin-bottom: 14px;+.billing-panel .helper-text a {+ color: var(--accent);}-.account-stage-header h3,-.billing-header h2,-.portal-support-panel h2 {- font-size: 26px;- line-height: 1.08;- letter-spacing: -0.035em;+.billing-panel .subsection {+ margin-top: 16px;+ padding: 16px;+ border: 1px solid var(--border-muted);+ border-radius: var(--radius);}-.account-stage-header p,-.billing-header p,-.billing-note,-.portal-support-panel p {- max-width: 760px;- font-size: 14px;- line-height: 1.5;+.billing-panel .warning {+ padding: 12px;+ border-radius: var(--radius);+ background: var(--warn-subtle);+ color: var(--warn);+ margin-bottom: 12px;+ font-size: 13px;}-.section-context-strip {- gap: 0;- margin-top: 8px;+.billing-panel .checkbox-row {+ display: flex;+ align-items: flex-start;+ gap: 8px;+ margin: 8px 0;}-.section-context-chip {- font-size: 12px;+.billing-panel .checkbox-row input[type=checkbox] {+ width: 16px;+ height: 16px;+ margin-top: 2px;}-.section-context-chip + .section-context-chip::before {- margin-right: 8px;+.billing-panel textarea {+ min-height: 80px;+ resize: vertical;}-.overview-task-grid-compact {+.billing-task-header {display: flex;- flex-direction: column;- gap: 0;- overflow: hidden;- border: 1px solid var(--line);- border-radius: 14px;- background: #fff;-}-.overview-task-grid-compact .overview-task-card {- border: 0;- border-top: 1px solid var(--line);- border-radius: 0;- background: transparent;- padding: 16px 18px;+ align-items: flex-start;+ justify-content: space-between;+ gap: 12px;+ padding-bottom: 12px;+ border-bottom: 1px solid var(--border-muted);+ margin-bottom: 12px;}-.overview-task-grid-compact .overview-task-card:first-child {- border-top: none;+.billing-task-header h3 {+ margin: 0;+ font-size: 14px;+ font-weight: 600;}-.workspace-list-wrap,-.workspace-management-panel,-.access-roster,-.access-task-panel,-.access-invite-panel,-.access-job-note-panel,-.access-policy-panel,-.billing-surface-block,-.billing-shell-main,-.billing-shell-detail,-.billing-panel,-.portal-support-simple-card {- border: 1px solid var(--line);- border-radius: 14px;- background: #fff;+.billing-task-header p {+ margin: 4px 0 0;+ font-size: 13px;+ color: var(--ink-secondary);+ max-width: 480px;}-.workspace-operations-shell,-.access-shell,-.billing-shell {- grid-template-columns: minmax(0, 1fr);- gap: 14px;+.billing-task-body {+ display: flex;+ flex-direction: column;+ gap: 12px;}-.workspace-list-wrap,-.access-roster,-.billing-surface-block,-.portal-support-simple-card {- overflow: hidden;+.billing-task-note {+ font-size: 13px;+ color: var(--ink-secondary);}-.workspace-list-toolbar,-.access-panel-heading {- padding: 14px 18px 8px;+.billing-status {+ display: none;+ margin-top: 8px;+ padding: 10px 12px;+ border-radius: var(--radius);+ font-size: 13px;}-.workspace-list-head {- grid-template-columns: minmax(0, 1.7fr) 116px 116px 168px;- gap: 12px;- padding: 9px 18px;+.billing-status.visible {+ display: block;}-.workspace-row {- grid-template-columns: minmax(0, 1.7fr) 116px 116px 168px;- gap: 12px;- padding: 14px 18px;+.billing-status.success {+ background: var(--success-subtle);+ color: var(--success);}-.workspace-actions {- flex-wrap: wrap;- justify-content: flex-start !important;+.billing-status.error {+ background: var(--danger-subtle);+ color: var(--danger);}-.access-management-header {- margin-bottom: 12px;+.billing-result {+ margin-top: 12px;+ padding: 12px;+ border: 1px solid var(--border-muted);+ border-radius: var(--radius);+ background: var(--bg-subtle);}-.access-management-stats {+.billing-result label {display: block;- margin-bottom: 10px;-}-.access-stat-summary {- padding: 0 0 10px;+ margin-bottom: 4px;font-size: 13px;font-weight: 500;- color: var(--ink-muted);-}-.access-stat-summary-error {- color: var(--danger);}-.access-shell-main,-.access-roster-column,-.access-roster {+.billing-result textarea {width: 100%;+ min-height: 60px;+ padding: 8px;+ border: 1px solid var(--border);+ border-radius: var(--radius);+ font: inherit;+ font-size: 13px;+ resize: vertical;}-.access-task-strip {+.result-grid {+ display: grid;+ grid-template-columns: repeat(2, 1fr);gap: 8px;- margin-top: 12px;-}-.access-task-button {- border-radius: 10px;-}-.access-task-button.active,-.access-task-button.is-active {- border-color: var(--accent);- background: #edf3fe;- color: var(--accent);-}-.access-roster-list {- padding: 0 18px 10px;-}-.access-roster-head {- padding: 9px 18px;+ margin-top: 8px;}-.access-member-row {- padding: 12px 0;+.result-meta-label {+ font-size: 12px;+ color: var(--ink-muted);}-.billing-header {- grid-template-columns: minmax(0, 1fr);- align-items: start;+.result-meta-value {+ font-size: 13px;+ color: var(--ink);}-.billing-note {+.portal-support-panel {padding: 0;border: none;+ border-radius: 0;+ background: transparent;}-.billing-surface-block {- padding: 0;-}-.billing-surface-block + .billing-surface-block {- margin-top: 14px;-}-.billing-surface-block-empty {- padding: 18px;-}-.billing-surface-header {- padding: 18px 18px 10px;-}-.billing-action-list-surface {- display: flex;- flex-direction: column;-}-.billing-action-row-surface {- padding: 16px 18px;-}-.billing-action-row {- padding: 14px 0;+.portal-support-panel h2 {+ margin: 0 0 4px;+ font-size: 16px;+ font-weight: 600;}-.portal-support-simple {- max-width: 880px;+.portal-support-panel > p,+.portal-support-panel p {+ margin: 0 0 12px;+ font-size: 13px;+ color: var(--ink-secondary);}.portal-support-simple-card {padding: 0;+ border: none;+ background: transparent;}.portal-support-simple-list {display: flex;flex-direction: column;+ border: 1px solid var(--border);+ border-radius: var(--radius);+ overflow: hidden;}.portal-support-simple-row {display: grid;- grid-template-columns: 160px minmax(0, 1fr);- gap: 16px;- padding: 14px 18px;- border-top: 1px solid var(--line);+ grid-template-columns: 120px minmax(0, 1fr);+ gap: 12px;+ padding: 8px 16px;+ border-top: 1px solid var(--border-muted);+ background: var(--bg);}.portal-support-simple-row:first-child {border-top: none;}.portal-support-simple-row strong {font-size: 13px;+ font-weight: 600;color: var(--ink);}.portal-support-simple-row span {- font-size: 14px;- line-height: 1.5;- color: var(--ink-soft);+ font-size: 13px;+ color: var(--ink-secondary);}.portal-support-simple-actions {display: flex;- flex-wrap: wrap;- gap: 10px;- padding: 16px 18px;- border-top: 1px solid var(--line);- background: #fafbfc;-}-@media (max-width: 960px) {- .portal-shell-main {- width: min(100%, calc(100vw - 32px));- gap: 16px;- }- .portal-shell-nav {- flex-direction: column;- align-items: stretch;- gap: 4px;- }- .portal-shell-nav-group {- gap: 8px;- }- .portal-shell-nav-group-utility {- justify-content: flex-start;- }- .portal-account-context {- padding-bottom: 12px;- }- .portal-account-context-row-title h2,- .account-stage-header h3,- .billing-header h2,- .portal-support-panel h2 {- font-size: 24px;- }- .portal-support-simple-row {- grid-template-columns: 1fr;- gap: 6px;- }+ gap: 8px;+ padding-top: 12px;}-@media (max-width: 640px) {- .portal-shell-main {- width: min(100%, calc(100vw - 20px));- }- .portal-shell-nav-link {- padding: 0 6px 8px;- }- .portal-shell-nav-link-utility {- padding-bottom: 6px;- }- .portal-account-context-row-title h2 {- font-size: 26px;- }- .access-management-stats {- grid-template-columns: 1fr;- }+.portal-support-link {+ color: var(--accent);+ font-size: 13px;+ font-weight: 500;}-.portal-shell-main {- max-width: 1120px;- margin: 0 auto;- width: min(100%, calc(100vw - 48px));- padding: 0 0 56px;- gap: 20px;+.portal-support-link:hover {+ text-decoration: underline;}-.portal-account-context {- padding: 28px 0 8px;- border-bottom: none;- background: transparent;+.support-link {+ color: var(--accent);}-.portal-account-context-copy {- gap: 4px;+.overview-task-grid,+.overview-task-grid-compact {+ display: flex;+ flex-direction: column;+ gap: 0;+ border: 1px solid var(--border);+ border-radius: var(--radius);+ overflow: hidden;}-.portal-account-context-meta {- font-size: 12px;+.overview-task-card {+ display: flex;+ flex-direction: column;+ gap: 8px;+ padding: 12px 16px;+ border-top: 1px solid var(--border-muted);+ background: var(--bg);}-.portal-account-context-row-title h2 {- font-size: 32px;- line-height: 1.04;- letter-spacing: -0.04em;+.overview-task-card:first-child {+ border-top: none;}-.portal-account-context-copy p {+.overview-task-card h4 {margin: 0;font-size: 14px;- line-height: 1.5;- color: var(--ink-muted);+ font-weight: 600;}-.portal-shell-nav {+.overview-task-card p {+ margin: 0;+ font-size: 13px;+ color: var(--ink-secondary);+}+.overview-task-list {+ display: flex;+ flex-direction: column;+ gap: 0;+}+.overview-task-item {display: flex;- align-items: flex-end;+ flex-direction: column;+ gap: 2px;+ padding: 8px 0;+ border-top: 1px solid var(--border-muted);+}+.overview-task-item:first-child {+ border-top: none;+ padding-top: 0;+}+.overview-task-item strong {+ font-size: 13px;+ color: var(--ink);+}+.overview-task-item span {+ font-size: 12px;+ color: var(--ink-secondary);+}+.overview-task-item-action {+ flex-direction: row;+ align-items: center;justify-content: space-between;- gap: 20px;+ gap: 8px;+}+.overview-task-copy {+ display: flex;+ flex-direction: column;+ gap: 2px;+ min-width: 0;+}+.overview-task-actions {+ display: flex;+ gap: 8px;+ margin-top: 4px;}-.portal-shell-nav-group {- padding-bottom: 0;- gap: 20px;+.account-panel-kicker,+.billing-card-kicker,+.account-eyebrow {+ display: none;}-.portal-shell-nav-group-primary {- flex: 0 0 auto;+.empty-state {+ border: 1px solid var(--border-muted);+ border-radius: var(--radius);+ padding: 16px;+ font-size: 13px;+ color: var(--ink-secondary);}-.portal-shell-nav-group-utility {- flex: 0 0 auto;- margin-left: 0;+.empty-state p {+ margin: 0;}-.portal-shell-nav-link {- padding: 0 0 12px;- width: auto;- min-width: max-content;- flex: 0 0 auto;- display: inline-flex;- white-space: nowrap;+.support-copy {+ margin-top: 8px !important;}-.portal-shell-nav-link-utility {- color: var(--ink-muted);+.portal-auth-shell {+ display: grid;+ grid-template-columns: minmax(0, 1fr) 380px;+ gap: 32px;+ align-items: start;+ min-height: calc(100vh - 120px);}-.portal-page-header {+.portal-auth-intro {display: flex;flex-direction: column;- align-items: flex-start;gap: 16px;- margin-bottom: 18px;+ padding: 24px;+ border: 1px solid var(--border);+ border-radius: var(--radius);}-.portal-page-header h2 {- font-size: 28px;- line-height: 1.06;- letter-spacing: -0.04em;+.portal-auth-intro h1 {+ margin: 0;+ font-size: 32px;+ font-weight: 600;+ line-height: 1.1;+ color: var(--ink);}-.portal-page-header p {- max-width: 640px;+.portal-auth-intro p {margin: 0;font-size: 14px;- line-height: 1.55;- color: var(--ink-muted);+ color: var(--ink-secondary);}-.portal-page-facts,-.portal-account-block-facts {+.portal-auth-scope-list {display: flex;- flex-wrap: wrap;- align-items: center;+ flex-direction: column;gap: 0;margin-top: 8px;- font-size: 12px;- line-height: 1.5;- color: var(--ink-muted);-}-.portal-fact-separator {- margin: 0 10px;- color: var(--line-strong, var(--line));}-.portal-summary-strip {+.portal-auth-scope-row {display: grid;- grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));+ grid-template-columns: 100px minmax(0, 1fr);gap: 12px;- width: 100%;- min-width: 0;+ padding: 10px 0;+ border-top: 1px solid var(--border-muted);}-.portal-summary-item {- padding: 12px 14px;- border: 1px solid var(--line);- border-radius: 12px;- background: #fff;-}-.portal-summary-item span {- display: block;- margin-bottom: 4px;- font-size: 12px;- line-height: 1.4;- color: var(--ink-muted);+.portal-auth-scope-row h3 {+ margin: 0;+ font-size: 13px;+ font-weight: 600;}-.portal-summary-item strong {- display: block;- font-size: 18px;- line-height: 1.2;- color: var(--ink);+.portal-auth-scope-row p {+ margin: 0;+ font-size: 13px;+ color: var(--ink-secondary);}-.account-surface + .account-surface {- margin-top: 18px;+.portal-auth-panel {+ position: sticky;+ top: 72px;}-.portal-account-block-header {+.portal-auth-card {display: flex;- align-items: flex-start;- justify-content: space-between;- gap: 16px;- margin-bottom: 12px;+ flex-direction: column;+ gap: 12px;+ padding: 24px;+ border: 1px solid var(--border);+ border-radius: var(--radius);}-.portal-account-block-copy h3 {+.portal-auth-card h2 {+ margin: 0;font-size: 20px;- line-height: 1.12;- letter-spacing: -0.03em;+ font-weight: 600;}-.portal-account-block-copy p {- margin: 10px 0 0;+.portal-auth-card > p {+ margin: 0;font-size: 14px;- line-height: 1.55;- color: var(--ink-muted);+ color: var(--ink-secondary);}-.portal-account-block-actions {+.portal-auth-form-group {display: flex;- align-items: flex-start;- gap: 12px;-}-.access-section-shell .portal-account-block-header,-.billing-section .portal-page-header,-.portal-support-panel .portal-page-header {- align-items: flex-start;-}-.access-section-shell .portal-account-block-header {flex-direction: column;+ gap: 4px;+}+.portal-auth-form-group label {+ font-size: 13px;+ font-weight: 500;+ color: var(--ink);}-.access-section-shell .portal-account-block-actions {+.portal-auth-form-group input {width: 100%;+ padding: 8px 10px;+ border: 1px solid var(--border);+ border-radius: var(--radius);+ background: var(--bg);+ color: var(--ink);+ font: inherit;+ font-size: 14px;}-.workspace-list-wrap,-.workspace-management-panel,-.access-roster,-.access-task-panel,-.billing-surface-block,-.billing-shell-main,-.billing-shell-detail,-.billing-panel,-.portal-support-panel {- border-radius: 14px;+.portal-auth-form-group input:focus {+ outline: none;+ border-color: var(--accent);+ box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.15);}-.workspace-list-toolbar {- padding: 14px 18px 8px;+.portal-auth-actions {+ margin-top: 4px;+}+.portal-auth-actions .btn-primary {+ min-width: 140px;}-.workspace-list-summary {+.portal-auth-secondary-action {font-size: 13px;- line-height: 1.5;- color: var(--ink-muted);+ color: var(--ink-secondary);}-.workspace-list-head {- grid-template-columns: minmax(0, 1.8fr) 110px 120px 180px;- gap: 12px;- padding: 8px 18px;- font-size: 11px;- letter-spacing: 0.06em;- text-transform: uppercase;- color: var(--ink-muted);+.portal-auth-secondary-action a {+ color: var(--accent);+ font-weight: 500;}-.workspace-row {- grid-template-columns: minmax(0, 1.8fr) 110px 120px 180px;- gap: 12px;- padding: 16px 18px;+.portal-page-header {+ display: flex;+ flex-direction: column;+ gap: 4px;+ margin-bottom: 12px;}-.workspace-row-note {- font-size: 13px;+.portal-page-header h2 {+ margin: 0;+ font-size: 16px;+ font-weight: 600;}-.workspace-actions {- justify-content: flex-end;- gap: 8px;+.portal-page-header p {+ margin: 0;+ font-size: 13px;+ color: var(--ink-secondary);}-.workspace-operations-shell,-.access-shell,-.billing-shell {- gap: 12px;+.portal-page-facts {+ display: none;}-.access-management-stats {- margin-bottom: 10px;+.portal-summary-strip {+ display: none;}-.access-task-strip {+.portal-account-block-header {display: flex;- flex-wrap: wrap;- gap: 8px;- margin-top: 12px;-}-.access-task-button {- border-radius: 999px;- background: #fff;-}-.access-roster-list {- padding: 0 18px 4px;+ align-items: flex-start;+ justify-content: space-between;+ gap: 12px;+ margin-bottom: 12px;}-.billing-surface-block {- padding: 18px;+.portal-account-block-copy h3 {+ margin: 0;+ font-size: 14px;+ font-weight: 600;}-.billing-surface-header {- margin-bottom: 8px;+.portal-account-block-copy p {+ margin: 4px 0 0;+ font-size: 13px;+ color: var(--ink-secondary);}-.billing-action-list-surface {- gap: 0;+.portal-account-block-facts {+ display: none;}-.billing-action-row-surface {- display: grid;- grid-template-columns: minmax(0, 1fr) auto;- gap: 16px;- align-items: center;- padding: 16px 0;- border-top: 1px solid var(--line);+.portal-account-block-actions {+ display: flex;+ gap: 8px;}-.billing-action-row-surface:first-child {- padding-top: 0;- border-top: none;+.section-context-strip {+ display: none;}-.billing-action-row-surface:last-child {- padding-bottom: 0;+.account-stage-header {+ display: flex;+ flex-direction: column;+ gap: 4px;+ margin-bottom: 12px;}-.billing-action-row-surface .billing-action-copy h3 {- font-size: 18px;+.account-stage-header h3 {+ margin: 0;+ font-size: 14px;+ font-weight: 600;}-.billing-action-row-surface .billing-action-meta {- margin-top: 4px;+.account-stage-header p {+ margin: 0;font-size: 13px;- line-height: 1.5;- color: var(--ink-muted);+ color: var(--ink-secondary);}-.portal-support-panel {- border: 1px solid var(--line);- background: #fff;- padding: 18px;+.spinner {+ display: inline-block;+ width: 16px;+ height: 16px;+ border: 2px solid var(--border);+ border-top-color: var(--accent);+ border-radius: 50%;+ animation: spin 0.6s linear infinite;}-.portal-support-simple-card {- padding: 0;- border: none;- background: transparent;+@keyframes spin {+ to {+ transform: rotate(360deg);+ }}-.portal-support-simple-row {- display: grid;- grid-template-columns: 160px minmax(0, 1fr);- gap: 16px;- padding: 14px 0;- border-top: 1px solid var(--line);+.toast {+ position: fixed;+ right: 20px;+ bottom: 20px;+ z-index: 100;+ display: none;+ max-width: 320px;+ padding: 10px 16px;+ border-radius: var(--radius);+ background: #1f2328;+ color: #fff;+ font-size: 13px;}-.portal-support-simple-row:first-child {- padding-top: 0;- border-top: none;+.toast.visible {+ display: block;}-.portal-support-simple-actions {- display: flex;- flex-wrap: wrap;- align-items: center;- gap: 10px;- padding-top: 14px;- border-top: 1px solid var(--line);-}-@media (max-width: 960px) {- .portal-shell-main {- width: min(100%, calc(100vw - 40px));- padding-bottom: 40px;- }- .portal-shell-nav {- flex-direction: column;- align-items: flex-start;- gap: 12px;+.toast.error {+ background: #82181a;+}+@media (max-width: 768px) {+ .main {+ padding: 0 16px 48px;}- .portal-shell-nav-group {- gap: 12px;+ .portal-tab-bar {+ overflow-x: auto;+ scrollbar-width: none;+ gap: 0;}- .portal-shell-nav-group-utility {- margin-left: 0;+ .portal-tab-bar::-webkit-scrollbar {+ display: none;}- .portal-account-block-header {- flex-direction: column;- align-items: flex-start;+ .portal-tab {+ white-space: nowrap;+ padding: 8px 12px;}- .portal-summary-strip {- width: 100%;- min-width: 0;+ .portal-identity-bar {+ flex-wrap: wrap;}- .billing-action-row-surface {- grid-template-columns: 1fr;- align-items: flex-start;+ .portal-identity-bar h2 {+ font-size: 18px;}-}-@media (max-width: 720px) {.workspace-list-head {display: none;}.workspace-row {grid-template-columns: 1fr;- gap: 10px;- }- .workspace-row-status-cell {- justify-content: flex-start;+ gap: 8px;}.workspace-actions {justify-content: flex-start;width: 100%;}- .workspace-actions form,- .workspace-actions button {- max-width: none;+ .access-roster-head,+ .access-member-row,+ .access-member-row-readonly {+ grid-template-columns: 1fr;}- .portal-summary-strip {- grid-template-columns: repeat(2, minmax(0, 1fr));+ .billing-action-row,+ .billing-action-row-surface {+ grid-template-columns: 1fr;}- .access-task-strip {- overflow-x: auto;- padding-bottom: 2px;- scrollbar-width: none;+ .portal-auth-shell {+ grid-template-columns: 1fr;+ min-height: 0;}- .access-task-strip::-webkit-scrollbar {- display: none;+ .portal-auth-panel {+ position: static;+ order: -1;}.portal-support-simple-row {grid-template-columns: 1fr;- gap: 6px;+ gap: 4px;}-}-@media (max-width: 640px) {- .portal-shell-main {- width: min(100%, calc(100vw - 24px));- padding-bottom: 32px;+ .workspace-management-facts {+ grid-template-columns: 1fr;}- .portal-account-context {- padding-top: 20px;+}+@media (max-width: 480px) {+ header {+ padding: 0 12px;}- .portal-account-context-row-title h2 {- font-size: 28px;+ .main {+ padding: 0 12px 40px;}- .portal-page-header h2 {- font-size: 24px;+ .header-account-email {+ max-width: 120px;+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;}- .portal-summary-strip {- grid-template-columns: repeat(2, minmax(0, 1fr));+ .portal-identity-bar h2 {+ font-size: 16px;}}diff --git a/internal/cloudcp/portal/dist/portal_app.js b/internal/cloudcp/portal/dist/portal_app.jsindex 9ac4f7f536..3694bf991b 100644--- a/internal/cloudcp/portal/dist/portal_app.js+++ b/internal/cloudcp/portal/dist/portal_app.js@@ -1972,6 +1972,9 @@function escapeAttr(value) {return escapeHTML(value);}+ function hasSignupPath(signupPath) {+ return String(signupPath || "").trim() !== "";+ }function titleCase(value) {if (!value) return "";return value.charAt(0).toUpperCase() + value.slice(1);@@ -1988,50 +1991,12 @@if (account.kind === "individual") return "Hosted account";return account.kind_label ? account.kind_label + " account" : "Account";}- function workspaceCountLabel(count) {- return count === 1 ? "1 workspace" : String(count) + " workspaces";- }- function workspaceTotalChipLabel(count) {- return count === 1 ? "1 workspace total" : String(count) + " workspaces total";- }function reviewWorkspaceHeadline(count) {return count === 1 ? "1 workspace needs review" : String(count) + " workspaces need review";}function readyWorkspaceHeadline(count) {return count === 1 ? "1 workspace is ready to use" : String(count) + " workspaces are ready to use";}- function readyWorkspaceSectionChipLabel(count) {- return count === 1 ? "1 workspace ready to use" : String(count) + " workspaces ready to use";- }- function reviewWorkspaceChipLabel(count) {- return count === 1 ? "1 workspace to review" : String(count) + " workspaces to review";- }- function readyWorkspaceChipLabel(count) {- return count === 1 ? "1 ready workspace" : String(count) + " ready workspaces";- }- function suspendedWorkspaceChipLabel(count) {- return count === 1 ? "1 suspended workspace" : String(count) + " suspended workspaces";- }- function suspendedWorkspaceSectionChipLabel(count) {- return count === 1 ? "1 workspace suspended" : String(count) + " workspaces suspended";- }- function supportSectionChipLabels(hasHostedAccounts2, hostedViewOnly, supportEmail) {- if (hasHostedAccounts2) {- return [- "Escalation only",- hostedViewOnly ? "Review Workspaces or Access, or contact owner/admin first" : "Open Workspaces, Access, or Billing first",- supportEmail ? "Email support" : "Support route"- ];- }- return ["Escalation only", "Open Billing first", supportEmail ? "Email support" : "Support route"];- }- function supportLeadCopy(hasHostedAccounts2, hostedViewOnly, showSelfHostedCommercial) {- if (!hasHostedAccounts2) return "Use Support only after Billing fails.";- if (hostedViewOnly) {- return showSelfHostedCommercial ? "Use Support only after Workspaces review, Access review, owner/admin handoff, or Billing fails." : "Use Support only after Workspaces review, Access review, owner/admin handoff, or hosted Billing fails.";- }- return showSelfHostedCommercial ? "Use Support only after Workspaces, Access, or Billing fails." : "Use Support only after Workspaces, Access, or hosted Billing fails.";- }function supportRunbookPathCopy(hasHostedAccounts2, hostedViewOnly, showSelfHostedCommercial) {if (!hasHostedAccounts2) return "Billing, licenses, refunds, or privacy.";if (hostedViewOnly) {@@ -2039,10 +2004,6 @@}return showSelfHostedCommercial ? "Workspaces, Access, hosted billing, licenses, refunds, or privacy." : "Workspaces, Access, or hosted billing.";}- function supportRunbookAccountCopy(hasHostedAccounts2, showSelfHostedCommercial) {- if (!hasHostedAccounts2) return "Commercial billing email used for the self-hosted purchase.";- return showSelfHostedCommercial ? "Hosted account and workspace when relevant, or billing email for self-hosted work." : "Hosted account and workspace, or hosted billing account.";- }function hasHostedAccounts(accounts) {return accounts.length > 0;}@@ -2057,16 +2018,6 @@}return total;}- function collectWorkspaces(accounts) {- var results = [];- for (var i = 0; i < accounts.length; i += 1) {- var workspaces = Array.isArray(accounts[i].workspaces) ? accounts[i].workspaces : [];- for (var j = 0; j < workspaces.length; j += 1) {- results.push(workspaces[j]);- }- }- return results;- }function collectOverviewWorkspaceEntries(accounts) {var results = [];for (var i = 0; i < accounts.length; i += 1) {@@ -2116,18 +2067,6 @@return '<span class="section-context-chip">' + escapeHTML(chip) + "</span>";}).join("") + "</div>";}- function renderFactLine(className, facts) {- if (!facts.length) return "";- return '<div class="' + className + '">' + facts.map(function(fact) {- return "<span>" + escapeHTML(fact) + "</span>";- }).join('<span class="portal-fact-separator">\u2022</span>') + "</div>";- }- function renderSummaryStrip(items) {- if (!items.length) return "";- return '<div class="portal-summary-strip">' + items.map(function(item) {- return '<div class="portal-summary-item"><span>' + escapeHTML(item.label) + "</span><strong>" + escapeHTML(item.value) + "</strong></div>";- }).join("") + "</div>";- }function attentionWorkspaces(workspaces) {var results = [];for (var i = 0; i < workspaces.length; i += 1) {@@ -2138,20 +2077,15 @@}return results;}- function accountContextRoleMeta(account) {- return portalRoleLabel(account.role) + " role";- }- function renderAccountContextStrip(account) {- return '<section class="portal-account-context"><div class="portal-account-context-copy"><div class="portal-account-context-meta"><span class="account-eyebrow">Pulse Account</span><span class="portal-account-context-separator">\u2022</span><span class="portal-account-context-access">' + escapeHTML(accountKindLabel(account)) + '</span></div><div class="portal-account-context-row portal-account-context-row-title"><h2>' + escapeHTML(account.name) + "</h2></div><p>" + escapeHTML(accountContextRoleMeta(account)) + "</p></div></section>";- }- function renderPortalContextStrip(accounts, showSelfHostedCommercial) {+ function renderIdentityBar(accounts, showSelfHostedCommercial) {if (accounts.length === 1) {- return renderAccountContextStrip(accounts[0]);+ var account = accounts[0];+ return '<div class="portal-identity-bar"><h2>' + escapeHTML(account.name) + '</h2><span class="portal-identity-sep">\xB7</span><span>' + escapeHTML(portalRoleLabel(account.role)) + '</span><span class="portal-identity-sep">\xB7</span><span>' + escapeHTML(accountKindLabel(account)) + "</span></div>";}if (accounts.length > 1) {- return '<section class="portal-account-context"><div class="portal-account-context-copy"><div class="portal-account-context-meta"><span class="account-eyebrow">Pulse Account</span><span class="portal-account-context-separator">\u2022</span><span class="portal-account-context-access">' + escapeHTML(accounts.length === 1 ? "1 hosted account" : String(accounts.length) + " hosted accounts") + '</span></div><div class="portal-account-context-row portal-account-context-row-title"><h2>Hosted accounts</h2></div><p>Workspaces, access, and billing by account.</p></div></section>';+ return '<div class="portal-identity-bar"><h2>Pulse Account</h2><span class="portal-identity-sep">\xB7</span><span>' + String(accounts.length) + " accounts</span></div>";}- return '<section class="portal-account-context"><div class="portal-account-context-copy"><div class="portal-account-context-meta"><span class="account-eyebrow">Billing account</span><span class="portal-account-context-separator">\u2022</span><span class="portal-account-context-access">' + escapeHTML(showSelfHostedCommercial ? "Self-hosted commercial" : "Commercial account") + '</span></div><div class="portal-account-context-row portal-account-context-row-title"><h2>Billing</h2></div><p>Use Billing for self-hosted subscriptions, licenses, refunds, and privacy requests.</p></div></section>';+ return '<div class="portal-identity-bar"><h2>Pulse Account</h2><span class="portal-identity-sep">\xB7</span><span>' + escapeHTML(showSelfHostedCommercial ? "Self-hosted billing" : "Billing") + "</span></div>";}function primaryShellSections(bootstrap) {var accounts = Array.isArray(bootstrap.accounts) ? bootstrap.accounts : [];@@ -2179,14 +2113,13 @@function visibleShellSections(bootstrap) {return primaryShellSections(bootstrap).concat(utilityShellSections(bootstrap));}- function shellSectionButton(section, activeSection, title, variant) {- return '<button class="portal-shell-nav-link portal-shell-nav-link-' + variant + (activeSection === section ? " active" : "") + '" type="button" data-shell-action="activate-section" data-shell-section="' + section + '"><span class="portal-shell-nav-row"><span class="portal-shell-nav-label">' + title + "</span></span></button>";- }- function renderShellNavigation(bootstrap, activeSection) {+ function renderTabBar(bootstrap, activeSection) {var sections = visibleShellSections(bootstrap);- return '<nav class="portal-shell-nav" aria-label="Pulse Account sections"><div class="portal-shell-nav-group portal-shell-nav-group-primary">' + sections.map(function(entry) {- return shellSectionButton(entry.section, activeSection, entry.title, entry.section === "support" ? "utility" : "primary");- }).join("") + "</div></nav>";+ return '<nav class="portal-tab-bar" aria-label="Pulse Account sections">' + sections.map(function(entry) {+ var isActive = activeSection === entry.section;+ var cls = "portal-tab" + (isActive ? " active" : "") + (entry.section === "support" ? " portal-tab-utility" : "");+ return '<button class="' + cls + '" type="button" data-shell-action="activate-section" data-shell-section="' + entry.section + '">' + entry.title + "</button>";+ }).join("") + "</nav>";}function renderWorkspaceCard(account, workspace, accountAPIBasePath) {var status = workspaceHealthState(workspace);@@ -2350,30 +2283,13 @@var accounts = Array.isArray(context.bootstrap.accounts) ? context.bootstrap.accounts : [];var entries = collectOverviewWorkspaceEntries(accounts);var showSelfHostedCommercial = hasSelfHostedCommercial(context.bootstrap);- var totalCount = entries.length;- var readyCount = readyOverviewEntries(entries).length;- var attentionCount = attentionOverviewEntries(entries).length;- var suspendedCount = countWorkspacesByState(collectWorkspaces(accounts), "suspended");- var chips = accounts.length ? [- accounts.length === 1 ? "1 account" : String(accounts.length) + " accounts",- workspaceCountLabel(totalCount),- readyWorkspaceChipLabel(readyCount),- reviewWorkspaceChipLabel(attentionCount),- suspendedWorkspaceChipLabel(suspendedCount)- ] : ["No hosted account", "0 hosted workspaces", "Billing available", "Support only on escalation"];- return '<section class="account-content-panel account-content-panel-overview"><div class="account-stage-header account-stage-header-overview overview-stage-header"><div><div class="account-panel-kicker">Summary</div><h3>Current state</h3><p>Use this summary only when you need a quick account readout.</p>' + renderSectionContextChips(chips) + '</div></div><div class="overview-task-grid overview-task-grid-compact">' + renderOverviewAttentionCard(accounts, entries, showSelfHostedCommercial) + renderOverviewReadyCard(accounts, entries, context.accountAPIBasePath) + renderOverviewNextActionCard(accounts, entries, context.accountAPIBasePath, showSelfHostedCommercial) + "</div></section>";- }- function renderPageHeader(kicker, title, copy, summaryHTML = "") {- return '<div class="portal-page-header"><div><div class="account-panel-kicker">' + escapeHTML(kicker) + "</div><h2>" + escapeHTML(title) + "</h2><p>" + escapeHTML(copy) + "</p></div>" + summaryHTML + "</div>";- }- function renderAccountBlockHeader(account, facts, actionsHTML = "", copy = "") {- return '<div class="portal-account-block-header"><div class="portal-account-block-copy"><div class="account-panel-kicker">' + escapeHTML(accountKindLabel(account)) + "</div><h3>" + escapeHTML(account.name) + "</h3>" + renderFactLine("portal-account-block-facts", [accountContextRoleMeta(account)].concat(facts)) + (copy ? "<p>" + escapeHTML(copy) + "</p>" : "") + "</div>" + (actionsHTML ? '<div class="portal-account-block-actions">' + actionsHTML + "</div>" : "") + "</div>";+ return '<section class="account-content-panel account-content-panel-overview"><div class="overview-task-grid overview-task-grid-compact">' + renderOverviewAttentionCard(accounts, entries, showSelfHostedCommercial) + renderOverviewReadyCard(accounts, entries, context.accountAPIBasePath) + renderOverviewNextActionCard(accounts, entries, context.accountAPIBasePath, showSelfHostedCommercial) + "</div></section>";}function renderNoHostedWorkspacesSection() {- return '<section class="account-content-panel account-content-panel-workspaces"><div class="account-stage-header"><div><div class="account-panel-kicker">Workspaces</div><h3>Workspaces</h3><p>No hosted workspace is attached to this account.</p>' + renderSectionContextChips(["None attached", "Billing instead"]) + '</div></div><div class="empty-state empty-state-spaced"><p>There is nothing to open or manage here yet.</p><p class="support-copy">Use Billing for self-hosted subscriptions, licenses, refunds, or privacy requests.</p></div></section>';+ return '<section class="account-content-panel account-content-panel-workspaces"><div class="empty-state"><p>No hosted workspaces are attached to this account. Use Billing for self-hosted subscriptions and licenses.</p></div></section>';}function renderNoHostedAccessSection() {- return '<section class="account-content-panel account-content-panel-access"><div class="account-stage-header"><div><div class="account-panel-kicker">Access</div><h3>Access</h3><p>No hosted account roster is attached here.</p>' + renderSectionContextChips(["No hosted roster", "Billing instead"]) + '</div></div><div class="empty-state empty-state-spaced"><p>There are no hosted roles or invites to manage for this account right now.</p><p class="support-copy">If the task is commercial access to licenses, refunds, or privacy, stay in Billing.</p></div></section>';+ return '<section class="account-content-panel account-content-panel-access"><div class="empty-state"><p>No hosted account roster is attached. Use Billing for commercial access to licenses, refunds, or privacy.</p></div></section>';}function renderAccountWorkspaceSection(account, accountAPIBasePath) {var workspaces = Array.isArray(account.workspaces) ? account.workspaces : [];@@ -2391,21 +2307,12 @@if (account.kind === "msp") {addWorkspaceForm = '<div class="add-workspace-form" id="add-ws-form-' + escapeAttr(account.id) + '"><label for="ws-name-' + escapeAttr(account.id) + '">Workspace name (for example, a client name)</label><input type="text" id="ws-name-' + escapeAttr(account.id) + '" placeholder="Acme Corp" maxlength="80" autocomplete="off"><div class="form-actions"><button type="button" class="btn-primary" data-action="create-workspace" data-account-id="' + escapeAttr(account.id) + '">Create workspace</button><button type="button" class="btn-secondary" data-action="toggle-add-workspace" data-account-id="' + escapeAttr(account.id) + '">Cancel</button><div class="spinner" id="ws-spinner-' + escapeAttr(account.id) + '" hidden></div></div></div>';}- workspaceManagement = '<section class="workspace-management-panel workspace-management-panel-idle" id="workspace-management-' + escapeAttr(account.id) + '" hidden><div class="workspace-management-header"><div><div class="account-panel-kicker">Workspace task</div><h3>Work on one workspace</h3><p>Open lifecycle for one workspace, or create a new one. Keep access and billing separate.</p></div><button type="button" class="btn-secondary btn-compact" id="workspace-management-close-' + escapeAttr(account.id) + '" data-action="clear-workspace-selection" data-account-id="' + escapeAttr(account.id) + '">Close panel</button></div><div class="workspace-management-empty" id="workspace-management-empty-' + escapeAttr(account.id) + '"><div class="workspace-management-empty-shell"><div class="workspace-management-empty-actions-card"><div class="workspace-management-empty-actions-copy"><div class="account-panel-kicker">Create workspace</div><h4>Open a new hosted workspace</h4><p>Create one workspace here when you need a new customer or operating boundary.</p></div>' + addWorkspaceForm + '</div><div class="workspace-management-empty-note">Access changes stay in Access. Billing changes stay in Billing.</div></div></div><div class="workspace-management-content" id="workspace-management-content-' + escapeAttr(account.id) + '" hidden><div class="workspace-management-meta" id="workspace-management-meta-' + escapeAttr(account.id) + '"></div><h4 id="workspace-management-title-' + escapeAttr(account.id) + '"></h4><p class="workspace-management-summary" id="workspace-management-summary-' + escapeAttr(account.id) + '"></p><div class="workspace-management-facts"><div class="workspace-management-fact"><span>Health</span><strong id="workspace-management-health-' + escapeAttr(account.id) + '"></strong></div><div class="workspace-management-fact"><span>Lifecycle</span><strong id="workspace-management-lifecycle-' + escapeAttr(account.id) + '"></strong></div><div class="workspace-management-fact"><span>Created</span><strong id="workspace-management-created-' + escapeAttr(account.id) + '"></strong></div></div><div class="workspace-management-guidance" id="workspace-management-guidance-' + escapeAttr(account.id) + '"></div><div class="workspace-management-actions"><button type="button" class="btn-danger" id="workspace-management-action-' + escapeAttr(account.id) + '" data-action="workspace-action" data-account-id="' + escapeAttr(account.id) + '">Manage workspace</button></div></div></section>';+ workspaceManagement = '<section class="workspace-management-panel workspace-management-panel-idle" id="workspace-management-' + escapeAttr(account.id) + '" hidden><div class="workspace-management-header"><div><h3>Workspace lifecycle</h3><p>Manage this workspace or create a new one.</p></div><button type="button" class="btn-secondary btn-compact" id="workspace-management-close-' + escapeAttr(account.id) + '" data-action="clear-workspace-selection" data-account-id="' + escapeAttr(account.id) + '">Close panel</button></div><div class="workspace-management-empty" id="workspace-management-empty-' + escapeAttr(account.id) + '"><div class="workspace-management-empty-shell"><div class="workspace-management-empty-actions-card"><div class="workspace-management-empty-actions-copy"><h4>Create a workspace</h4><p>Add a new hosted workspace for a customer or operating boundary.</p></div>' + addWorkspaceForm + '</div><div class="workspace-management-empty-note">Access changes stay in Access. Billing changes stay in Billing.</div></div></div><div class="workspace-management-content" id="workspace-management-content-' + escapeAttr(account.id) + '" hidden><div class="workspace-management-meta" id="workspace-management-meta-' + escapeAttr(account.id) + '"></div><h4 id="workspace-management-title-' + escapeAttr(account.id) + '"></h4><p class="workspace-management-summary" id="workspace-management-summary-' + escapeAttr(account.id) + '"></p><div class="workspace-management-facts"><div class="workspace-management-fact"><span>Health</span><strong id="workspace-management-health-' + escapeAttr(account.id) + '"></strong></div><div class="workspace-management-fact"><span>Lifecycle</span><strong id="workspace-management-lifecycle-' + escapeAttr(account.id) + '"></strong></div><div class="workspace-management-fact"><span>Created</span><strong id="workspace-management-created-' + escapeAttr(account.id) + '"></strong></div></div><div class="workspace-management-guidance" id="workspace-management-guidance-' + escapeAttr(account.id) + '"></div><div class="workspace-management-actions"><button type="button" class="btn-danger" id="workspace-management-action-' + escapeAttr(account.id) + '" data-action="workspace-action" data-account-id="' + escapeAttr(account.id) + '">Manage workspace</button></div></div></section>';}- var workspaceHTML = workspaces.length ? '<div class="workspace-list-wrap"><div class="workspace-list-toolbar"><div class="workspace-list-summary">' + escapeHTML(workspaceListSummary) + '</div></div><div class="workspace-list-head"><span>Workspace</span><span>Health</span><span>Lifecycle</span><span>Actions</span></div><div class="workspace-list">' + workspaces.map(function(workspace) {+ var workspaceHTML = workspaces.length ? '<div class="workspace-list-wrap">' + (workspaceHeaderActions ? '<div class="workspace-list-toolbar">' + workspaceHeaderActions + "</div>" : "") + '<div class="workspace-list-head"><span>Workspace</span><span>Health</span><span>Lifecycle</span><span>Actions</span></div><div class="workspace-list">' + workspaces.map(function(workspace) {return renderWorkspaceCard(account, workspace, accountAPIBasePath);- }).join("") + "</div></div>" : '<div class="empty-state"><p>' + escapeHTML(account.can_manage ? "No hosted workspaces yet. Create one to get started." : "No hosted workspaces are attached yet. An owner or admin must create the first one.") + "</p></div>";- return '<section class="account-content-panel account-content-panel-workspaces">' + renderAccountBlockHeader(- account,- [- workspaceTotalChipLabel(workspaces.length),- readyWorkspaceSectionChipLabel(readyCount),- reviewWorkspaceChipLabel(attentionCount),- suspendedWorkspaceSectionChipLabel(suspendedCount)- ],- workspaceHeaderActions- ) + '<div class="workspace-operations-shell workspace-operations-shell-idle" id="workspace-operations-shell-' + escapeAttr(account.id) + '"><div class="workspace-operations-detail" id="workspace-operations-detail-' + escapeAttr(account.id) + '" hidden>' + workspaceManagement + '</div><div class="workspace-operations-main">' + workspaceHTML + "</div></div></section>";+ }).join("") + "</div></div>" : '<div class="empty-state"><p>' + escapeHTML(account.can_manage ? "No hosted workspaces yet. Create one to get started." : "No hosted workspaces are attached yet. An owner or admin must create the first one.") + "</p>" + (workspaceHeaderActions ? '<div style="margin-top: 8px">' + workspaceHeaderActions + "</div>" : "") + "</div>";+ return '<section class="account-content-panel account-content-panel-workspaces"><div class="workspace-operations-shell workspace-operations-shell-idle" id="workspace-operations-shell-' + escapeAttr(account.id) + '"><div class="workspace-operations-detail" id="workspace-operations-detail-' + escapeAttr(account.id) + '" hidden>' + workspaceManagement + '</div><div class="workspace-operations-main">' + workspaceHTML + "</div></div></section>";}function renderAccountAccessSection(account) {var accessTaskStrip = account.can_manage ? '<div class="access-task-strip"><button type="button" class="access-task-button" id="access-task-invite-' + escapeAttr(account.id) + '" data-action="set-access-job" data-account-id="' + escapeAttr(account.id) + '" data-access-job="invite">Invite people</button><button type="button" class="access-task-button" id="access-task-change_role-' + escapeAttr(account.id) + '" data-action="set-access-job" data-account-id="' + escapeAttr(account.id) + '" data-access-job="change_role">Change roles</button><button type="button" class="access-task-button" id="access-task-remove-' + escapeAttr(account.id) + '" data-action="set-access-job" data-account-id="' + escapeAttr(account.id) + '" data-access-job="remove">Remove access</button></div>' : renderSectionContextChips(["View roster", "Owner or admin required"]);@@ -2413,33 +2320,28 @@var accessInvitePanel = account.can_manage ? '<div class="access-invite-panel"><div class="access-panel-heading"><h4>Invite people</h4><p>Add one person with the minimum role they need on this account.</p></div><div class="access-invite"><div><label for="invite-email-' + escapeAttr(account.id) + '">Email</label><input type="email" id="invite-email-' + escapeAttr(account.id) + '" placeholder="[email protected]" autocomplete="off"></div><div><label for="invite-role-' + escapeAttr(account.id) + '">Role</label><select id="invite-role-' + escapeAttr(account.id) + '"><option value="admin">Admin</option><option value="tech">Tech</option><option value="read_only">Read-only</option></select></div><button type="button" class="btn-primary btn-compact" data-action="invite-member" data-account-id="' + escapeAttr(account.id) + '">Invite</button></div></div>' : "";var accessChangeRolePanel = '<div class="access-job-note-panel"><div class="access-panel-heading"><h4>Change roles on the roster</h4><p>Use the role column in the roster to change one person at a time. Keep each person on the smallest role they need.</p></div></div>' + accessRoleGuide;var accessRemovePanel = '<div class="access-job-note-panel"><div class="access-panel-heading"><h4>Remove stale access</h4><p>Use removal only when this person should no longer be on this hosted account. Owners may still be protected when they are the last owner.</p></div><div class="access-remove-points"><div class="access-remove-point"><strong>Pick the exact person</strong><span>Use the roster to remove one account member at a time.</span></div><div class="access-remove-point"><strong>Keep current owners safe</strong><span>The last owner cannot be removed until another owner exists.</span></div></div></div>';- return '<section class="account-content-panel account-content-panel-access"><section class="access-management-panel access-section access-section-shell" id="access-section-' + escapeAttr(account.id) + '" data-actor-role="' + escapeAttr(account.role) + '" data-can-manage="' + escapeAttr(account.can_manage ? "true" : "false") + '">' + renderAccountBlockHeader(- account,- [account.can_manage ? "Manage access" : "Review roster"],- accessTaskStrip,- account.can_manage ? "Open one access task at a time, then use the roster below." : "Review who can act on this account. An owner or admin must make changes."- ) + '<div class="access-management-stats" id="access-stats-' + escapeAttr(account.id) + '"></div><div class="access-shell access-shell-idle" id="access-shell-' + escapeAttr(account.id) + '">' + (account.can_manage ? '<div class="access-shell-detail" id="access-detail-' + escapeAttr(account.id) + '" hidden><div class="access-task-panel" id="access-task-panel-' + escapeAttr(account.id) + '" hidden><div class="access-task-header"><div><div class="account-panel-kicker">Access task</div><h4 id="access-task-title-' + escapeAttr(account.id) + '">Invite people</h4><p id="access-task-copy-' + escapeAttr(account.id) + '"></p></div><button type="button" class="btn-secondary btn-compact" data-action="clear-access-job" data-account-id="' + escapeAttr(account.id) + '">Close panel</button></div><div class="access-task-body" id="access-task-body-invite-' + escapeAttr(account.id) + '" hidden>' + accessInvitePanel + accessRoleGuide + '</div><div class="access-task-body" id="access-task-body-change_role-' + escapeAttr(account.id) + '" hidden>' + accessChangeRolePanel + '</div><div class="access-task-body" id="access-task-body-remove-' + escapeAttr(account.id) + '" hidden>' + accessRemovePanel + "</div></div></div>" : "") + '<div class="access-shell-main"><div class="access-roster-column"><div class="access-roster"><div class="access-panel-heading"><h4>People on this account</h4><p>' + (account.can_manage ? "Review the hosted roster here, then open the exact access job you need." : "Review the hosted roster here. An owner or admin must make changes.") + '</p></div><div class="access-roster-list" id="access-list-' + escapeAttr(account.id) + '"><div class="access-list-message">Loading\u2026</div></div></div></div></div></div></section></section>';+ return '<section class="account-content-panel account-content-panel-access"><section class="access-management-panel access-section access-section-shell" id="access-section-' + escapeAttr(account.id) + '" data-actor-role="' + escapeAttr(account.role) + '" data-can-manage="' + escapeAttr(account.can_manage ? "true" : "false") + '">' + (!account.can_manage ? '<p class="portal-section-copy">' + escapeHTML("Review who has access. An owner or admin must make changes.") + "</p>" : "") + '<div class="access-management-stats" id="access-stats-' + escapeAttr(account.id) + '"></div><div class="access-shell access-shell-idle" id="access-shell-' + escapeAttr(account.id) + '">' + (account.can_manage ? '<div class="access-shell-detail" id="access-detail-' + escapeAttr(account.id) + '" hidden><div class="access-task-panel" id="access-task-panel-' + escapeAttr(account.id) + '" hidden><div class="access-task-header"><div><h4 id="access-task-title-' + escapeAttr(account.id) + '">Invite people</h4><p id="access-task-copy-' + escapeAttr(account.id) + '"></p></div><button type="button" class="btn-secondary btn-compact" data-action="clear-access-job" data-account-id="' + escapeAttr(account.id) + '">Close panel</button></div><div class="access-task-body" id="access-task-body-invite-' + escapeAttr(account.id) + '" hidden>' + accessInvitePanel + accessRoleGuide + '</div><div class="access-task-body" id="access-task-body-change_role-' + escapeAttr(account.id) + '" hidden>' + accessChangeRolePanel + '</div><div class="access-task-body" id="access-task-body-remove-' + escapeAttr(account.id) + '" hidden>' + accessRemovePanel + "</div></div></div>" : "") + '<div class="access-shell-main"><div class="access-roster-column"><div class="access-roster">' + (account.can_manage ? '<div class="access-roster-toolbar">' + accessTaskStrip + "</div>" : "") + '<div class="access-roster-list" id="access-list-' + escapeAttr(account.id) + '"><div class="access-list-message">Loading\u2026</div></div></div></div></div></div></section></section>';}function renderHostedBillingCards(accounts, showSelfHostedCommercial) {var hostedBillingAccounts = accounts.filter(function(account) {return account.has_billing;});if (!hostedBillingAccounts.length) {- return '<section class="billing-surface-block billing-surface-block-empty"><div class="billing-surface-header"><div class="account-panel-kicker">Hosted billing</div><h3>No hosted billing attached</h3></div><p>' + escapeHTML(- showSelfHostedCommercial ? "Use the self-hosted billing tools below only when the request belongs to a self-hosted purchase." : "Hosted invoices, payment methods, and subscription changes are not attached to this account."+ return '<section class="billing-surface-block billing-surface-block-empty"><div class="billing-surface-header"><h3>No hosted billing attached</h3></div><p>' + escapeHTML(+ showSelfHostedCommercial ? "Use self-hosted billing tools below for self-hosted purchases." : "Hosted invoices and payment methods are not attached to this account.") + "</p></section>";}- return '<section class="billing-surface-block"><div class="billing-surface-header"><div class="account-panel-kicker">Hosted billing</div><h3>Hosted billing</h3></div><div class="billing-action-list billing-action-list-surface">' + hostedBillingAccounts.map(function(account) {+ return '<section class="billing-surface-block"><div class="billing-surface-header"><h3>Hosted billing</h3></div><div class="billing-action-list billing-action-list-surface">' + hostedBillingAccounts.map(function(account) {var actionHTML = account.can_manage ? '<button type="button" class="btn-primary btn-compact" data-action="open-billing" data-account-id="' + escapeAttr(account.id) + '">Open hosted billing</button>' : '<div class="billing-task-note">An owner or admin on this account needs to open hosted billing.</div>';return '<article class="billing-action-row billing-action-row-surface"><div class="billing-action-main"><div class="billing-action-copy"><h3>' + escapeHTML(account.name) + '</h3><p>Invoices, payment methods, and hosted subscription changes for this account.</p></div><div class="billing-action-meta">Keep workspace changes in Workspaces and roster changes in Access.</div></div><div class="billing-action-cta">' + actionHTML + "</div></article>";}).join("") + "</div></section>";}function renderBillingTaskPanel(title, copy, panelID, bodyHTML) {- return '<section class="billing-panel" id="' + escapeAttr(panelID) + '" hidden><div class="billing-task-header"><div><div class="account-panel-kicker">Billing task</div><h3>' + escapeHTML(title) + "</h3><p>" + escapeHTML(copy) + '</p></div><button type="button" class="btn-secondary btn-compact" data-account-billing-action="clear-billing-panel">Close panel</button></div><div class="billing-task-body">' + bodyHTML + "</div></section>";+ return '<section class="billing-panel" id="' + escapeAttr(panelID) + '" hidden><div class="billing-task-header"><div><h3>' + escapeHTML(title) + "</h3><p>" + escapeHTML(copy) + '</p></div><button type="button" class="btn-secondary btn-compact" data-account-billing-action="clear-billing-panel">Close panel</button></div><div class="billing-task-body">' + bodyHTML + "</div></section>";}function renderSupportSection(context) {var accounts = Array.isArray(context.bootstrap.accounts) ? context.bootstrap.accounts : [];- var hasHostedAccounts2 = accounts.length > 0;+ var isHosted = accounts.length > 0;var showSelfHostedCommercial = hasSelfHostedCommercial(context.bootstrap);var supportEmail = context.bootstrap.support_email || "";var canManageHostedTasks = false;@@ -2449,22 +2351,18 @@break;}}- var hostedViewOnly = hasHostedAccounts2 && !canManageHostedTasks;- var supportLead = supportLeadCopy(hasHostedAccounts2, hostedViewOnly, showSelfHostedCommercial);- var supportChips = supportSectionChipLabels(hasHostedAccounts2, hostedViewOnly, supportEmail);- var retryCopy = hasHostedAccounts2 ? hostedViewOnly ? "Review Workspaces or Access first. If billing is involved, hand it to an owner or admin before you escalate." : "Retry the same Workspaces, Access, or Billing step before you escalate." : "Retry the same Billing step before you escalate.";- var supportActions = hasHostedAccounts2 ? '<button type="button" class="btn-secondary btn-compact" data-shell-action="activate-section" data-shell-section="workspaces">Workspaces</button><button type="button" class="btn-secondary btn-compact" data-shell-action="activate-section" data-shell-section="access">Access</button><button type="button" class="btn-secondary btn-compact" data-shell-action="activate-section" data-shell-section="billing">Billing</button>' : '<button type="button" class="btn-secondary btn-compact" data-shell-action="activate-section" data-shell-section="billing">Billing</button>';- return '<section class="portal-support-panel">' + renderPageHeader(- "Support",- "Support",- supportLead,- renderFactLine("portal-page-facts", supportChips)- ) + '<div class="portal-support-simple"><div class="portal-support-simple-card"><div class="portal-support-simple-list"><div class="portal-support-simple-row"><strong>Try first</strong><span>' + escapeHTML(retryCopy) + '</span></div><div class="portal-support-simple-row"><strong>Path</strong><span>' + escapeHTML(supportRunbookPathCopy(hasHostedAccounts2, hostedViewOnly, showSelfHostedCommercial)) + '</span></div><div class="portal-support-simple-row"><strong>Account or email</strong><span>' + escapeHTML(supportRunbookAccountCopy(hasHostedAccounts2, showSelfHostedCommercial)) + '</span></div><div class="portal-support-simple-row"><strong>Failed action</strong><span>Name the exact button, form, or billing step that failed and what happened next.</span></div></div><div class="portal-support-simple-actions">' + supportActions + '<a class="portal-support-link" href="mailto:' + escapeAttr(supportEmail) + '">' + escapeHTML(supportEmail) + "</a></div></div></div></section>";+ var hostedViewOnly = isHosted && !canManageHostedTasks;+ var retryCopy = isHosted ? hostedViewOnly ? "Review Workspaces or Access first. If billing is involved, hand it to an owner or admin before you escalate." : "Retry the same Workspaces, Access, or Billing step before you escalate." : "Retry the same Billing step before you escalate.";+ var supportActions = isHosted ? '<button type="button" class="btn-secondary btn-compact" data-shell-action="activate-section" data-shell-section="workspaces">Workspaces</button><button type="button" class="btn-secondary btn-compact" data-shell-action="activate-section" data-shell-section="access">Access</button><button type="button" class="btn-secondary btn-compact" data-shell-action="activate-section" data-shell-section="billing">Billing</button>' : '<button type="button" class="btn-secondary btn-compact" data-shell-action="activate-section" data-shell-section="billing">Billing</button>';+ return '<section class="portal-support-panel"><p>Use Support only after the self-service path fails. Retry the same step before you escalate.</p><div class="portal-support-simple"><div class="portal-support-simple-card"><div class="portal-support-simple-list"><div class="portal-support-simple-row"><strong>Try first</strong><span>' + escapeHTML(retryCopy) + '</span></div><div class="portal-support-simple-row"><strong>Scope</strong><span>' + escapeHTML(supportRunbookPathCopy(isHosted, hostedViewOnly, showSelfHostedCommercial)) + '</span></div><div class="portal-support-simple-row"><strong>Include</strong><span>Account, email, and the exact action that failed.</span></div></div><div class="portal-support-simple-actions">' + supportActions + '<a class="portal-support-link" href="mailto:' + escapeAttr(supportEmail) + '">' + escapeHTML(supportEmail) + "</a></div></div></div></section>";}function renderHeaderHTML(context) {if (context.bootstrap.authenticated) {return '<div class="header-account-chip"><span class="header-account-email">' + escapeHTML(context.bootstrap.email || "") + '</span><button class="logout-btn" id="logout-btn" type="button">Sign out</button></div>';}+ if (!hasSignupPath(context.signupPath)) {+ return "";+ }return '<a class="logout-btn link-button" href="' + escapeAttr(context.signupPath) + '">Create account</a>';}function renderAuthenticatedPortalHTML(context) {@@ -2476,10 +2374,6 @@var activeSection = shellSections.some(function(entry) {return entry.section === preferredSection;}) ? preferredSection : shellSections[0] ? shellSections[0].section : "billing";- var allWorkspaces = collectWorkspaces(accounts);- var hostedBillingCount = accounts.filter(function(account) {- return account.has_billing;- }).length;var billingNote = hosted ? showSelfHostedCommercial ? "Hosted billing by account. Self-hosted purchases stay separate below." : "Hosted billing by account." : "Self-hosted subscriptions, licenses, refunds, and privacy requests.";var selfHostedBillingEscalationCopy = hosted ? "Escalate with the same hosted billing action or self-hosted path and the exact failed step." : "Escalate with the same self-hosted billing path and the exact failed step.";var workspacesContent = accounts.length ? accounts.map(function(account) {@@ -2488,30 +2382,7 @@var accessContent = accounts.length ? accounts.map(function(account) {return '<section class="account-surface">' + renderAccountAccessSection(account) + "</section>";}).join("") : renderNoHostedAccessSection();- return '<div class="portal-shell" data-shell-section="' + activeSection + '"><div class="portal-shell-main">' + renderPortalContextStrip(accounts, showSelfHostedCommercial) + renderShellNavigation(context.bootstrap, activeSection) + (hosted ? '<section class="portal-content-panel portal-content-panel-workspaces">' + renderPageHeader(- "Workspaces",- "Workspaces",- "Open a workspace or manage lifecycle by account.",- renderSummaryStrip([- { label: "Accounts", value: String(accounts.length) },- { label: "Workspaces", value: String(allWorkspaces.length) },- { label: "Ready", value: String(countReadyWorkspaces(allWorkspaces)) },- { label: "Needs review", value: String(attentionWorkspaces(allWorkspaces).length) },- { label: "Suspended", value: String(countWorkspacesByState(allWorkspaces, "suspended")) }- ])- ) + workspacesContent + '</section><section class="portal-content-panel portal-content-panel-access">' + renderPageHeader(- "Access",- "Access",- "Review the roster or open one access task by account."- ) + accessContent + '</section><section class="portal-content-panel portal-content-panel-overview">' + renderShellOverviewSection(context) + "</section>" : "") + '<section class="portal-content-panel portal-content-panel-billing billing-section" id="billing-section">' + renderPageHeader(- "Billing",- "Billing",- billingNote,- renderSummaryStrip([- { label: "Hosted billing", value: String(hostedBillingCount) },- { label: "Self-hosted tasks", value: showSelfHostedCommercial ? "Available" : "Not attached" }- ])- ) + (hosted ? renderHostedBillingCards(accounts, showSelfHostedCommercial) : "") + (showSelfHostedCommercial ? '<div class="billing-shell billing-shell-idle"><div class="billing-shell-main"><div class="billing-shell-main-head"><div class="account-panel-kicker">Self-hosted billing</div><h3>Pick the self-hosted job</h3><p>Use self-hosted billing only for self-hosted purchases. Open one path at a time when hosted billing does not apply.</p></div><div class="billing-action-list">' + renderBillingActionRow("open-manage-billing", "Manage subscriptions", "Billing", "Open Stripe for self-hosted plan, invoice, and payment changes.", "manage-billing-panel", "manage-inline-email", ["Plan changes", "Invoices"]) + renderBillingActionRow("open-retrieve-billing", "Retrieve licenses", "Licenses", "Recover the latest active self-hosted license and invoice link.", "retrieve-billing-panel", "retrieve-inline-email", ["Latest active license", "Invoice lookup"]) + renderBillingActionRow("open-refund-billing", "Refund requests", "Refunds", "Request a self-serve refund when the purchase is still eligible.", "refund-billing-panel", "refund-inline-email", ["Eligibility check", "Revocation"]) + renderBillingActionRow("open-data-billing", "Data and privacy", "Privacy", "Request export or deletion for commercial account data.", "data-billing-panel", "data-export-email", ["Export", "Deletion"]) + '</div><div class="billing-inline-support"><div class="account-panel-kicker">Escalation only</div><h4>Use Support only after Billing fails</h4><p>' + selfHostedBillingEscalationCopy + '</p><div class="billing-inline-support-actions"><button type="button" class="btn-secondary btn-compact" data-shell-action="activate-section" data-shell-section="support">Open support</button><a class="portal-support-link" href="mailto:' + escapeAttr(context.bootstrap.support_email || "") + '">' + escapeHTML(context.bootstrap.support_email || "") + '</a></div></div></div><div class="billing-shell-detail" id="billing-detail-shell" hidden>' + renderBillingTaskPanel(+ return '<div class="portal-shell" data-shell-section="' + activeSection + '"><div class="portal-shell-main">' + renderIdentityBar(accounts, showSelfHostedCommercial) + renderTabBar(context.bootstrap, activeSection) + (hosted ? '<section class="portal-content-panel portal-content-panel-workspaces">' + workspacesContent + '</section><section class="portal-content-panel portal-content-panel-access">' + accessContent + '</section><section class="portal-content-panel portal-content-panel-overview">' + renderShellOverviewSection(context) + "</section>" : "") + '<section class="portal-content-panel portal-content-panel-billing billing-section" id="billing-section">' + (hosted ? renderHostedBillingCards(accounts, showSelfHostedCommercial) : "") + (showSelfHostedCommercial ? '<div class="billing-shell billing-shell-idle"><div class="billing-shell-main"><div class="billing-shell-main-head"><h3>Self-hosted billing</h3><p>Use self-hosted billing only for self-hosted purchases.</p></div><div class="billing-action-list">' + renderBillingActionRow("open-manage-billing", "Manage subscriptions", "Open", "Open Stripe for self-hosted plan, invoice, and payment changes.", "manage-billing-panel", "manage-inline-email", ["Plan changes", "Invoices"]) + renderBillingActionRow("open-retrieve-billing", "Retrieve licenses", "Open", "Recover the latest active self-hosted license and invoice link.", "retrieve-billing-panel", "retrieve-inline-email", ["Latest active license", "Invoice lookup"]) + renderBillingActionRow("open-refund-billing", "Refund requests", "Open", "Request a self-serve refund when the purchase is still eligible.", "refund-billing-panel", "refund-inline-email", ["Eligibility check", "Revocation"]) + renderBillingActionRow("open-data-billing", "Data and privacy", "Open", "Request export or deletion for commercial account data.", "data-billing-panel", "data-export-email", ["Export", "Deletion"]) + '</div><div class="billing-inline-support"><h4>Support</h4><p>' + selfHostedBillingEscalationCopy + '</p><div class="billing-inline-support-actions"><button type="button" class="btn-secondary btn-compact" data-shell-action="activate-section" data-shell-section="support">Open support</button><a class="portal-support-link" href="mailto:' + escapeAttr(context.bootstrap.support_email || "") + '">' + escapeHTML(context.bootstrap.support_email || "") + '</a></div></div></div><div class="billing-shell-detail" id="billing-detail-shell" hidden>' + renderBillingTaskPanel("Manage subscriptions","Open Stripe for self-hosted plan, invoice, and payment changes.","manage-billing-panel",@@ -2544,14 +2415,15 @@var successMessage = context.loginState.successMessage || "If that email is registered, a sign-in link is on the way.";statusHTML = '<div class="billing-status visible success">' + escapeHTML(successMessage) + '<br><br><strong>Need another link?</strong> <a href="#" data-portal-action="resend-magic-link">Send it again</a>.</div>';}- return '<section class="portal-auth-shell"><div class="portal-auth-intro"><div class="account-panel-kicker">Pulse Account</div><h1>Sign in to Pulse Account</h1><p>Use one commercial email address for hosted workspaces, account access, billing, licenses, refunds, and privacy requests.</p><div class="portal-auth-scope-list" aria-label="Pulse Account scope">' + renderAuthScopeRow("Workspaces", "Open hosted workspaces and review lifecycle state.") + renderAuthScopeRow("Access", "Review account access and manage roles when permitted.") + renderAuthScopeRow("Billing", "Open hosted billing or self-hosted commercial tools when they apply.") + '</div></div><section class="portal-auth-panel" aria-labelledby="portal-auth-title"><div class="portal-auth-card"><div class="account-panel-kicker">Sign in</div><h2 id="portal-auth-title">Email sign-in link</h2><p>Enter the commercial email address for your Pulse account. A sign-in link will be sent to that address.</p><div class="form-group portal-auth-form-group"><label for="portal-login-email">Commercial email</label><input id="portal-login-email" type="email" autocomplete="email" placeholder="[email protected]" value="' + escapeAttr(context.loginState.emailValue || "") + '" data-portal-input="login-email"></div><div class="form-actions portal-auth-actions"><button class="btn-primary" id="portal-login-send" type="button" data-portal-action="send-magic-link">' + (context.loginState.request.pending ? "Sending\u2026" : "Send sign-in link") + '</button></div><p class="portal-auth-secondary-action">Need a new Pulse Account? <a href="' + escapeAttr(context.signupPath) + '">Create an account</a>.</p>' + statusHTML + "</div></section></section>";+ var signupHTML = hasSignupPath(context.signupPath) ? '<p class="portal-auth-secondary-action">Need a new Pulse Account? <a href="' + escapeAttr(context.signupPath) + '">Create an account</a>.</p>' : "";+ return '<section class="portal-auth-shell"><div class="portal-auth-intro"><h1>Sign in to Pulse Account</h1><p>Use one commercial email address for hosted workspaces, account access, billing, licenses, refunds, and privacy requests.</p><div class="portal-auth-scope-list" aria-label="Pulse Account scope">' + renderAuthScopeRow("Workspaces", "Open hosted workspaces and review lifecycle state.") + renderAuthScopeRow("Access", "Review account access and manage roles when permitted.") + renderAuthScopeRow("Billing", "Open hosted billing or self-hosted commercial tools when they apply.") + '</div></div><section class="portal-auth-panel" aria-labelledby="portal-auth-title"><div class="portal-auth-card"><h2 id="portal-auth-title">Email sign-in link</h2><p>Enter the commercial email address for your Pulse account. A sign-in link will be sent to that address.</p><div class="form-group portal-auth-form-group"><label for="portal-login-email">Commercial email</label><input id="portal-login-email" type="email" autocomplete="email" placeholder="[email protected]" value="' + escapeAttr(context.loginState.emailValue || "") + '" data-portal-input="login-email"></div><div class="form-actions portal-auth-actions"><button class="btn-primary" id="portal-login-send" type="button" data-portal-action="send-magic-link">' + (context.loginState.request.pending ? "Sending\u2026" : "Send sign-in link") + "</button></div>" + signupHTML + statusHTML + "</div></section></section>";}// src/shell.tsfunction installShell(deps) {function revealActiveNavLink(activeLink) {if (!activeLink) return;- var group = activeLink.closest(".portal-shell-nav-group");+ var group = activeLink.closest(".portal-tab-bar");if (!group || group.scrollWidth <= group.clientWidth) return;if (typeof activeLink.scrollIntoView === "function") {activeLink.scrollIntoView({ block: "nearest", inline: "center" });@@ -2569,7 +2441,7 @@var button = node;var isActive = button.getAttribute("data-shell-section") === activeSection;button.classList.toggle("active", isActive);- if (isActive && button.classList.contains("portal-shell-nav-link")) {+ if (isActive && button.classList.contains("portal-tab")) {activeLink = button;}});@@ -2808,6 +2680,7 @@}}function createBootstrapDefaults(embeddedBootstrap) {+ var signupPath = typeof embeddedBootstrap.signup_path === "string" ? embeddedBootstrap.signup_path : "/signup";return {has_self_hosted_commercial: embeddedBootstrap.has_self_hosted_commercial === true,public_site_url: embeddedBootstrap.public_site_url || "https://pulserelay.pro",@@ -2816,7 +2689,7 @@portal_path: embeddedBootstrap.portal_path || "/portal",bootstrap_path: embeddedBootstrap.bootstrap_path || "/api/portal/bootstrap",magic_link_request_path: embeddedBootstrap.magic_link_request_path || "/api/public/magic-link/request",- signup_path: embeddedBootstrap.signup_path || "/signup",+ signup_path: signupPath,logout_path: embeddedBootstrap.logout_path || "/auth/logout",account_api_base_path: embeddedBootstrap.account_api_base_path || "/api/accounts",portal_api_base_path: embeddedBootstrap.portal_api_base_path || "/api/portal"diff --git a/internal/cloudcp/portal/frontend/src/runtime.test.ts b/internal/cloudcp/portal/frontend/src/runtime.test.tsindex 41b46874a2..bfac3ab4df 100644--- a/internal/cloudcp/portal/frontend/src/runtime.test.ts+++ b/internal/cloudcp/portal/frontend/src/runtime.test.ts@@ -40,6 +40,14 @@ describe('portal runtime', function() {expect(defaults.portal_api_base_path).toBe('/api/portal');});+ it('preserves an explicitly empty signup path', function() {+ var defaults = createBootstrapDefaults({+ signup_path: '',+ });++ expect(defaults.signup_path).toBe('');+ });+it('creates a store from runtime bootstrap input', function() {var runtime = createPortalRuntime({authenticated: true,diff --git a/internal/cloudcp/portal/frontend/src/runtime.ts b/internal/cloudcp/portal/frontend/src/runtime.tsindex 429ac15016..6d1e21d504 100644--- a/internal/cloudcp/portal/frontend/src/runtime.ts+++ b/internal/cloudcp/portal/frontend/src/runtime.ts@@ -63,6 +63,9 @@ export function readPortalRuntimeHandoff(locationHref: string | undefined = windexport function createBootstrapDefaults(embeddedBootstrap: Partial<PortalBootstrapData>): Omit<PortalBootstrapData, 'authenticated' | 'email' | 'accounts'> {+ var signupPath = typeof embeddedBootstrap.signup_path === 'string'+ ? embeddedBootstrap.signup_path+ : '/signup';return {has_self_hosted_commercial: embeddedBootstrap.has_self_hosted_commercial === true,public_site_url: embeddedBootstrap.public_site_url || 'https://pulserelay.pro',@@ -71,7 +74,7 @@ export function createBootstrapDefaults(portal_path: embeddedBootstrap.portal_path || '/portal',bootstrap_path: embeddedBootstrap.bootstrap_path || '/api/portal/bootstrap',magic_link_request_path: embeddedBootstrap.magic_link_request_path || '/api/public/magic-link/request',- signup_path: embeddedBootstrap.signup_path || '/signup',+ signup_path: signupPath,logout_path: embeddedBootstrap.logout_path || '/auth/logout',account_api_base_path: embeddedBootstrap.account_api_base_path || '/api/accounts',portal_api_base_path: embeddedBootstrap.portal_api_base_path || '/api/portal',diff --git a/internal/cloudcp/portal/frontend/src/shell_view.test.ts b/internal/cloudcp/portal/frontend/src/shell_view.test.tsindex 05f9fdef7c..20ffb486ef 100644--- a/internal/cloudcp/portal/frontend/src/shell_view.test.ts+++ b/internal/cloudcp/portal/frontend/src/shell_view.test.ts@@ -73,6 +73,17 @@ describe('shell view', function() {expect(html).not.toContain('logout-btn" id="logout-btn"');});+ it('hides create-account actions when signup is unavailable', function() {+ var context = createContext({+ bootstrap: createBootstrap({ authenticated: false, email: '', signup_path: '' }),+ signupPath: '',+ });++ expect(renderHeaderHTML(context)).toBe('');+ expect(renderSignedOutPortalHTML(context)).not.toContain('Create an account');+ expect(renderSignedOutPortalHTML(context)).not.toContain('Create account');+ });+it('renders empty accounts state with support contact', function() {var html = renderAccountsHTML(createContext());diff --git a/internal/cloudcp/portal/frontend/src/shell_view.ts b/internal/cloudcp/portal/frontend/src/shell_view.tsindex a8a0bae417..25f3a218ce 100644--- a/internal/cloudcp/portal/frontend/src/shell_view.ts+++ b/internal/cloudcp/portal/frontend/src/shell_view.ts@@ -35,6 +35,10 @@ function escapeAttr(value: unknown): string {return escapeHTML(value);}+function hasSignupPath(signupPath: string): boolean {+ return String(signupPath || '').trim() !== '';+}+function titleCase(value: string): string {if (!value) return '';return value.charAt(0).toUpperCase() + value.slice(1);@@ -1167,6 +1171,9 @@ export function renderHeaderHTML(context: ShellViewContext): string {'</div>');}+ if (!hasSignupPath(context.signupPath)) {+ return '';+ }return '<a class="logout-btn link-button" href="' + escapeAttr(context.signupPath) + '">Create account</a>';}@@ -1322,6 +1329,9 @@ export function renderSignedOutPortalHTML(context: ShellViewContext): string {'<br><br><strong>Need another link?</strong> <a href="#" data-portal-action="resend-magic-link">Send it again</a>.' +'</div>';}+ var signupHTML = hasSignupPath(context.signupPath)+ ? '<p class="portal-auth-secondary-action">Need a new Pulse Account? <a href="' + escapeAttr(context.signupPath) + '">Create an account</a>.</p>'+ : '';return ('<section class="portal-auth-shell">' +'<div class="portal-auth-intro">' +@@ -1348,7 +1358,7 @@ export function renderSignedOutPortalHTML(context: ShellViewContext): string {(context.loginState.request.pending ? 'Sending…' : 'Send sign-in link') +'</button>' +'</div>' +- '<p class="portal-auth-secondary-action">Need a new Pulse Account? <a href="' + escapeAttr(context.signupPath) + '">Create an account</a>.</p>' ++ signupHTML +statusHTML +'</div>' +'</section>' +diff --git a/internal/cloudcp/portal/handlers.go b/internal/cloudcp/portal/handlers.goindex 0ad8ddde87..75c09e16e1 100644--- a/internal/cloudcp/portal/handlers.go+++ b/internal/cloudcp/portal/handlers.go@@ -211,6 +211,10 @@ func HandlePortalWorkspaceDetail(reg *registry.TenantRegistry) http.HandlerFunc//// Auth: control-plane session.func HandlePortalBootstrap(sessionSvc *cpauth.Service, reg *registry.TenantRegistry, commercialLookup CommercialIdentityLookup) http.HandlerFunc {+ return HandlePortalBootstrapWithSignupPath(sessionSvc, reg, commercialLookup, PortalSignupPath)+}++func HandlePortalBootstrapWithSignupPath(sessionSvc *cpauth.Service, reg *registry.TenantRegistry, commercialLookup CommercialIdentityLookup, signupPath string) http.HandlerFunc {return func(w http.ResponseWriter, r *http.Request) {if r.Method != http.MethodGet {http.Error(w, "Method not allowed", http.StatusMethodNotAllowed)@@ -241,7 +245,7 @@ func HandlePortalBootstrap(sessionSvc *cpauth.Service, reg *registry.TenantRegisw.Header().Set("Content-Type", "application/json")w.WriteHeader(http.StatusOK)- encodeJSON(w, BuildBootstrapData(true, claims.Email, accounts, resolveSelfHostedCommercial(r.Context(), commercialLookup, claims.Email, accounts)))+ encodeJSON(w, BuildBootstrapDataWithSignupPath(true, claims.Email, accounts, resolveSelfHostedCommercial(r.Context(), commercialLookup, claims.Email, accounts), signupPath))}}diff --git a/internal/cloudcp/portal/page.go b/internal/cloudcp/portal/page.goindex 23f86f4ad2..443f75059b 100644--- a/internal/cloudcp/portal/page.go+++ b/internal/cloudcp/portal/page.go@@ -69,6 +69,10 @@ var errPortalAuthRequired = errors.New("portal auth required")// - No session or invalid session -> shows a magic-link login form// - Valid session -> shows workspace list with management actionsfunc HandlePortalPage(sessionSvc *cpauth.Service, reg *registry.TenantRegistry, commercialLookup CommercialIdentityLookup, faviconHref string) http.HandlerFunc {+ return HandlePortalPageWithSignupPath(sessionSvc, reg, commercialLookup, faviconHref, PortalSignupPath)+}++func HandlePortalPageWithSignupPath(sessionSvc *cpauth.Service, reg *registry.TenantRegistry, commercialLookup CommercialIdentityLookup, faviconHref string, signupPath string) http.HandlerFunc {return func(w http.ResponseWriter, r *http.Request) {if r.Method != http.MethodGet {http.Error(w, "Method not allowed", http.StatusMethodNotAllowed)@@ -86,9 +90,9 @@ func HandlePortalPage(sessionSvc *cpauth.Service, reg *registry.TenantRegistry,http.Error(w, "internal error", http.StatusInternalServerError)return}- renderPortalPage(w, nonce, faviconHref, BuildBootstrapData(true, claims.Email, accounts, resolveSelfHostedCommercial(r.Context(), commercialLookup, claims.Email, accounts)))+ renderPortalPage(w, nonce, faviconHref, BuildBootstrapDataWithSignupPath(true, claims.Email, accounts, resolveSelfHostedCommercial(r.Context(), commercialLookup, claims.Email, accounts), signupPath))case errors.Is(err, errPortalAuthRequired):- renderPortalPage(w, nonce, faviconHref, BuildAnonymousBootstrapData())+ renderPortalPage(w, nonce, faviconHref, BuildAnonymousBootstrapDataWithSignupPath(signupPath))default:log.Error().Err(err).Msg("cloudcp.portal.page: validate session")http.Error(w, "internal error", http.StatusInternalServerError)diff --git a/internal/cloudcp/routes.go b/internal/cloudcp/routes.goindex 4dceae9ef8..ea9940e75a 100644--- a/internal/cloudcp/routes.go+++ b/internal/cloudcp/routes.go@@ -32,6 +32,13 @@ type Deps struct {EmailSender email.Sender}+func publicCloudSignupPath(cfg *CPConfig) string {+ if cfg != nil && cfg.PublicCloudSignupEnabled {+ return portal.PortalSignupPath+ }+ return ""+}+// RegisterRoutes wires all HTTP handlers onto the given ServeMux.func RegisterRoutes(mux *http.ServeMux, deps *Deps) {webhookLimiter := NewCPRateLimiter(deps.Config.WebhookRateLimitPerMinute, time.Minute)@@ -49,6 +56,7 @@ func RegisterRoutes(mux *http.ServeMux, deps *Deps) {hostedEntitlementRefreshLimiter := NewCPRateLimiter(60, time.Hour)publicSignupLimiter := NewCPRateLimiter(30, time.Minute)publicMagicLinkLimiter := NewCPRateLimiter(20, time.Minute)+ publicCloudSignupPath := publicCloudSignupPath(deps.Config)adminAuth := func(next http.Handler) http.Handler {return admin.AdminKeyMiddleware(deps.Config.AdminKey, next)@@ -146,15 +154,20 @@ func RegisterRoutes(mux *http.ServeMux, deps *Deps) {mux.Handle("/api/entitlements/refresh", hostedEntitlementRefreshLimiter.Middleware(http.HandlerFunc(hostedEntitlementHandlers.HandleRefresh)))mux.Handle("/api/trial-signup/refresh", hostedEntitlementRefreshLimiter.Middleware(http.HandlerFunc(hostedEntitlementHandlers.HandleRefresh)))- // Pulse Cloud self-serve signup: public page + API checkout + magic-link request.+ // Public commercial magic-link requests stay available for existing hosted+ // accounts even while public v6 Cloud signup remains prelaunch-disabled.publicCloudSignupHandlers := NewPublicCloudSignupHandlers(deps.Config, deps.Registry, deps.MagicLinks, deps.EmailSender)- mux.Handle("/signup", publicSignupLimiter.Middleware(http.HandlerFunc(publicCloudSignupHandlers.HandleSignupPage)))- mux.Handle("/cloud/signup", publicSignupLimiter.Middleware(http.HandlerFunc(publicCloudSignupHandlers.HandleSignupPage)))- mux.Handle("/signup/complete", publicSignupLimiter.Middleware(http.HandlerFunc(publicCloudSignupHandlers.HandleSignupComplete)))- mux.Handle("/cloud/signup/complete", publicSignupLimiter.Middleware(http.HandlerFunc(publicCloudSignupHandlers.HandleSignupComplete)))- mux.Handle("/api/public/signup", publicSignupLimiter.Middleware(http.HandlerFunc(publicCloudSignupHandlers.HandlePublicSignup)))mux.Handle("/api/public/magic-link/request", publicMagicLinkLimiter.Middleware(http.HandlerFunc(publicCloudSignupHandlers.HandlePublicMagicLinkRequest)))+ // Pulse Cloud self-serve signup: public page + API checkout.+ if publicCloudSignupPath != "" {+ mux.Handle("/signup", publicSignupLimiter.Middleware(http.HandlerFunc(publicCloudSignupHandlers.HandleSignupPage)))+ mux.Handle("/cloud/signup", publicSignupLimiter.Middleware(http.HandlerFunc(publicCloudSignupHandlers.HandleSignupPage)))+ mux.Handle("/signup/complete", publicSignupLimiter.Middleware(http.HandlerFunc(publicCloudSignupHandlers.HandleSignupComplete)))+ mux.Handle("/cloud/signup/complete", publicSignupLimiter.Middleware(http.HandlerFunc(publicCloudSignupHandlers.HandleSignupComplete)))+ mux.Handle("/api/public/signup", publicSignupLimiter.Middleware(http.HandlerFunc(publicCloudSignupHandlers.HandlePublicSignup)))+ }+// Admin API (key-authenticated)tenantsHandler := admin.HandleListTenants(deps.Registry)mux.Handle("/admin/tenants", adminLimiter.Middleware(adminAuth(tenantsHandler)))@@ -241,7 +254,7 @@ func RegisterRoutes(mux *http.ServeMux, deps *Deps) {mux.Handle("/api/accounts/{account_id}/tenants/{tenant_id}/handoff", accountAPILimiter.Middleware(accountSessionAuth(accountIDFromPath, handoffHandler)))// MSP portal API (session + account-membership authenticated)- mux.Handle(portal.PortalBootstrapPath, portalAPILimiter.Middleware(sessionAuth(portal.HandlePortalBootstrap(deps.MagicLinks, deps.Registry, portalCommercialLookup))))+ mux.Handle(portal.PortalBootstrapPath, portalAPILimiter.Middleware(sessionAuth(portal.HandlePortalBootstrapWithSignupPath(deps.MagicLinks, deps.Registry, portalCommercialLookup, publicCloudSignupPath))))mux.Handle(portal.PortalDashboardPath, portalAPILimiter.Middleware(accountSessionAuth(accountIDFromPortalRequest, portal.HandlePortalDashboard(deps.Registry))))mux.Handle(portal.PortalWorkspacePath, portalAPILimiter.Middleware(accountSessionAuth(accountIDFromPortalRequest, portal.HandlePortalWorkspaceDetail(deps.Registry))))@@ -257,5 +270,5 @@ func RegisterRoutes(mux *http.ServeMux, deps *Deps) {// MSP/Cloud portal HTML page — self-authenticating (shows login form if no session)portalPageLimiter := NewCPRateLimiter(60, time.Minute)- mux.Handle(portal.PortalPagePath, portalPageLimiter.Middleware(http.HandlerFunc(portal.HandlePortalPage(deps.MagicLinks, deps.Registry, portalCommercialLookup, controlPlaneFaviconHref()))))+ mux.Handle(portal.PortalPagePath, portalPageLimiter.Middleware(http.HandlerFunc(portal.HandlePortalPageWithSignupPath(deps.MagicLinks, deps.Registry, portalCommercialLookup, controlPlaneFaviconHref(), publicCloudSignupPath))))}diff --git a/internal/cloudcp/routes_auth_test.go b/internal/cloudcp/routes_auth_test.goindex 2a1cfca004..056f502e56 100644--- a/internal/cloudcp/routes_auth_test.go+++ b/internal/cloudcp/routes_auth_test.go@@ -412,7 +412,7 @@ func TestRegisterRoutes_PortalPageSessionModes(t *testing.T) {`id="portal-app-root"`,`"authenticated":false`,`"magic_link_request_path":"` + portal.PortalMagicLinkRequestPath + `"`,- `"signup_path":"` + portal.PortalSignupPath + `"`,+ `"signup_path":""`,"Enter the commercial email address for your Pulse account.",} {if !strings.Contains(unauthRec.Body.String(), needle) {@@ -433,12 +433,6 @@ func TestRegisterRoutes_PortalPageSessionModes(t *testing.T) {`id="pulse-account-bootstrap"`,`id="portal-app-root"`,`"authenticated":true`,- "Account tasks",- "Overview",- "Workspaces",- "Access",- "Billing",- "Support",} {if !strings.Contains(authRec.Body.String(), needle) {t.Fatalf("expected authenticated portal page to contain %q, body=%q", needle, authRec.Body.String())diff --git a/internal/cloudcp/routes_test.go b/internal/cloudcp/routes_test.goindex 54ed03a89e..6df94115d6 100644--- a/internal/cloudcp/routes_test.go+++ b/internal/cloudcp/routes_test.go@@ -25,10 +25,11 @@ func TestRegisterRoutes_AccountAndTenantMethodDispatch(t *testing.T) {mux := http.NewServeMux()RegisterRoutes(mux, &Deps{Config: &CPConfig{- DataDir: dir,- AdminKey: "test-admin-key",- BaseURL: "https://cloud.example.com",- StripeWebhookSecret: "whsec_test",+ DataDir: dir,+ AdminKey: "test-admin-key",+ BaseURL: "https://cloud.example.com",+ StripeWebhookSecret: "whsec_test",+ PublicCloudSignupEnabled: true,},Registry: reg,TrialSignupStore: trialStore,@@ -108,10 +109,11 @@ func TestRegisterRoutes_FaviconRouteParity(t *testing.T) {mux := http.NewServeMux()RegisterRoutes(mux, &Deps{Config: &CPConfig{- DataDir: dir,- AdminKey: "test-admin-key",- BaseURL: "https://cloud.example.com",- StripeWebhookSecret: "whsec_test",+ DataDir: dir,+ AdminKey: "test-admin-key",+ BaseURL: "https://cloud.example.com",+ StripeWebhookSecret: "whsec_test",+ PublicCloudSignupEnabled: true,},Registry: reg,TrialSignupStore: trialStore,@@ -162,10 +164,11 @@ func TestRegisterRoutes_TrialSignupRoutes(t *testing.T) {mux := http.NewServeMux()RegisterRoutes(mux, &Deps{Config: &CPConfig{- DataDir: dir,- AdminKey: "test-admin-key",- BaseURL: "https://cloud.example.com",- StripeWebhookSecret: "whsec_test",+ DataDir: dir,+ AdminKey: "test-admin-key",+ BaseURL: "https://cloud.example.com",+ StripeWebhookSecret: "whsec_test",+ PublicCloudSignupEnabled: true,},Registry: reg,TrialSignupStore: trialStore,@@ -286,10 +289,11 @@ func TestRegisterRoutes_PublicCloudSignupRoutes(t *testing.T) {mux := http.NewServeMux()RegisterRoutes(mux, &Deps{Config: &CPConfig{- DataDir: dir,- AdminKey: "test-admin-key",- BaseURL: "https://cloud.example.com",- StripeWebhookSecret: "whsec_test",+ DataDir: dir,+ AdminKey: "test-admin-key",+ BaseURL: "https://cloud.example.com",+ StripeWebhookSecret: "whsec_test",+ PublicCloudSignupEnabled: true,},Registry: reg,TrialSignupStore: trialStore,@@ -328,3 +332,55 @@ func TestRegisterRoutes_PublicCloudSignupRoutes(t *testing.T) {t.Fatalf("POST /api/public/magic-link/request status=%d, want %d", publicMagicLinkRec.Code, http.StatusOK)}}++func TestRegisterRoutes_PublicCloudSignupRoutesDisabledByDefault(t *testing.T) {+ dir := t.TempDir()+ reg, err := registry.NewTenantRegistry(dir)+ if err != nil {+ t.Fatalf("NewTenantRegistry: %v", err)+ }+ t.Cleanup(func() { _ = reg.Close() })+ trialStore, err := NewTrialSignupStore(dir)+ if err != nil {+ t.Fatalf("NewTrialSignupStore: %v", err)+ }+ t.Cleanup(func() { trialStore.Close() })++ mux := http.NewServeMux()+ RegisterRoutes(mux, &Deps{+ Config: &CPConfig{+ DataDir: dir,+ AdminKey: "test-admin-key",+ BaseURL: "https://cloud.example.com",+ StripeWebhookSecret: "whsec_test",+ },+ Registry: reg,+ TrialSignupStore: trialStore,+ Version: "test",+ })++ for _, tc := range []struct {+ method string+ path string+ }{+ {method: http.MethodGet, path: "/signup"},+ {method: http.MethodGet, path: "/cloud/signup"},+ {method: http.MethodGet, path: "/signup/complete"},+ {method: http.MethodPost, path: "/api/public/signup"},+ } {+ req := httptest.NewRequest(tc.method, tc.path, nil)+ rec := httptest.NewRecorder()+ mux.ServeHTTP(rec, req)+ if rec.Code != http.StatusNotFound {+ t.Fatalf("%s %s status=%d, want %d", tc.method, tc.path, rec.Code, http.StatusNotFound)+ }+ }++ publicMagicLinkReq := httptest.NewRequest(http.MethodPost, "/api/public/magic-link/request", strings.NewReader(`{"email":"[email protected]"}`))+ publicMagicLinkReq.Header.Set("Content-Type", "application/json")+ publicMagicLinkRec := httptest.NewRecorder()+ mux.ServeHTTP(publicMagicLinkRec, publicMagicLinkReq)+ if publicMagicLinkRec.Code != http.StatusOK {+ t.Fatalf("POST /api/public/magic-link/request status=%d, want %d", publicMagicLinkRec.Code, http.StatusOK)+ }+}