Skip to content

armgit / Pulse

Public Imported from GitHub
0

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.

Redesign portal as a calmer account surface

rcourtman7f25d083c0c0
diff --git a/docs/release-control/v6/internal/PULSE_ACCOUNT_PORTAL_SPEC.md b/docs/release-control/v6/internal/PULSE_ACCOUNT_PORTAL_SPEC.md
index b7b14746df..9fd6b625be 100644
--- a/docs/release-control/v6/internal/PULSE_ACCOUNT_PORTAL_SPEC.md
+++ b/docs/release-control/v6/internal/PULSE_ACCOUNT_PORTAL_SPEC.md
@@ -272,6 +272,12 @@ Core rules:
Support copy follows the same rule: escalation surfaces must name the
exact task path, account/email, and failed step in short literal wording,
not long procedural prose.
+41. The signed-in shell must stay visually subordinate to the task itself.
+ Presentation should read like a calm account-operations surface: flat
+ light surfaces, restrained accent use, list/detail or row-based task
+ presentation, and hierarchy driven by spacing, typography, and dividers
+ instead of dashboard chrome, decorative dark rails, nested card stacks,
+ or dense pill collections competing with the active job.
## Screen Model
diff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.md
index 69595b942f..ec31b07fcc 100644
--- a/docs/release-control/v6/internal/subsystems/api-contracts.md
+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md
@@ -385,7 +385,12 @@ That same typed portal page contract also owns favicon cache-busting: the
rendered `<link rel="icon">` must point at the shared `/favicon.svg` asset
through a versioned href so new portal icon revisions bypass browser cache on
deploy instead of waiting for asset expiry.
-That same typed overview contract must also preserve a sharp, high-density enterprise visual aesthetic (e.g. Cloudflare/GCP density standards) across all portal scenarios, removing gradients and heavy box-shadows to ensure a calm, rigorous visual language with standard 256px sidebars, Inter-grade typography, clean text-transform rules, and cleanly unboxed typography without excessive pills or stacked metrics.
+That same typed overview contract must also preserve a calm, flat account-tool
+visual posture across all portal scenarios: no gradients, heavy shadows, or
+decorative dashboard chrome; lighter shell framing; list/detail and row-based
+task presentation; restrained accent use; and hierarchy driven by spacing,
+typography, and dividers rather than dense pills, stacked metrics, or
+ornamental side rails competing with the active task.
plus a package-local `tsc --noEmit` gate, so future account-shell work should
extend the typed source boundary instead of reviving opaque global runtime
objects, document-wide render events, or untyped embedded asset edits.
diff --git a/docs/release-control/v6/internal/subsystems/cloud-paid.md b/docs/release-control/v6/internal/subsystems/cloud-paid.md
index 04164d8b18..c4c45c1ce8 100644
--- a/docs/release-control/v6/internal/subsystems/cloud-paid.md
+++ b/docs/release-control/v6/internal/subsystems/cloud-paid.md
@@ -274,7 +274,7 @@ deployment instead of appearing only after a live push. The portal page itself
must also reference that shared favicon through a versioned href so updated
icon revisions bypass browser cache on deploy instead of waiting for asset
expiry.
-That same frontend delivery boundary must keep the account portal visual language sharp and high-density, avoiding gradients, heavy shadows, and decorative SaaS styling in favor of a clean, restrained, Cloudflare/GCP-grade baseline with flat inline workspace action rows and text-driven unboxed metadata instead of pills and absolutely inline row actions.
+That same frontend delivery boundary must keep the account portal visual language sharp and restrained, avoiding gradients, heavy shadows, decorative SaaS styling, and shell chrome that dominates the active task. The canonical target is a calm, flat account-operations surface: lighter shell framing, list/detail and row-based task presentation, spacing/typography/divider hierarchy, and only limited badge or pill use where the runtime truth genuinely needs it.
That same portal delivery boundary also owns the checked-in embedded bundle in
`internal/cloudcp/portal/dist/`. Visual or interaction changes are not
complete when they exist only in the local preview runtime or in hand-edited
@@ -905,6 +905,12 @@ lead directly with the self-hosted job picker. `Support` follows
the same account-shape rule: self-hosted-only accounts reduce to the billing
escalation path and billing-specific handoff packet only, and hosted
workspace/access escalation routes must not render without hosted accounts.
+That same owned shell also owns the signed-in visual posture: the portal
+should read like a serious settings/account tool rather than a dashboard.
+Navigation chrome, account framing, and overview panels must stay visually
+quieter than the active task surface, with flatter light treatment and
+list-first task presentation instead of dark ornamental rails or nested
+explanatory cards.
The same shell/runtime boundary must also stay honest to hosted-account
permissions: when the current role is view-only, `Workspaces`, `Access`, and
hosted `Billing` copy must not advertise create, roster-mutation, or hosted
diff --git a/internal/cloudcp/portal/dist/build_manifest.json b/internal/cloudcp/portal/dist/build_manifest.json
index 179672e067..4486b5ecef 100644
--- a/internal/cloudcp/portal/dist/build_manifest.json
+++ b/internal/cloudcp/portal/dist/build_manifest.json
@@ -1,5 +1,5 @@
{
- "source_hash": "60cfbc5a3ac053a63885f103222f7ffeecb7c99a1e533e184fab34208d4b4e28",
+ "source_hash": "907404c494915ca193b1ae63995024d128a4f998d512cbe7c62a911574ab320b",
"build_inputs": [
"package.json",
"tsconfig.json",
diff --git a/internal/cloudcp/portal/dist/portal_app.css b/internal/cloudcp/portal/dist/portal_app.css
index 595beebf54..d0ad6e2f80 100644
--- a/internal/cloudcp/portal/dist/portal_app.css
+++ b/internal/cloudcp/portal/dist/portal_app.css
@@ -3070,3 +3070,817 @@ header .logout-btn:hover,
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;
+}
+@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-support-layout {
+ grid-template-columns: 1fr;
+ }
+ .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;
+ }
+}
diff --git a/internal/cloudcp/portal/dist/portal_app.js b/internal/cloudcp/portal/dist/portal_app.js
index 5c1afd0a2a..d65b9331ad 100644
--- a/internal/cloudcp/portal/dist/portal_app.js
+++ b/internal/cloudcp/portal/dist/portal_app.js
@@ -2152,9 +2152,9 @@
}
return '<span class="badge badge-checking">' + escapeHTML(workspaceHealthLabel(workspace)) + "</span>";
}
- function renderBillingActionRow(id, kicker, title, actionLabel, description, panelID, focusID, highlights) {
- var meta = highlights.join(" \u2022 ");
- return '<article class="billing-action-row"><div class="billing-action-main"><div class="billing-action-tags billing-action-tags-tight"><span class="billing-card-kicker">' + kicker + '</span><span class="billing-action-meta-chip">' + escapeHTML(meta) + '</span></div><div class="billing-action-copy"><h3>' + title + "</h3><p>" + description + '</p></div></div><div class="billing-action-cta"><button class="btn-secondary billing-action-button" type="button" id="' + id + '" data-account-billing-action="open-billing-panel" data-account-billing-panel="' + panelID + '" data-account-billing-focus="' + focusID + '" data-shell-target="billing">' + escapeHTML(actionLabel) + "</button></div></article>";
+ function renderBillingActionRow(id, title, actionLabel, description, panelID, focusID, highlights) {
+ var meta = escapeHTML(highlights.join(" \u2022 "));
+ return '<article class="billing-action-row"><div class="billing-action-main"><div class="billing-action-copy"><h3>' + title + "</h3><p>" + description + '</p></div><div class="billing-action-meta">' + meta + '</div></div><div class="billing-action-cta"><button class="btn-secondary billing-action-button" type="button" id="' + id + '" data-account-billing-action="open-billing-panel" data-account-billing-panel="' + panelID + '" data-account-billing-focus="' + focusID + '" data-shell-target="billing">' + escapeHTML(actionLabel) + "</button></div></article>";
}
function renderSectionContextChips(chips) {
if (!chips.length) return "";
@@ -2192,56 +2192,19 @@
function renderAccountContextStrip(account) {
var workspaceLabel = workspaceCountLabel((account.workspaces || []).length);
var billingLabel = accountContextBillingSummary(account);
- return '<section class="portal-account-context"><div class="portal-account-context-copy"><div class="portal-account-context-meta"><span class="account-eyebrow">' + escapeHTML(accountKindLabel(account)) + '</span><span class="portal-account-context-separator">/</span><span class="portal-account-context-access">' + escapeHTML(accountContextRoleMeta(account)) + '</span></div><div class="portal-account-context-row"><h2>' + escapeHTML(account.name) + '</h2><div class="portal-account-context-chips"><span class="account-context-chip">' + escapeHTML(account.kind_label) + '</span><span class="account-context-chip">' + escapeHTML(portalRoleLabel(account.role)) + '</span><span class="account-context-chip">' + escapeHTML(workspaceLabel) + "</span></div></div><p>" + escapeHTML(accountContextLeadCopy(account)) + '</p></div><div class="portal-account-context-summary"><div class="portal-account-context-stat"><span>Access</span><strong>' + escapeHTML(accountContextAccessSummary(account)) + '</strong></div><div class="portal-account-context-stat"><span>Workspaces</span><strong>' + escapeHTML(workspaceLabel) + '</strong></div><div class="portal-account-context-stat"><span>Billing</span><strong>' + escapeHTML(billingLabel) + "</strong></div></div></section>";
+ return '<section class="portal-account-context"><div class="portal-account-context-copy"><div class="portal-account-context-meta"><span class="account-eyebrow">' + escapeHTML(accountKindLabel(account)) + '</span><span class="portal-account-context-separator">/</span><span class="portal-account-context-access">' + escapeHTML(accountContextRoleMeta(account)) + '</span></div><div class="portal-account-context-row portal-account-context-row-title"><h2>' + escapeHTML(account.name) + "</h2></div><p>" + escapeHTML(accountContextLeadCopy(account)) + '</p></div><div class="portal-account-context-summary"><div class="portal-account-context-stat"><span>Access</span><strong>' + escapeHTML(accountContextAccessSummary(account)) + '</strong></div><div class="portal-account-context-stat"><span>Workspaces</span><strong>' + escapeHTML(workspaceLabel) + '</strong></div><div class="portal-account-context-stat"><span>Billing</span><strong>' + escapeHTML(billingLabel) + "</strong></div></div></section>";
}
- function shellSectionButton(section, activeSection, index, title, copy, badge) {
+ function shellSectionButton(section, activeSection, title, badge) {
var badgeHTML = badge ? '<span class="portal-shell-nav-badge">' + escapeHTML(badge) + "</span>" : "";
- return '<button class="portal-shell-nav-link' + (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-group"><span class="portal-shell-nav-index">' + escapeHTML(index) + '</span><span class="portal-shell-nav-label">' + title + "</span></span>" + badgeHTML + '</span><span class="portal-shell-nav-copy">' + copy + "</span></button>";
+ return '<button class="portal-shell-nav-link' + (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>" + badgeHTML + "</span></button>";
}
- function workspaceNavCopy(hosted, canManage) {
- if (!hosted) {
- return "Unavailable on this account. Hosted workspaces are not attached here.";
- }
- if (canManage) {
- return "Open a workspace, review lifecycle state, or create one.";
- }
- return "Open a workspace and review current state. An owner or admin must create or change hosted workspaces.";
- }
- function accessNavCopy(hosted, canManage) {
- if (!hosted) {
- return "Unavailable on this account. Hosted roster and role controls live only on hosted workspace accounts.";
- }
- if (canManage) {
- return "Invite people, change roles, and remove account access.";
- }
- return "Review who already has access to this hosted account. An owner or admin must make changes.";
- }
- function billingNavCopy(hostedBillingCount, canManageHostedBilling) {
- if (hostedBillingCount > 0) {
- if (canManageHostedBilling) {
- return "Hosted billing first, then self-hosted licenses, refunds, and privacy only when relevant.";
- }
- return "Hosted billing is attached here, but an owner or admin must open it.";
- }
- return "Self-hosted billing, licenses, refunds, and privacy.";
- }
- function supportNavCopy(hosted, canManageHostedTasks) {
- if (!hosted) {
- return "Escalation only after the billing path is exhausted.";
- }
- if (canManageHostedTasks) {
- return "Escalation only after the workspace, access, or billing path is exhausted.";
- }
- return "Escalation only after the review, owner/admin, or billing path is exhausted.";
- }
- function renderShellNavigation(accounts, supportEmail, activeSection) {
+ function renderShellNavigation(accounts, activeSection) {
var hosted = hasHostedAccounts(accounts);
var workspaces = collectWorkspaces(accounts);
var totalWorkspaces = workspaces.length;
var readyWorkspaces = countReadyWorkspaces(workspaces);
var attentionCount = attentionWorkspaces(workspaces).length;
var hostedBillingCount = 0;
- var canManageHostedBilling = false;
var canManage = false;
for (var i = 0; i < accounts.length; i += 1) {
if (accounts[i].can_manage) {
@@ -2249,12 +2212,9 @@
}
if (accounts[i].has_billing) {
hostedBillingCount += 1;
- if (accounts[i].can_manage) {
- canManageHostedBilling = true;
- }
}
}
- return '<aside class="portal-shell-nav" aria-label="Pulse Account sections"><div class="portal-shell-nav-header"><div class="portal-shell-nav-eyebrow">Pulse Account</div><div class="portal-shell-nav-title">Account tasks</div><div class="portal-shell-nav-support">' + (hosted ? "Use Workspaces, then Access, then Billing. Use Support only if those paths fail." : "Use Billing first. Use Support only if that path fails.") + '</div></div><div class="portal-shell-nav-group">' + shellSectionButton("overview", activeSection, "01", "Overview", "Review workspace counts, current state, and the current action.", overviewNavBadgeLabel(hosted, attentionCount, readyWorkspaces)) + shellSectionButton("workspaces", activeSection, "02", "Workspaces", workspaceNavCopy(hosted, canManage), workspacesNavBadgeLabel(hosted, totalWorkspaces)) + shellSectionButton("access", activeSection, "03", "Access", accessNavCopy(hosted, canManage), accessNavBadgeLabel(hosted, canManage)) + shellSectionButton("billing", activeSection, "04", "Billing", billingNavCopy(hostedBillingCount, canManageHostedBilling), billingNavBadgeLabel(hostedBillingCount)) + shellSectionButton("support", activeSection, "05", "Support", supportNavCopy(hosted, canManage), supportNavBadgeLabel()) + "</div></aside>";
+ return '<aside class="portal-shell-nav" aria-label="Pulse Account sections"><div class="portal-shell-nav-header"><div class="portal-shell-nav-eyebrow">Pulse Account</div><div class="portal-shell-nav-title">' + (hosted ? "Account" : "Billing account") + '</div></div><div class="portal-shell-nav-group">' + shellSectionButton("overview", activeSection, "Overview", overviewNavBadgeLabel(hosted, attentionCount, readyWorkspaces)) + shellSectionButton("workspaces", activeSection, "Workspaces", workspacesNavBadgeLabel(hosted, totalWorkspaces)) + shellSectionButton("access", activeSection, "Access", accessNavBadgeLabel(hosted, canManage)) + shellSectionButton("billing", activeSection, "Billing", billingNavBadgeLabel(hostedBillingCount)) + shellSectionButton("support", activeSection, "Support", supportNavBadgeLabel()) + "</div></aside>";
}
function renderWorkspaceCard(account, workspace, accountAPIBasePath) {
var status = workspaceHealthState(workspace);
@@ -2429,7 +2389,7 @@
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">Overview</div><h3>Account state</h3><p>Hosted workspace counts, current state, and current action.</p>' + renderSectionContextChips(chips) + '</div></div><div class="overview-task-grid">' + renderOverviewAttentionCard(accounts, entries, showSelfHostedCommercial) + renderOverviewReadyCard(accounts, entries, context.accountAPIBasePath) + renderOverviewNextActionCard(accounts, entries, context.accountAPIBasePath, showSelfHostedCommercial) + "</div></section>";
+ 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">Overview</div><h3>Current state</h3><p>Hosted workspace counts and the next available action.</p>' + renderSectionContextChips(chips) + '</div></div><div class="overview-task-grid">' + 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>';
@@ -2485,7 +2445,7 @@
}
return 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-task-card"><div class="account-panel-kicker">Hosted billing</div><h3>' + escapeHTML(account.name) + '</h3><p>Invoices, payment methods, and hosted subscription changes for this account live here.</p><div class="billing-task-points"><div class="billing-task-point"><strong>Use when hosted billing is the job</strong><span>Keep workspace lifecycle work in Workspaces and access changes in Access.</span></div><div class="billing-task-point"><strong>Stay account-specific</strong><span>Open billing from the exact hosted account you want to change.</span></div></div><div class="billing-task-actions">' + actionHTML + "</div></article>";
+ return '<article class="billing-task-card"><div class="account-panel-kicker">Hosted billing</div><h3>' + escapeHTML(account.name) + '</h3><p>Invoices, payment methods, and hosted subscription changes for this account live here.</p><div class="billing-task-meta">Keep workspace lifecycle work in Workspaces and access changes in Access.</div><div class="billing-task-actions">' + actionHTML + "</div></article>";
}).join("");
}
function renderBillingTaskPanel(title, copy, panelID, bodyHTML) {
@@ -2508,7 +2468,7 @@
var supportChips = supportSectionChipLabels(hasHostedAccounts2, hostedViewOnly, supportEmail);
var routeCards = hasHostedAccounts2 ? '<div class="portal-support-route-card"><div class="account-panel-kicker">Workspaces or Access</div><h3>' + hostedSupportRouteTitle(hostedViewOnly) + "</h3><p>" + hostedSupportRouteDescription(hostedViewOnly) + '</p><div class="portal-support-points"><div class="portal-support-point"><strong>Task</strong><span>' + hostedSupportRouteTaskCopy(hostedViewOnly) + '</span></div><div class="portal-support-point"><strong>' + hostedSupportRouteContextLabel(hostedViewOnly) + "</strong><span>" + hostedSupportRouteContextCopy(hostedViewOnly) + '</span></div></div><div class="portal-support-actions"><button type="button" class="btn-secondary btn-compact" data-shell-action="activate-section" data-shell-section="workspaces">Open Workspaces</button><button type="button" class="btn-secondary btn-compact" data-shell-action="activate-section" data-shell-section="access">Open Access</button><a class="portal-support-link" href="mailto:' + escapeAttr(supportEmail) + '">' + escapeHTML(supportEmail) + '</a></div></div><div class="portal-support-route-card"><div class="account-panel-kicker">' + (showSelfHostedCommercial ? "Billing" : "Hosted billing") + "</div><h3>" + billingSupportRouteTitle(hostedViewOnly, showSelfHostedCommercial) + "</h3><p>" + billingSupportRouteDescription(hostedViewOnly, showSelfHostedCommercial) + '</p><div class="portal-support-points"><div class="portal-support-point"><strong>Billing job</strong><span>' + billingSupportRouteJobCopy(hostedViewOnly, showSelfHostedCommercial) + '</span></div><div class="portal-support-point"><strong>Account or email</strong><span>' + billingSupportRouteAccountCopy(hostedViewOnly, showSelfHostedCommercial) + '</span></div></div><div class="portal-support-actions"><button type="button" class="btn-secondary btn-compact" data-shell-action="activate-section" data-shell-section="billing">Open billing</button><a class="portal-support-link" href="mailto:' + escapeAttr(supportEmail) + '">' + escapeHTML(supportEmail) + "</a></div></div>" : '<div class="portal-support-route-card"><div class="account-panel-kicker">Self-hosted billing</div><h3>Self-hosted billing failed</h3><p>Escalate only if a self-hosted billing task still fails.</p><div class="portal-support-points"><div class="portal-support-point"><strong>Billing job</strong><span>Billing, licenses, refunds, or privacy.</span></div><div class="portal-support-point"><strong>Account or email</strong><span>Include the commercial billing email and the failed step.</span></div></div><div class="portal-support-actions"><button type="button" class="btn-secondary btn-compact" data-shell-action="activate-section" data-shell-section="billing">Open billing</button><a class="portal-support-link" href="mailto:' + escapeAttr(supportEmail) + '">' + escapeHTML(supportEmail) + "</a></div></div>";
var runbookSteps = hasHostedAccounts2 ? '<div class="portal-support-runbook-step"><strong>1. Failed path</strong><span>' + supportRunbookPathCopy(hasHostedAccounts2, hostedViewOnly, showSelfHostedCommercial) + '</span></div><div class="portal-support-runbook-step"><strong>2. Account or email</strong><span>' + supportRunbookAccountCopy(hasHostedAccounts2, showSelfHostedCommercial) + '</span></div><div class="portal-support-runbook-step"><strong>3. Failed action</strong><span>Name the exact button, form, or billing step that failed and what happened next.</span></div>' : '<div class="portal-support-runbook-step"><strong>1. Billing job</strong><span>' + supportRunbookPathCopy(hasHostedAccounts2, hostedViewOnly, showSelfHostedCommercial) + '</span></div><div class="portal-support-runbook-step"><strong>2. Account or email</strong><span>' + supportRunbookAccountCopy(hasHostedAccounts2, showSelfHostedCommercial) + '</span></div><div class="portal-support-runbook-step"><strong>3. Failed action</strong><span>Name the exact button, form, or billing step that failed and what happened next.</span></div>';
- return '<section class="portal-support-panel"><div class="account-panel-kicker">Support</div><h2>Escalation only</h2><p>' + escapeHTML(supportLead) + "</p>" + renderSectionContextChips(supportChips) + '<div class="portal-support-layout"><div class="portal-support-route-grid">' + routeCards + '</div><div class="portal-support-runbook"><div class="account-panel-kicker">What to send</div><h3>Send these details</h3><p>Send the failed path, account or email, and failed action.</p><div class="portal-support-runbook-list">' + runbookSteps + "</div></div></div></section>";
+ return '<section class="portal-support-panel"><div class="account-panel-kicker">Support</div><h2>Support</h2><p>' + escapeHTML(supportLead) + "</p>" + renderSectionContextChips(supportChips) + '<div class="portal-support-layout"><div class="portal-support-route-grid">' + routeCards + '</div><div class="portal-support-runbook"><div class="account-panel-kicker">What to send</div><h3>Send these details</h3><p>Send the failed path, account or email, and failed action.</p><div class="portal-support-runbook-list">' + runbookSteps + "</div></div></div></section>";
}
function renderHeaderHTML(context) {
if (context.bootstrap.authenticated) {
@@ -2529,7 +2489,7 @@
var hostedContent = accounts.length ? accounts.map(function(account) {
return '<section class="account-surface"><div class="account-surface-body">' + renderAccountWorkspaceSection(account, context.accountAPIBasePath) + renderAccountAccessSection(account) + "</div></section>";
}).join("") : renderNoHostedWorkspacesSection() + renderNoHostedAccessSection();
- return '<div class="portal-shell" data-shell-section="' + activeSection + '"><div class="portal-shell-layout">' + renderShellNavigation(accounts, context.bootstrap.support_email || "", activeSection) + '<div class="portal-shell-main">' + (accounts.length === 1 ? renderAccountContextStrip(accounts[0]) : "") + '<section class="portal-content-panel portal-content-panel-overview">' + renderShellOverviewSection(context) + '<div id="accounts-root">' + hostedContent + '</div></section><section class="portal-content-panel portal-content-panel-billing billing-section" id="billing-section"><div class="billing-header"><div><div class="account-panel-kicker">Billing</div><h2>Billing</h2>' + renderSectionContextChips(billingHeaderChipLabels(hostedBillingCount, showSelfHostedCommercial)) + '</div><div class="billing-note">' + billingNote + "</div></div>" + (hosted ? '<div class="billing-overview-grid">' + renderHostedBillingCards(accounts, showSelfHostedCommercial) + "</div>" : "") + (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", "Self-hosted 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", "Licenses", "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", "Refunds", "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", "Privacy", "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-layout">' + renderShellNavigation(accounts, activeSection) + '<div class="portal-shell-main">' + (accounts.length === 1 ? renderAccountContextStrip(accounts[0]) : "") + '<section class="portal-content-panel portal-content-panel-overview">' + renderShellOverviewSection(context) + '<div id="accounts-root">' + hostedContent + '</div></section><section class="portal-content-panel portal-content-panel-billing billing-section" id="billing-section"><div class="billing-header"><div><div class="account-panel-kicker">Billing</div><h2>Billing</h2>' + renderSectionContextChips(billingHeaderChipLabels(hostedBillingCount, showSelfHostedCommercial)) + '</div><div class="billing-note">' + billingNote + "</div></div>" + (hosted ? '<div class="billing-overview-grid">' + renderHostedBillingCards(accounts, showSelfHostedCommercial) + "</div>" : "") + (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(
"Manage subscriptions",
"Open Stripe for self-hosted plan, invoice, and payment changes.",
"manage-billing-panel",
diff --git a/internal/cloudcp/portal/frontend/src/shell_view.test.ts b/internal/cloudcp/portal/frontend/src/shell_view.test.ts
index 1a006e347d..4780382b84 100644
--- a/internal/cloudcp/portal/frontend/src/shell_view.test.ts
+++ b/internal/cloudcp/portal/frontend/src/shell_view.test.ts
@@ -76,7 +76,7 @@ describe('shell view', function() {
it('renders empty accounts state with support contact', function() {
var html = renderAccountsHTML(createContext());
- expect(html).toContain('Account state');
+ expect(html).toContain('Current state');
expect(html).toContain('No hosted account');
expect(html).toContain('0 hosted workspaces');
expect(html).toContain('Billing available');
@@ -135,8 +135,7 @@ describe('shell view', function() {
expect(html).toContain('Access');
expect(html).toContain('Billing');
expect(html).toContain('Support');
- expect(html).toContain('Account tasks');
- expect(html).toContain('Review workspace counts, current state, and the current action.');
+ expect(html).toContain('portal-shell-nav-title">Account<');
expect(html).toContain('1 account');
expect(html).toContain('3 workspaces');
expect(html).toContain('1 ready workspace');
@@ -155,8 +154,8 @@ describe('shell view', function() {
expect(html).toContain('Create workspace');
expect(html).not.toContain('Manage billing');
expect(html).not.toContain('Manage team');
- expect(html).toContain('Account state');
- expect(html).toContain('Hosted workspace counts, current state, and current action.');
+ expect(html).toContain('Current state');
+ expect(html).toContain('Hosted workspace counts and the next available action.');
expect(html).toContain('section-context-strip');
expect(html).toContain('Needs attention');
expect(html).toContain('Ready');
@@ -353,7 +352,7 @@ describe('shell view', function() {
expect((html.match(/portal-account-context\"/g) || []).length).toBe(1);
expect((html.match(/portal-account-context-stat/g) || []).length).toBe(3);
- expect((html.match(/account-context-chip\"/g) || []).length).toBe(3);
+ expect((html.match(/account-context-chip\"/g) || []).length).toBe(0);
expect(html).toContain('Admin role');
expect(html).toContain('Hosted account for workspace access, access control, and billing.');
expect(html).toContain('Manage access');
@@ -389,7 +388,6 @@ describe('shell view', function() {
})
);
- expect(html).toContain('Open a workspace and review current state. An owner or admin must create or change hosted workspaces.');
expect(html).toContain('Open a workspace and review current state here. An owner or admin must create or change hosted workspaces.');
expect(html).toContain('Tech role');
expect(html).toContain('Hosted account where you can open workspaces and review who already has access. An owner or admin handles access changes and billing.');
@@ -401,8 +399,8 @@ describe('shell view', function() {
expect(html).toContain('Owner or admin required');
expect(html).toContain('Review who already has access to this hosted account. An owner or admin must make changes.');
expect(html).toContain('Review the hosted roster here. An owner or admin must make changes.');
- expect(html).toContain('Hosted billing is attached here, but an owner or admin must open it.');
- expect(html).toContain('Escalation only after the review, owner/admin, or billing path is exhausted.');
+ expect(html).toContain('An owner or admin on this account needs to open hosted billing.');
+ expect(html).toContain('Escalation only');
expect(html).toContain('Use Support only after Workspaces review, Access review, owner/admin handoff, or hosted Billing fails.');
expect(html).toContain('Review Workspaces or Access, or contact owner/admin first');
expect(html).toContain('Email support');
@@ -627,14 +625,12 @@ describe('shell view', function() {
);
expect(html).toContain('Pulse Account');
- expect(html).toContain('Account tasks');
- expect(html).toContain('Self-hosted');
- expect(html).toContain('Account state');
- expect(html).toMatch(/Workspaces[\s\S]*Unavailable on this account\. Hosted workspaces are not attached here\./);
- expect(html).toContain('Unavailable on this account. Hosted workspaces are not attached here.');
- expect(html).toMatch(/Access[\s\S]*Unavailable on this account\. Hosted roster and role controls live only on hosted workspace accounts\./);
- expect(html).toContain('Unavailable on this account. Hosted roster and role controls live only on hosted workspace accounts.');
- expect(html).toMatch(/Support[\s\S]*Escalation only after the billing path is exhausted\./);
+ expect(html).toContain('Billing account');
+ expect(html).toContain('Current state');
+ expect(html).toContain('Workspaces');
+ expect(html).toContain('Unavailable');
+ expect(html).toContain('Access');
+ expect(html).toContain('Support');
expect(html).toContain('No hosted account');
expect(html).toContain('0 hosted workspaces need review');
expect(html).toContain('Billing is available');
diff --git a/internal/cloudcp/portal/frontend/src/shell_view.ts b/internal/cloudcp/portal/frontend/src/shell_view.ts
index 210969b9bc..b3aa10633d 100644
--- a/internal/cloudcp/portal/frontend/src/shell_view.ts
+++ b/internal/cloudcp/portal/frontend/src/shell_view.ts
@@ -299,7 +299,6 @@ function healthBadgeHTML(workspace: PortalWorkspaceSummary): string {
function renderBillingActionRow(
id: string,
- kicker: string,
title: string,
actionLabel: string,
description: string,
@@ -307,18 +306,15 @@ function renderBillingActionRow(
focusID: string,
highlights: string[]
): string {
- var meta = highlights.join(' • ');
+ var meta = escapeHTML(highlights.join(' • '));
return (
'<article class="billing-action-row">' +
'<div class="billing-action-main">' +
- '<div class="billing-action-tags billing-action-tags-tight">' +
- '<span class="billing-card-kicker">' + kicker + '</span>' +
- '<span class="billing-action-meta-chip">' + escapeHTML(meta) + '</span>' +
- '</div>' +
'<div class="billing-action-copy">' +
'<h3>' + title + '</h3>' +
'<p>' + description + '</p>' +
'</div>' +
+ '<div class="billing-action-meta">' + meta + '</div>' +
'</div>' +
'<div class="billing-action-cta">' +
'<button class="btn-secondary billing-action-button" type="button" id="' + id + '" data-account-billing-action="open-billing-panel" data-account-billing-panel="' + panelID + '" data-account-billing-focus="' + focusID + '" data-shell-target="billing">' + escapeHTML(actionLabel) + '</button>' +
@@ -382,13 +378,8 @@ function renderAccountContextStrip(account: PortalAccountSummary): string {
'<span class="portal-account-context-separator">/</span>' +
'<span class="portal-account-context-access">' + escapeHTML(accountContextRoleMeta(account)) + '</span>' +
'</div>' +
- '<div class="portal-account-context-row">' +
+ '<div class="portal-account-context-row portal-account-context-row-title">' +
'<h2>' + escapeHTML(account.name) + '</h2>' +
- '<div class="portal-account-context-chips">' +
- '<span class="account-context-chip">' + escapeHTML(account.kind_label) + '</span>' +
- '<span class="account-context-chip">' + escapeHTML(portalRoleLabel(account.role)) + '</span>' +
- '<span class="account-context-chip">' + escapeHTML(workspaceLabel) + '</span>' +
- '</div>' +
'</div>' +
'<p>' + escapeHTML(accountContextLeadCopy(account)) + '</p>' +
'</div>' +
@@ -410,72 +401,27 @@ function renderAccountContextStrip(account: PortalAccountSummary): string {
);
}
-function shellSectionButton(section: PortalShellSection, activeSection: PortalShellSection, index: string, title: string, copy: string, badge?: string): string {
+function shellSectionButton(section: PortalShellSection, activeSection: PortalShellSection, title: string, badge?: string): string {
var badgeHTML = badge
? '<span class="portal-shell-nav-badge">' + escapeHTML(badge) + '</span>'
: '';
return (
'<button class="portal-shell-nav-link' + (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-group">' +
- '<span class="portal-shell-nav-index">' + escapeHTML(index) + '</span>' +
- '<span class="portal-shell-nav-label">' + title + '</span>' +
- '</span>' +
+ '<span class="portal-shell-nav-label">' + title + '</span>' +
badgeHTML +
'</span>' +
- '<span class="portal-shell-nav-copy">' + copy + '</span>' +
'</button>'
);
}
-function workspaceNavCopy(hosted: boolean, canManage: boolean): string {
- if (!hosted) {
- return 'Unavailable on this account. Hosted workspaces are not attached here.';
- }
- if (canManage) {
- return 'Open a workspace, review lifecycle state, or create one.';
- }
- return 'Open a workspace and review current state. An owner or admin must create or change hosted workspaces.';
-}
-
-function accessNavCopy(hosted: boolean, canManage: boolean): string {
- if (!hosted) {
- return 'Unavailable on this account. Hosted roster and role controls live only on hosted workspace accounts.';
- }
- if (canManage) {
- return 'Invite people, change roles, and remove account access.';
- }
- return 'Review who already has access to this hosted account. An owner or admin must make changes.';
-}
-
-function billingNavCopy(hostedBillingCount: number, canManageHostedBilling: boolean): string {
- if (hostedBillingCount > 0) {
- if (canManageHostedBilling) {
- return 'Hosted billing first, then self-hosted licenses, refunds, and privacy only when relevant.';
- }
- return 'Hosted billing is attached here, but an owner or admin must open it.';
- }
- return 'Self-hosted billing, licenses, refunds, and privacy.';
-}
-
-function supportNavCopy(hosted: boolean, canManageHostedTasks: boolean): string {
- if (!hosted) {
- return 'Escalation only after the billing path is exhausted.';
- }
- if (canManageHostedTasks) {
- return 'Escalation only after the workspace, access, or billing path is exhausted.';
- }
- return 'Escalation only after the review, owner/admin, or billing path is exhausted.';
-}
-
-function renderShellNavigation(accounts: PortalAccountSummary[], supportEmail: string, activeSection: PortalShellSection): string {
+function renderShellNavigation(accounts: PortalAccountSummary[], activeSection: PortalShellSection): string {
var hosted = hasHostedAccounts(accounts);
var workspaces = collectWorkspaces(accounts);
var totalWorkspaces = workspaces.length;
var readyWorkspaces = countReadyWorkspaces(workspaces);
var attentionCount = attentionWorkspaces(workspaces).length;
var hostedBillingCount = 0;
- var canManageHostedBilling = false;
var canManage = false;
for (var i = 0; i < accounts.length; i += 1) {
if (accounts[i].can_manage) {
@@ -483,27 +429,20 @@ function renderShellNavigation(accounts: PortalAccountSummary[], supportEmail: s
}
if (accounts[i].has_billing) {
hostedBillingCount += 1;
- if (accounts[i].can_manage) {
- canManageHostedBilling = true;
- }
}
}
return (
'<aside class="portal-shell-nav" aria-label="Pulse Account sections">' +
'<div class="portal-shell-nav-header">' +
'<div class="portal-shell-nav-eyebrow">Pulse Account</div>' +
- '<div class="portal-shell-nav-title">Account tasks</div>' +
- '<div class="portal-shell-nav-support">' + (hosted
- ? 'Use Workspaces, then Access, then Billing. Use Support only if those paths fail.'
- : 'Use Billing first. Use Support only if that path fails.'
- ) + '</div>' +
+ '<div class="portal-shell-nav-title">' + (hosted ? 'Account' : 'Billing account') + '</div>' +
'</div>' +
'<div class="portal-shell-nav-group">' +
- shellSectionButton('overview', activeSection, '01', 'Overview', 'Review workspace counts, current state, and the current action.', overviewNavBadgeLabel(hosted, attentionCount, readyWorkspaces)) +
- shellSectionButton('workspaces', activeSection, '02', 'Workspaces', workspaceNavCopy(hosted, canManage), workspacesNavBadgeLabel(hosted, totalWorkspaces)) +
- shellSectionButton('access', activeSection, '03', 'Access', accessNavCopy(hosted, canManage), accessNavBadgeLabel(hosted, canManage)) +
- shellSectionButton('billing', activeSection, '04', 'Billing', billingNavCopy(hostedBillingCount, canManageHostedBilling), billingNavBadgeLabel(hostedBillingCount)) +
- shellSectionButton('support', activeSection, '05', 'Support', supportNavCopy(hosted, canManage), supportNavBadgeLabel()) +
+ shellSectionButton('overview', activeSection, 'Overview', overviewNavBadgeLabel(hosted, attentionCount, readyWorkspaces)) +
+ shellSectionButton('workspaces', activeSection, 'Workspaces', workspacesNavBadgeLabel(hosted, totalWorkspaces)) +
+ shellSectionButton('access', activeSection, 'Access', accessNavBadgeLabel(hosted, canManage)) +
+ shellSectionButton('billing', activeSection, 'Billing', billingNavBadgeLabel(hostedBillingCount)) +
+ shellSectionButton('support', activeSection, 'Support', supportNavBadgeLabel()) +
'</div>' +
'</aside>'
);
@@ -904,8 +843,8 @@ function renderShellOverviewSection(context: ShellViewContext): string {
'<div class="account-stage-header account-stage-header-overview overview-stage-header">' +
'<div>' +
'<div class="account-panel-kicker">Overview</div>' +
- '<h3>Account state</h3>' +
- '<p>Hosted workspace counts, current state, and current action.</p>' +
+ '<h3>Current state</h3>' +
+ '<p>Hosted workspace counts and the next available action.</p>' +
renderSectionContextChips(chips) +
'</div>' +
'</div>' +
@@ -1293,10 +1232,7 @@ function renderHostedBillingCards(accounts: PortalAccountSummary[], showSelfHost
'<div class="account-panel-kicker">Hosted billing</div>' +
'<h3>' + escapeHTML(account.name) + '</h3>' +
'<p>Invoices, payment methods, and hosted subscription changes for this account live here.</p>' +
- '<div class="billing-task-points">' +
- '<div class="billing-task-point"><strong>Use when hosted billing is the job</strong><span>Keep workspace lifecycle work in Workspaces and access changes in Access.</span></div>' +
- '<div class="billing-task-point"><strong>Stay account-specific</strong><span>Open billing from the exact hosted account you want to change.</span></div>' +
- '</div>' +
+ '<div class="billing-task-meta">Keep workspace lifecycle work in Workspaces and access changes in Access.</div>' +
'<div class="billing-task-actions">' + actionHTML + '</div>' +
'</article>'
);
@@ -1393,7 +1329,7 @@ function renderSupportSection(context: ShellViewContext): string {
return (
'<section class="portal-support-panel">' +
'<div class="account-panel-kicker">Support</div>' +
- '<h2>Escalation only</h2>' +
+ '<h2>Support</h2>' +
'<p>' + escapeHTML(supportLead) + '</p>' +
renderSectionContextChips(supportChips) +
'<div class="portal-support-layout">' +
@@ -1461,7 +1397,7 @@ export function renderAuthenticatedPortalHTML(context: ShellViewContext): string
return (
'<div class="portal-shell" data-shell-section="' + activeSection + '">' +
'<div class="portal-shell-layout">' +
- renderShellNavigation(accounts, context.bootstrap.support_email || '', activeSection) +
+ renderShellNavigation(accounts, activeSection) +
'<div class="portal-shell-main">' +
(accounts.length === 1 ? renderAccountContextStrip(accounts[0]) : '') +
'<section class="portal-content-panel portal-content-panel-overview">' +
@@ -1489,10 +1425,10 @@ export function renderAuthenticatedPortalHTML(context: ShellViewContext): string
'<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', 'Self-hosted 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', 'Licenses', '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', 'Refunds', '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', 'Privacy', 'Data and privacy', 'Privacy', 'Request export or deletion for commercial account data.', 'data-billing-panel', 'data-export-email', ['Export', 'Deletion']) +
+ 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>' +
diff --git a/internal/cloudcp/portal/frontend/src/styles.css b/internal/cloudcp/portal/frontend/src/styles.css
index 327be92450..cd3b898e9a 100644
--- a/internal/cloudcp/portal/frontend/src/styles.css
+++ b/internal/cloudcp/portal/frontend/src/styles.css
@@ -3388,3 +3388,938 @@ header .logout-btn:hover,
white-space: nowrap !important;
width: auto !important;
}
+
+/* Professional portal redesign: flatter, lighter, and more object-first. */
+
+: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: "•";
+ 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;
+}
+
+@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-support-layout {
+ grid-template-columns: 1fr;
+ }
+
+ .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;
+ }
+}