/**
 * CloudOpsGPT Customer Portal — WEBUI-6
 * Light workspace chrome aligned with website.css (homepage design source of truth).
 * Requires website.css loaded first.
 */

/* ── Base ─────────────────────────────────────────────────── */
body.website-body.portal {
  background: var(--website-bg);
  color: var(--website-text);
  font-family: var(--website-font);
  font-size: 0.9375rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.website-body.portal .gradient-bg,
body.website-body.portal .portal-main {
  background: var(--website-bg);
  min-height: calc(100vh - var(--website-header-h));
}

body.website-body.portal .portal-shell {
  max-width: var(--website-max);
  margin-inline: auto;
  padding-inline: 1rem;
}

body.website-body.portal .portal-mono,
body.website-body.portal .font-mono,
body.website-body.portal code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ── Header (extends site-header) ─────────────────────────── */
body.website-body.portal .portal-header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

body.website-body.portal .portal-header__meta {
  text-align: right;
  line-height: 1.25;
}

body.website-body.portal .portal-header__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--website-text);
}

body.website-body.portal .portal-header__plan {
  font-size: 0.8125rem;
  color: var(--website-text-muted);
}

body.website-body.portal .portal-badge {
  display: none;
  font-size: 0.6875rem;
  color: var(--website-text-muted);
  border: 1px solid var(--website-border);
  border-radius: var(--website-radius-sm);
  padding: 0.125rem 0.375rem;
  margin-left: 0.375rem;
}

@media (min-width: 640px) {
  body.website-body.portal .portal-badge {
    display: inline-block;
  }
}

body.website-body.portal .portal-user-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 36px;
  padding: 0 0.5rem;
  border-radius: var(--website-radius-sm);
  border: 1px solid var(--website-border);
  background: var(--website-surface);
  color: var(--website-text);
  cursor: pointer;
}

body.website-body.portal .portal-user-menu-btn:hover {
  background: var(--website-surface-subtle);
}

body.website-body.portal .portal-user-avatar {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: var(--website-brand);
  color: var(--website-on-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.website-body.portal .portal-dropdown {
  position: absolute;
  right: 0;
  margin-top: 0.375rem;
  width: 13rem;
  padding: 0.25rem 0;
  background: var(--website-surface);
  border: 1px solid var(--website-border);
  border-radius: var(--website-radius-lg);
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
  z-index: 9999;
}

body.website-body.portal .portal-dropdown__head {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--website-border);
}

body.website-body.portal .portal-dropdown__name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--website-text);
}

body.website-body.portal .portal-dropdown__email {
  font-size: 0.75rem;
  color: var(--website-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.website-body.portal .portal-dropdown a,
body.website-body.portal .portal-dropdown button {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--website-text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

body.website-body.portal .portal-dropdown a:hover,
body.website-body.portal .portal-dropdown button:hover {
  background: var(--website-surface-subtle);
  color: var(--website-text);
}

body.website-body.portal .portal-dropdown hr {
  margin: 0.25rem 0;
  border: none;
  border-top: 1px solid var(--website-border);
}

body.website-body.portal .portal-dropdown .portal-dropdown__logout {
  color: var(--website-danger);
}

/* ── Workspace intro + tabs ───────────────────────────────── */
body.website-body.portal .portal-intro__title {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--website-text);
  line-height: 1.2;
}

body.website-body.portal .portal-intro__lead {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: var(--website-text-muted);
  line-height: 1.45;
  max-width: 42rem;
}

body.website-body.portal .portal-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--website-border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

body.website-body.portal .portal-tabs::-webkit-scrollbar {
  display: none;
}

body.website-body.portal .portal-tabs .tab-btn {
  flex-shrink: 0;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--website-text-muted);
  background: transparent !important;
  cursor: pointer;
  min-height: 44px;
}

body.website-body.portal .portal-tabs .tab-btn:hover {
  color: var(--website-text);
}

body.website-body.portal .portal-tabs .tab-btn.tab-active {
  color: var(--website-brand);
  border-bottom-color: var(--website-brand);
  background: transparent !important;
}

body.website-body.portal .portal-tabs .tab-btn:focus-visible {
  outline: 2px solid var(--website-focus);
  outline-offset: 2px;
}

body.website-body.portal .tab-content.hidden {
  display: none !important;
}

/* ── Panels & cards ───────────────────────────────────────── */
body.website-body.portal .portal-panel,
body.website-body.portal .glass-card {
  background: var(--website-surface);
  border: 1px solid var(--website-border);
  border-radius: var(--website-radius-lg);
  box-shadow: var(--website-shadow);
  backdrop-filter: none;
}

body.website-body.portal .portal-panel.p-3,
body.website-body.portal .portal-panel.p-4 {
  padding: 1rem;
}

body.website-body.portal .portal-panel-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--website-text);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

body.website-body.portal .portal-panel-meta {
  font-size: 0.8125rem;
  color: var(--website-text-muted);
  line-height: 1.35;
}

body.website-body.portal .portal-label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--website-text-muted);
}

body.website-body.portal .billing-section-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--website-text);
}

/* ── Buttons ──────────────────────────────────────────────── */
body.website-body.portal .portal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  min-height: 36px;
  padding: 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  border-radius: var(--website-radius-sm);
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s var(--website-ease), border-color 0.15s var(--website-ease), color 0.15s var(--website-ease);
}

body.website-body.portal .portal-btn:focus-visible {
  outline: 2px solid var(--website-focus);
  outline-offset: 2px;
}

body.website-body.portal .portal-btn-primary {
  background: var(--website-brand);
  color: var(--website-on-brand);
  border-color: var(--website-brand);
  font-weight: 600;
  min-height: 38px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

body.website-body.portal .portal-btn-primary:hover:not(:disabled) {
  background: var(--website-brand-hover);
  border-color: var(--website-brand-hover);
}

body.website-body.portal .portal-btn-secondary {
  background: var(--website-surface);
  color: var(--website-text);
  border-color: var(--website-border);
  font-weight: 500;
}

body.website-body.portal .portal-btn-secondary:hover:not(:disabled) {
  background: var(--website-surface-subtle);
  border-color: color-mix(in srgb, var(--website-border) 70%, var(--website-text-muted));
}

body.website-body.portal .portal-btn-ghost {
  background: transparent;
  color: var(--website-text-secondary);
  border-color: transparent;
  font-weight: 500;
  min-height: 34px;
  padding-inline: 0.5rem;
}

body.website-body.portal .portal-btn-ghost:hover:not(:disabled) {
  color: var(--website-text);
  background: var(--website-surface-subtle);
  border-color: var(--website-border);
}

body.website-body.portal .portal-btn-warning {
  background: rgba(255, 153, 0, 0.1);
  color: #b45309;
  border-color: rgba(255, 153, 0, 0.35);
}

body.website-body.portal .portal-btn-danger {
  background: rgba(215, 0, 21, 0.08);
  color: var(--website-danger);
  border-color: rgba(215, 0, 21, 0.2);
}

body.website-body.portal .portal-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

body.website-body.portal a.portal-btn {
  text-decoration: none;
}

/* ── Forms ────────────────────────────────────────────────── */
body.website-body.portal input,
body.website-body.portal select,
body.website-body.portal textarea {
  font-family: var(--website-font);
  font-size: 0.875rem !important;
  line-height: 1.35 !important;
  padding: 0.5rem 0.65rem !important;
  border-radius: var(--website-radius-sm) !important;
  min-height: 40px;
  background: var(--website-surface);
  border: 1px solid var(--website-border);
  color: var(--website-text);
  width: 100%;
  box-sizing: border-box;
}

body.website-body.portal input:focus-visible,
body.website-body.portal select:focus-visible,
body.website-body.portal textarea:focus-visible {
  outline: 2px solid var(--website-focus);
  outline-offset: 1px;
  border-color: var(--website-brand) !important;
}

body.website-body.portal label {
  display: block;
  font-size: 0.8125rem !important;
  font-weight: 500;
  color: var(--website-text);
  margin-bottom: 0.35rem !important;
}

body.website-body.portal .portal-field-row {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  body.website-body.portal .portal-field-row--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.website-body.portal .portal-field-row--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body.website-body.portal .portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── Status / health ──────────────────────────────────────── */
body.website-body.portal .portal-status {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: var(--website-radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
  border: 1px solid transparent;
}

body.website-body.portal .portal-status--success {
  color: var(--website-success);
  background: color-mix(in srgb, var(--website-success) 10%, var(--website-surface));
  border-color: color-mix(in srgb, var(--website-success) 28%, var(--website-border));
}

body.website-body.portal .portal-status--warning {
  color: #b45309;
  background: color-mix(in srgb, var(--website-orange) 12%, var(--website-surface));
  border-color: color-mix(in srgb, var(--website-orange) 30%, var(--website-border));
}

body.website-body.portal .portal-status--danger {
  color: var(--website-danger);
  background: color-mix(in srgb, var(--website-danger) 8%, var(--website-surface));
  border-color: color-mix(in srgb, var(--website-danger) 24%, var(--website-border));
}

body.website-body.portal .portal-status--info {
  color: var(--website-brand);
  background: color-mix(in srgb, var(--website-brand) 8%, var(--website-surface));
  border-color: color-mix(in srgb, var(--website-brand) 22%, var(--website-border));
}

body.website-body.portal .portal-status--neutral {
  color: var(--website-text-secondary);
  background: var(--website-surface-subtle);
  border-color: var(--website-border);
}

body.website-body.portal .portal-tone-ok { color: var(--website-success); }
body.website-body.portal .portal-tone-warn { color: #b45309; }
body.website-body.portal .portal-tone-error { color: var(--website-danger); }
body.website-body.portal .portal-tone-info { color: var(--website-brand); }
body.website-body.portal .portal-tone-neutral { color: var(--website-text-secondary); }

body.website-body.portal .portal-status--ok { color: var(--website-success); }
body.website-body.portal .portal-status--warn { color: #b45309; }
body.website-body.portal .portal-status--bad { color: var(--website-danger); }

/* ── Toasts ───────────────────────────────────────────────── */
body.website-body.portal .portal-toast {
  position: fixed;
  top: calc(var(--website-header-h) + 0.75rem);
  right: 1rem;
  z-index: 10000;
  max-width: min(24rem, calc(100vw - 2rem));
  padding: 0.75rem 1rem;
  border-radius: var(--website-radius-lg);
  border: 1px solid var(--website-border);
  background: var(--website-surface);
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.1);
  font-size: 0.875rem;
}

body.website-body.portal .portal-toast--success { border-left: 3px solid var(--website-success); }
body.website-body.portal .portal-toast--error { border-left: 3px solid var(--website-danger); }
body.website-body.portal .portal-toast--warning { border-left: 3px solid var(--website-orange); }
body.website-body.portal .portal-toast--info { border-left: 3px solid var(--website-brand); }

/* ── Support / account layout helpers ─────────────────────── */
body.website-body.portal .portal-stack {
  display: grid;
  gap: 0.75rem;
}

body.website-body.portal .portal-stack--2 {
  gap: 0.5rem;
}

@media (min-width: 1024px) {
  body.website-body.portal .portal-cols-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

body.website-body.portal .portal-kv {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  body.website-body.portal .portal-kv--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body.website-body.portal .portal-kv dt {
  font-size: 0.8125rem;
  color: var(--website-text-muted);
  margin: 0;
}

body.website-body.portal .portal-kv dd {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--website-text);
  margin: 0.15rem 0 0;
}

body.website-body.portal .portal-link {
  color: var(--website-link);
  text-decoration: none;
}

body.website-body.portal .portal-link:hover {
  color: var(--website-brand-hover);
  text-decoration: underline;
}

body.website-body.portal .portal-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--website-text-secondary);
  font-size: 0.875rem;
}

body.website-body.portal .portal-list li + li {
  margin-top: 0.35rem;
}

/* ── JS module compat (dashboard/billing/account strings) ─── */
body.website-body.portal .grid { display: grid; }
body.website-body.portal .flex { display: flex; }
body.website-body.portal .hidden { display: none !important; }
body.website-body.portal .grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
body.website-body.portal .gap-2 { gap: 0.5rem; }
body.website-body.portal .gap-3 { gap: 0.75rem; }
body.website-body.portal .gap-x-3 { column-gap: 0.75rem; }
body.website-body.portal .gap-x-4 { column-gap: 1rem; }
body.website-body.portal .gap-y-1 { row-gap: 0.25rem; }
body.website-body.portal .gap-y-2 { row-gap: 0.5rem; }
body.website-body.portal .space-y-1\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.375rem; }
body.website-body.portal .space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
body.website-body.portal .space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
body.website-body.portal .flex-wrap { flex-wrap: wrap; }
body.website-body.portal .items-start { align-items: flex-start; }
body.website-body.portal .items-center { align-items: center; }
body.website-body.portal .justify-between { justify-content: space-between; }
body.website-body.portal .shrink-0 { flex-shrink: 0; }
body.website-body.portal .min-w-0 { min-width: 0; }
body.website-body.portal .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.website-body.portal .leading-snug { line-height: 1.35; }
body.website-body.portal .font-medium { font-weight: 500; }
body.website-body.portal .font-semibold { font-weight: 600; }
body.website-body.portal .font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
body.website-body.portal .break-all { word-break: break-all; }
body.website-body.portal .list-disc { list-style-type: disc; }
body.website-body.portal .list-inside { list-style-position: inside; }
body.website-body.portal .underline-offset-2 { text-underline-offset: 2px; }
body.website-body.portal .hover\:underline:hover { text-decoration: underline; }

@media (min-width: 640px) {
  body.website-body.portal .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.website-body.portal .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.website-body.portal .sm\:block { display: block; }
  body.website-body.portal .sm\:hidden { display: none !important; }
}

@media (min-width: 1024px) {
  body.website-body.portal .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.website-body.portal .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

body.website-body.portal .text-\[10px\] { font-size: 10px; line-height: 1.35; }
body.website-body.portal .text-\[11px\] { font-size: 11px; line-height: 1.4; }
body.website-body.portal .text-\[12px\] { font-size: 12px; line-height: 1.4; }
body.website-body.portal .text-\[13px\] { font-size: 13px; line-height: 1.45; }
body.website-body.portal .text-\[14px\] { font-size: 14px; line-height: 1.4; }
body.website-body.portal .text-\[16px\] { font-size: 16px; line-height: 1.3; }

body.website-body.portal .text-slate-600 { color: var(--website-text-muted); }
body.website-body.portal .text-slate-500 { color: var(--website-text-muted); }
body.website-body.portal .text-slate-400 { color: var(--website-text-secondary); }
body.website-body.portal .text-slate-300 { color: var(--website-text-secondary); }
body.website-body.portal .text-slate-200 { color: var(--website-text); }
body.website-body.portal .text-white { color: var(--website-text); }
body.website-body.portal .text-cyan-400,
body.website-body.portal .text-cyan-300,
body.website-body.portal .hover\:text-cyan-300:hover { color: var(--website-brand); }
body.website-body.portal .text-emerald-400 { color: var(--website-success); }
body.website-body.portal .text-amber-400 { color: #b45309; }
body.website-body.portal .text-red-400 { color: var(--website-danger); }

body.website-body.portal .border-slate-800,
body.website-body.portal .border-slate-700,
body.website-body.portal .border-slate-700\/80 { border-color: var(--website-border); }

body.website-body.portal .border-red-500 { border-color: var(--website-danger) !important; }

body.website-body.portal .uppercase { text-transform: uppercase; }
body.website-body.portal .tracking-wide { letter-spacing: 0.04em; }
body.website-body.portal .tracking-tight { letter-spacing: -0.01em; }
body.website-body.portal .tracking-widest { letter-spacing: 0.08em; }
body.website-body.portal .line-through { text-decoration: line-through; }

body.website-body.portal .mb-0\.5 { margin-bottom: 0.125rem; }
body.website-body.portal .mb-1 { margin-bottom: 0.25rem; }
body.website-body.portal .mb-2 { margin-bottom: 0.5rem; }
body.website-body.portal .mb-3 { margin-bottom: 0.75rem; }
body.website-body.portal .mb-4 { margin-bottom: 1rem; }
body.website-body.portal .mt-0\.5 { margin-top: 0.125rem; }
body.website-body.portal .mt-1 { margin-top: 0.25rem; }
body.website-body.portal .mt-2 { margin-top: 0.5rem; }
body.website-body.portal .mt-2\.5 { margin-top: 0.625rem; }
body.website-body.portal .pt-2 { padding-top: 0.5rem; }
body.website-body.portal .py-1\.5 { padding-block: 0.375rem; }
body.website-body.portal .px-2\.5 { padding-inline: 0.625rem; }
body.website-body.portal .py-1 { padding-block: 0.25rem; }
body.website-body.portal .p-3 { padding: 0.75rem; }

body.website-body.portal .max-w-2xl { max-width: 42rem; }
body.website-body.portal .max-w-3xl { max-width: 48rem; }
body.website-body.portal .max-w-xl { max-width: 36rem; }

body.website-body.portal .w-full { width: 100%; }
body.website-body.portal .inline-flex { display: inline-flex; }

/* Kill legacy portal effects */
body.website-body.portal .card-hover:hover,
body.website-body.portal .ai-tab::before,
body.website-body.portal .ai-tab:hover::before {
  transform: none !important;
  box-shadow: none !important;
}

body.website-body.portal .portal-header.site-header .site-header__inner {
  gap: 1rem;
}

body.website-body.portal .portal-header .relative {
  position: relative;
  margin-left: auto;
}

body.website-body.portal .portal-header__meta.hidden {
  display: none !important;
}

@media (min-width: 640px) {
  body.website-body.portal .portal-header__meta.sm\:block {
    display: block !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   K4 Phase 1 — Visual foundation (portal-only)
   ═══════════════════════════════════════════════════════════ */

/* Page & section spacing */
body.website-body.portal .portal-page {
  padding-block: 1.25rem 2rem;
}

body.website-body.portal .portal-page-header {
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--website-border);
}

body.website-body.portal .portal-tabs-wrap {
  margin-bottom: 1rem;
}

body.website-body.portal .portal-tab-panels {
  margin-top: 1.625rem;
}

body.website-body.portal .portal-tab-stack {
  gap: 0.875rem;
}

body.website-body.portal .portal-dashboard-stack {
  gap: 0.875rem;
}

body.website-body.portal .portal-dashboard-stack > .portal-panel--primary {
  margin-bottom: 0.125rem;
}

body.website-body.portal .portal-dashboard-stack > .grid.lg\:grid-cols-2 {
  gap: 0.75rem;
}

body.website-body.portal .portal-dashboard-stack .portal-panel--advanced {
  margin-top: 0.125rem;
}

/* Card hierarchy */
body.website-body.portal .portal-panel--primary {
  border-color: color-mix(in srgb, var(--website-brand) 28%, var(--website-border));
  background: var(--website-surface);
}

body.website-body.portal .portal-handoff.portal-panel--primary {
  border-left: 3px solid var(--website-brand);
}

body.website-body.portal .portal-panel--secondary {
  border-color: var(--website-border);
  background: var(--website-surface);
  box-shadow: none;
}

body.website-body.portal .portal-panel--info {
  border-color: var(--website-border);
  background: var(--website-surface-subtle);
  box-shadow: none;
}

body.website-body.portal .portal-panel--advanced {
  border-color: var(--website-border);
  border-style: dashed;
  background: color-mix(in srgb, var(--website-bg) 65%, var(--website-surface));
  box-shadow: none;
}

body.website-body.portal .portal-panel--health-ok {
  border-color: color-mix(in srgb, var(--website-success) 35%, var(--website-border));
  background: color-mix(in srgb, var(--website-success) 6%, var(--website-surface));
}

body.website-body.portal .portal-panel--health-warn {
  border-color: color-mix(in srgb, var(--website-orange) 35%, var(--website-border));
  background: color-mix(in srgb, var(--website-orange) 8%, var(--website-surface));
}

body.website-body.portal .portal-panel--health-error {
  border-color: color-mix(in srgb, var(--website-danger) 30%, var(--website-border));
  background: color-mix(in srgb, var(--website-danger) 5%, var(--website-surface));
}

body.website-body.portal .portal-panel--health-info {
  border-color: color-mix(in srgb, var(--website-brand) 30%, var(--website-border));
  background: color-mix(in srgb, var(--website-brand) 5%, var(--website-surface));
}

body.website-body.portal .portal-panel--health-neutral {
  border-color: var(--website-border);
  background: var(--website-surface);
}

/* Typography in panels */
body.website-body.portal .portal-panel h3,
body.website-body.portal .portal-panel h4 {
  margin: 0;
  color: var(--website-text);
  letter-spacing: -0.01em;
}

body.website-body.portal .portal-panel h3 {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}

body.website-body.portal .portal-panel h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
}

body.website-body.portal .portal-panel strong {
  font-weight: 600;
  color: var(--website-text);
}

/* Detail grids — dense but readable */
body.website-body.portal .portal-detail-grid > div {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid color-mix(in srgb, var(--website-border) 80%, transparent);
}

body.website-body.portal .portal-detail-grid > div:last-child,
body.website-body.portal .portal-detail-grid > div:nth-last-child(2):nth-child(odd) {
  border-bottom: none;
  padding-bottom: 0;
}

body.website-body.portal .portal-detail-grid dt {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--website-text-muted);
  margin: 0;
}

body.website-body.portal .portal-detail-grid dd {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--website-text);
  margin: 0.2rem 0 0;
  line-height: 1.35;
}

/* Header hierarchy */
body.website-body.portal .portal-header__brand {
  gap: 0.5rem;
  min-width: 0;
}

body.website-body.portal .portal-header__product {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--website-text);
  letter-spacing: -0.01em;
}

body.website-body.portal .portal-header__meta {
  flex: 1;
  text-align: center;
  padding-inline: 1rem;
  min-width: 0;
}

body.website-body.portal .portal-header__name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--website-text);
}

body.website-body.portal .portal-header__plan {
  display: inline-block;
  margin-top: 0.2rem;
  padding: 0.1rem 0.45rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--website-text-secondary);
  background: var(--website-surface-subtle);
  border: 1px solid var(--website-border);
  border-radius: 999px;
}

body.website-body.portal .portal-header.site-header .site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

/* Inset blocks (legacy dark utility names) */
body.website-body.portal .bg-slate-900,
body.website-body.portal .bg-slate-900\/40 {
  background: var(--website-surface-subtle) !important;
}

body.website-body.portal input.bg-slate-900,
body.website-body.portal input.border-slate-700 {
  background: var(--website-surface) !important;
  border-color: var(--website-border) !important;
  color: var(--website-text) !important;
}

body.website-body.portal input::placeholder,
body.website-body.portal .placeholder-slate-500::placeholder {
  color: var(--website-text-muted);
  opacity: 1;
}

body.website-body.portal code.text-cyan-300 {
  color: var(--website-brand-ink);
  background: var(--website-surface-subtle);
  border: 1px solid var(--website-border);
  border-radius: var(--website-radius-sm);
}

/* Additional compat utilities */
body.website-body.portal .block { display: block; }
body.website-body.portal .border { border-width: 1px; border-style: solid; }
body.website-body.portal .border-t { border-top: 1px solid var(--website-border); }
body.website-body.portal .border-b { border-bottom: 1px solid var(--website-border); }
body.website-body.portal .rounded { border-radius: var(--website-radius-sm); }
body.website-body.portal .cursor-pointer { cursor: pointer; }
body.website-body.portal .flex-1 { flex: 1 1 0%; }
body.website-body.portal .items-end { align-items: flex-end; }
body.website-body.portal .gap-2\.5 { gap: 0.625rem; }
body.website-body.portal .gap-y-0\.5 { row-gap: 0.125rem; }
body.website-body.portal .space-y-2\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.625rem; }
body.website-body.portal .space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
body.website-body.portal .list-decimal { list-style-type: decimal; }
body.website-body.portal .marker\:text-slate-600 ::marker { color: var(--website-text-muted); }
body.website-body.portal .min-w-\[220px\] { min-width: 220px; }
body.website-body.portal .p-2 { padding: 0.5rem; }
body.website-body.portal .px-2 { padding-inline: 0.5rem; }
body.website-body.portal .pt-3 { padding-top: 0.75rem; }
body.website-body.portal .p-4 { padding: 1rem; }
body.website-body.portal .h-full { height: 100%; }
body.website-body.portal .opacity-80 { opacity: 0.8; }
body.website-body.portal .last\:border-0:last-child { border-bottom: none !important; }
body.website-body.portal .border-amber-500\/30 { border-color: color-mix(in srgb, var(--website-orange) 35%, var(--website-border)); }
body.website-body.portal .border-red-500\/30 { border-color: color-mix(in srgb, var(--website-danger) 30%, var(--website-border)); }
body.website-body.portal .border-cyan-500\/30 { border-color: color-mix(in srgb, var(--website-brand) 30%, var(--website-border)); }
body.website-body.portal .hover\:text-white:hover { color: var(--website-text); }
body.website-body.portal .hover\:opacity-100:hover { opacity: 1; }
body.website-body.portal .hover\:text-cyan-400:hover { color: var(--website-brand); }
body.website-body.portal .disabled\:opacity-50:disabled { opacity: 0.5; }
body.website-body.portal .focus\:border-cyan-500:focus { border-color: var(--website-brand) !important; }
body.website-body.portal .focus\:ring-0:focus { box-shadow: none; }
body.website-body.portal .focus\:ring-1:focus { box-shadow: 0 0 0 1px var(--website-focus); }
body.website-body.portal .focus\:ring-cyan-500:focus { box-shadow: 0 0 0 2px color-mix(in srgb, var(--website-focus) 35%, transparent); }

/* ── Dashboard: commercial home composition (visual correction) ── */
body.website-body.portal .portal-home {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding: 0.25rem 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

body.website-body.portal .portal-home__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

body.website-body.portal .portal-home__hero {
  padding: 0;
  margin: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

body.website-body.portal .portal-home__context {
  margin-bottom: 0.375rem;
}

body.website-body.portal .portal-home__title {
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--website-text);
  margin: 0;
}

body.website-body.portal .portal-home__copy {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--website-text-secondary);
  margin: 0.375rem 0 0;
  max-width: 42rem;
}

body.website-body.portal .portal-home__copy--sm {
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}

body.website-body.portal .portal-home__status-line,
body.website-body.portal .portal-home__context-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.625rem 0 0;
  font-size: 0.8125rem;
  color: var(--website-text-secondary);
}

body.website-body.portal .portal-home__dot {
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 999px;
  flex-shrink: 0;
  display: inline-block;
}

body.website-body.portal .portal-home__dot--ok { background: var(--website-green, #16a34a); }
body.website-body.portal .portal-home__dot--info { background: var(--website-brand, #0891b2); }
body.website-body.portal .portal-home__dot--warn { background: var(--website-orange, #d97706); }
body.website-body.portal .portal-home__dot--error { background: var(--website-danger, #dc2626); }

body.website-body.portal .portal-home__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

body.website-body.portal .portal-home__actions--compact {
  margin-top: 0.625rem;
}

body.website-body.portal .portal-home__footnote {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--website-text-muted);
}

body.website-body.portal .portal-home__refreshed {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.6875rem;
  color: var(--website-text-muted);
}

body.website-body.portal .portal-home__action-msg {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: var(--website-text-muted);
}

body.website-body.portal .portal-home__context-row-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.625rem;
}

@media (min-width: 720px) {
  body.website-body.portal .portal-home__context-row-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.75rem;
  }
}

body.website-body.portal .portal-home__context-row-grid--quiet {
  opacity: 0.92;
}

body.website-body.portal .portal-home__context-block {
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--website-border);
  border-radius: var(--website-radius-md, 0.5rem);
  background: var(--website-surface);
  box-shadow: none;
}

body.website-body.portal .portal-home__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.625rem;
}

@media (min-width: 720px) {
  body.website-body.portal .portal-home__cards {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

body.website-body.portal .portal-home__card-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--website-text-muted);
  margin: 0 0 0.5rem;
}

body.website-body.portal .portal-home__card-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.25rem 0;
  font-size: 0.8125rem;
}

body.website-body.portal .portal-home__card-row + .portal-home__card-row {
  border-top: 1px solid var(--website-border);
}

body.website-body.portal .portal-home__card-label {
  color: var(--website-text-muted);
}

body.website-body.portal .portal-home__card-value {
  color: var(--website-text);
  font-weight: 500;
  text-align: right;
}

body.website-body.portal .portal-home__strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.625rem 0;
  border-top: 1px solid var(--website-border);
  border-bottom: 1px solid var(--website-border);
}

body.website-body.portal .portal-home__strip-text {
  font-size: 0.8125rem;
  color: var(--website-text-secondary);
}

body.website-body.portal .portal-home__notice,
body.website-body.portal .portal-home__notice-text {
  /* legacy aliases */
}

body.website-body.portal .portal-home__workspace-form {
  padding: 0.875rem;
  border: 1px solid var(--website-border);
  border-radius: var(--website-radius-md, 0.5rem);
  background: var(--website-surface);
  box-shadow: none;
}

body.website-body.portal .portal-home__form-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--website-text-muted);
  margin-bottom: 0.375rem;
}

body.website-body.portal .portal-home__form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

body.website-body.portal .portal-home__input {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid var(--website-border);
  border-radius: var(--website-radius-sm);
  background: var(--website-surface);
  color: var(--website-text);
}

body.website-body.portal .portal-home__form-msg {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: var(--website-text-muted);
}

body.website-body.portal .portal-home__steps {
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--website-border);
  border-radius: var(--website-radius-md, 0.5rem);
  background: var(--website-surface);
  box-shadow: none;
}

body.website-body.portal .portal-home__steps-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--website-text-muted);
  margin: 0 0 0.5rem;
}

body.website-body.portal .portal-home__steps-list {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.8125rem;
  color: var(--website-text-secondary);
  line-height: 1.55;
}

body.website-body.portal .portal-home__steps--compact {
  margin-bottom: 0.75rem;
}

body.website-body.portal .portal-home__progress-track {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.website-body.portal .portal-home__progress-step {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--website-text-muted);
}

body.website-body.portal .portal-home__progress-step--current {
  color: var(--website-text-primary, #0f172a);
  font-weight: 600;
}

body.website-body.portal .portal-home__progress-step--done {
  color: var(--website-text-secondary);
}

body.website-body.portal .portal-home__progress-dot {
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 999px;
  background: var(--website-border);
  flex-shrink: 0;
}

body.website-body.portal .portal-home__progress-step--done .portal-home__progress-dot {
  background: var(--website-green, #16a34a);
}

body.website-body.portal .portal-home__progress-step--current .portal-home__progress-dot {
  background: var(--website-brand, #0891b2);
}

body.website-body.portal .portal-commercial {
  padding: 0.875rem;
  border: 1px solid var(--website-border);
  border-radius: var(--website-radius-md, 0.5rem);
  background: var(--website-surface);
}

body.website-body.portal .portal-commercial__trial {
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--website-border);
  margin-bottom: 0.875rem;
}

body.website-body.portal .portal-commercial__trial-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.625rem;
}

body.website-body.portal .portal-commercial__badge {
  margin: 0 0 0.25rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--website-brand, #0891b2);
}

body.website-body.portal .portal-commercial__trial-price {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--website-text-secondary);
}

body.website-body.portal .portal-commercial__bullets {
  margin: 0;
  padding-left: 1rem;
}

body.website-body.portal .portal-commercial__paid-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.375rem;
}

body.website-body.portal .portal-commercial__paid-title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--website-text-primary, #0f172a);
}

body.website-body.portal .portal-commercial__paid-note {
  margin: 0 0 0.625rem;
}

body.website-body.portal .portal-commercial__rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

body.website-body.portal .portal-commercial__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  padding: 0.5rem 0.625rem;
  border: 1px solid var(--website-border);
  border-radius: var(--website-radius-sm, 0.375rem);
  background: var(--website-bg, #fff);
}

body.website-body.portal .portal-commercial__row-main {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

body.website-body.portal .portal-commercial__row-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--website-text-primary, #0f172a);
}

body.website-body.portal .portal-commercial__row-meta {
  font-size: 0.75rem;
  color: var(--website-text-muted);
}

body.website-body.portal .portal-commercial__row-side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

body.website-body.portal .portal-commercial__row-price {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--website-text-secondary);
  white-space: nowrap;
}

@media (max-width: 640px) {
  body.website-body.portal .portal-commercial__trial-head,
  body.website-body.portal .portal-commercial__row {
    flex-direction: column;
    align-items: stretch;
  }

  body.website-body.portal .portal-commercial__row-side {
    justify-content: space-between;
  }
}

body.website-body.portal .portal-plan-catalogue {
  margin-top: 0.75rem;
}

body.website-body.portal .portal-plan-catalogue__section-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

body.website-body.portal .portal-plan-catalogue__heading {
  font-size: 0.8125rem;
  color: var(--website-text-muted);
  margin: 0 0 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

body.website-body.portal .portal-plan-catalogue__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
}

body.website-body.portal .portal-plan-card {
  border: 1px solid var(--website-border);
  border-radius: var(--website-radius-md, 0.5rem);
  padding: 0.625rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 100%;
  background: var(--website-surface);
}

body.website-body.portal .portal-plan-card--current {
  border-color: var(--website-primary, #2563eb);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

body.website-body.portal .portal-plan-card--unavailable {
  opacity: 0.72;
}

body.website-body.portal .portal-plan-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.375rem;
}

body.website-body.portal .portal-plan-card__name {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 0;
}

body.website-body.portal .portal-plan-card__badge {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--website-primary, #2563eb);
  white-space: nowrap;
}

body.website-body.portal .portal-plan-card__price {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0;
}

body.website-body.portal .portal-plan-card__meta {
  font-size: 0.75rem;
  color: var(--website-text-muted);
  margin: 0;
  line-height: 1.35;
  flex: 1;
}

body.website-body.portal .portal-plan-card__note {
  font-size: 0.6875rem;
  color: var(--website-text-secondary);
  margin: 0;
}

body.website-body.portal .portal-plan-card__action {
  margin-top: 0.375rem;
}

body.website-body.portal .portal-plan-card__action .portal-btn {
  width: 100%;
  font-size: 0.75rem;
  padding: 0.375rem 0.5rem;
}

body.website-body.portal .portal-plan-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2rem;
  padding: 0.375rem 0.5rem;
  border-radius: var(--website-radius-sm, 0.375rem);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--website-text-muted, #94a3b8);
  background: color-mix(in srgb, var(--website-border) 35%, transparent);
  cursor: default;
  user-select: none;
}

body.website-body.portal .portal-plan-card--current .portal-plan-status {
  color: var(--website-primary, #2563eb);
  background: color-mix(in srgb, var(--website-primary, #2563eb) 10%, transparent);
}

body.website-body.portal .portal-plan-card__action--stacked {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

body.website-body.portal .portal-plan-card__action--stacked .portal-plan-status {
  width: 100%;
}

@media (max-width: 1100px) {
  body.website-body.portal .portal-plan-catalogue__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.website-body.portal .portal-plan-catalogue__grid {
    grid-template-columns: 1fr;
  }
}

body.website-body.portal .portal-home__stepper-wrap {
  margin: 0.75rem 0 0.625rem;
}

body.website-body.portal .portal-enterprise-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

body.website-body.portal .portal-enterprise-modal.hidden {
  display: none;
}

body.website-body.portal .portal-enterprise-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
}

body.website-body.portal .portal-enterprise-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
  max-height: 90vh;
  overflow: auto;
  background: var(--website-surface, #0f172a);
  border: 1px solid var(--website-border, #334155);
  border-radius: 0.75rem;
  padding: 1rem 1rem 1.125rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

body.website-body.portal .portal-enterprise-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

body.website-body.portal .portal-enterprise-modal__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

body.website-body.portal .portal-enterprise-modal__close {
  border: 0;
  background: transparent;
  color: var(--website-text-muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

body.website-body.portal .portal-enterprise-modal__lead {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: var(--website-text-muted);
}

body.website-body.portal .portal-enterprise-modal__label {
  display: block;
  margin: 0.5rem 0 0.25rem;
  font-size: 0.8125rem;
}

body.website-body.portal .portal-enterprise-modal__input,
body.website-body.portal .portal-enterprise-modal__textarea {
  width: 100%;
  border: 1px solid var(--website-border, #334155);
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.6);
  color: inherit;
  padding: 0.5rem 0.625rem;
  font-size: 0.875rem;
}

body.website-body.portal .portal-enterprise-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.875rem;
}

body.website-body.portal .portal-home__stepper-wrap {
  margin: 0.75rem 0 0.625rem;
}

body.website-body.portal .portal-home__stepper--horizontal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.website-body.portal .portal-home__stepper-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--website-text-muted);
  position: relative;
  padding-right: 0.625rem;
}

body.website-body.portal .portal-home__stepper-item--has-next::after {
  content: '—';
  margin-left: 0.375rem;
  color: var(--website-border);
  font-weight: 400;
}

body.website-body.portal .portal-home__stepper-item--done {
  color: var(--website-text-secondary);
}

body.website-body.portal .portal-home__stepper-item--current {
  color: var(--website-text);
  font-weight: 600;
}

body.website-body.portal .portal-home__stepper-marker {
  font-size: 0.6875rem;
  line-height: 1;
}

body.website-body.portal .portal-home__current-step {
  margin: 0.5rem 0 0.375rem;
}

body.website-body.portal .portal-home__current-step-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 0.375rem;
}

body.website-body.portal .portal-home__current-step-copy,
body.website-body.portal .portal-home__current-step-note {
  font-size: 0.8125rem;
  color: var(--website-text-secondary);
  margin: 0 0 0.25rem;
  line-height: 1.45;
}

body.website-body.portal .portal-home__current-step-note {
  color: var(--website-text-muted);
  margin-bottom: 0;
}

body.website-body.portal .portal-home__plan-inline {
  font-size: 0.8125rem;
  color: var(--website-text-muted);
  margin: 0.375rem 0 0;
}

body.website-body.portal .portal-billing-page-head {
  margin-bottom: 0.75rem;
}

body.website-body.portal .portal-billing-page-head__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

body.website-body.portal .portal-billing-page-head__lead {
  margin: 0.35rem 0 0;
  font-size: 0.9375rem;
  color: var(--portal-muted, #64748b);
}

body.website-body.portal .portal-billing-paid-requested__name {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

body.website-body.portal .portal-billing-paid-requested__price {
  font-size: 1rem;
  font-weight: 600;
  margin: 0.125rem 0 0;
}

body.website-body.portal .portal-billing-paid-requested__meta {
  font-size: 0.8125rem;
  color: var(--website-text-muted);
  margin: 0.125rem 0 0;
}

body.website-body.portal .portal-billing-paid-requested__lead {
  font-size: 0.8125rem;
  color: var(--website-text-secondary);
  margin: 0.5rem 0 0;
}

body.website-body.portal .portal-billing-paid-requested__details {
  display: grid;
  gap: 0.375rem;
  max-width: 22rem;
  margin: 0.625rem 0 0;
  padding: 0;
}

body.website-body.portal .portal-billing-paid-requested__detail-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.75rem;
  font-size: 0.8125rem;
  align-items: baseline;
}

body.website-body.portal .portal-billing-paid-requested__detail-row dt {
  color: var(--website-text-muted);
  margin: 0;
}

body.website-body.portal .portal-billing-paid-requested__detail-row dd {
  margin: 0;
  font-weight: 500;
}

body.website-body.portal .portal-billing-paid-requested__actions {
  margin-top: 0.75rem;
}

body.website-body.portal .portal-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

body.website-body.portal .portal-modal.hidden {
  display: none;
}

body.website-body.portal .portal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

body.website-body.portal .portal-modal__panel {
  position: relative;
  width: min(100%, 32rem);
  max-height: min(90vh, 36rem);
  overflow: auto;
  background: var(--website-surface);
  border: 1px solid var(--website-border);
  border-radius: var(--website-radius-md, 0.5rem);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  padding: 1rem;
}

body.website-body.portal .portal-modal__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

body.website-body.portal .portal-modal__lead {
  font-size: 0.8125rem;
  color: var(--website-text-muted);
  margin: 0.375rem 0 0;
  line-height: 1.45;
}

body.website-body.portal .portal-modal__body {
  margin-top: 0.75rem;
}

body.website-body.portal .portal-modal__foot {
  margin-top: 0.75rem;
  display: flex;
  justify-content: flex-end;
}

body.website-body.portal .portal-change-plan-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

body.website-body.portal .portal-change-plan-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem 0.75rem;
  align-items: center;
  padding: 0.5rem 0.625rem;
  border: 1px solid var(--website-border);
  border-radius: var(--website-radius-md, 0.5rem);
}

body.website-body.portal .portal-change-plan-row--current {
  background: var(--website-surface-muted, rgba(0, 0, 0, 0.02));
}

body.website-body.portal .portal-change-plan-row__main {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

body.website-body.portal .portal-change-plan-row__name {
  font-size: 0.875rem;
  font-weight: 600;
}

body.website-body.portal .portal-change-plan-row__meta {
  font-size: 0.75rem;
  color: var(--website-text-muted);
}

body.website-body.portal .portal-change-plan-row__price {
  font-size: 0.75rem;
  color: var(--website-text-secondary);
  white-space: nowrap;
}

body.website-body.portal .portal-billing-surface--support-compact {
  border: none;
  box-shadow: none;
  background: transparent;
}

body.website-body.portal .portal-billing-support-compact__lead {
  font-size: 0.8125rem;
  color: var(--website-text-muted);
  margin: 0;
}

@media (max-width: 640px) {
  body.website-body.portal .portal-home__stepper--horizontal {
    gap: 0.25rem 0;
  }

  body.website-body.portal .portal-home__stepper-item {
    padding-right: 0.375rem;
  }

  body.website-body.portal .portal-change-plan-row {
    grid-template-columns: 1fr;
    gap: 0.375rem;
  }

  body.website-body.portal .portal-change-plan-row__price {
    justify-self: start;
  }

  body.website-body.portal .portal-modal__panel {
    width: 100%;
    max-height: 92vh;
  }
}

body.website-body.portal .portal-home__deploy {
  padding: 0.875rem;
  border: 1px solid var(--website-border);
  border-radius: var(--website-radius-md, 0.5rem);
  background: var(--website-surface);
  box-shadow: none;
}

body.website-body.portal .portal-home__deploy-details {
  margin-top: 0.625rem;
  font-size: 0.8125rem;
  color: var(--website-text-muted);
}

body.website-body.portal .portal-home__deploy-details-body {
  margin-top: 0.5rem;
}

body.website-body.portal .portal-home__advanced {
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

body.website-body.portal .portal-home__advanced-summary {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--website-text-muted);
  cursor: pointer;
  list-style: none;
  padding: 0.375rem 0;
}

body.website-body.portal .portal-home__advanced-body {
  margin-top: 0.5rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--website-border);
  border-radius: var(--website-radius-md, 0.5rem);
  background: var(--website-surface);
}

body.website-body.portal .portal-home__status-line--neutral {
  color: var(--website-text-muted);
}

body.website-body.portal .portal-home__subtle-notice {
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--website-text-muted);
}

body.website-body.portal .portal-home__subtle-notice.hidden {
  display: none;
}

body.website-body.portal .portal-header__plan--pending,
body.website-body.portal .portal-header__plan[hidden] {
  display: none !important;
}

body.website-body.portal .portal-page-header {
  margin-bottom: 0.875rem;
  padding-bottom: 0.625rem;
}

body.website-body.portal .portal-tab-stack .portal-panel,
body.website-body.portal [data-billing-root-inner] > .portal-panel {
  box-shadow: none;
}

body.website-body.portal .portal-tab-stack .portal-panel.p-3,
body.website-body.portal [data-billing-root-inner] > .portal-panel {
  padding: 0.875rem;
}

body.website-body.portal [data-billing-root-inner] {
  gap: 1.375rem;
}

body.website-body.portal .billing-plan-hero {
  font-size: 1.25rem;
}

@media (min-width: 640px) {
  body.website-body.portal .sm\:col-span-2 { grid-column: span 2 / span 2; }
  body.website-body.portal .sm\:hidden { display: none !important; }
  body.website-body.portal .sm\:grid { display: grid; }
}

body.website-body.portal .portal-panel-meta,
body.website-body.portal .portal-label {
  color: var(--website-text-muted);
}

body.website-body.portal .portal-panel-title {
  font-size: 0.9375rem;
}

body.website-body.portal .billing-section-title {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

body.website-body.portal .billing-plan-hero {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--website-text-primary, #f8fafc);
}

body.website-body.portal .billing-plan-hero__status {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  font-weight: 500;
}

body.website-body.portal .billing-plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.625rem;
}

@media (min-width: 640px) {
  body.website-body.portal .billing-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  body.website-body.portal .billing-plan-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

body.website-body.portal .billing-plan-card {
  position: relative;
  padding: 0.75rem 0.875rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.35);
}

body.website-body.portal .billing-plan-card h4 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--website-text-primary, #f8fafc);
}

body.website-body.portal .billing-plan-card__price {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--website-text-secondary, #cbd5e1);
}

body.website-body.portal .billing-plan-card__meta {
  margin: 0.2rem 0 0;
  font-size: 0.6875rem;
  color: var(--website-text-muted, #94a3b8);
}

body.website-body.portal .billing-plan-card--current {
  border-color: rgba(8, 145, 178, 0.55);
  box-shadow: inset 0 0 0 1px rgba(8, 145, 178, 0.25);
}

body.website-body.portal .billing-plan-card__current {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #22d3ee;
}

body.website-body.portal .billing-cap-list {
  display: grid;
  gap: 0.5rem;
}

body.website-body.portal .billing-cap-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--website-text-secondary, #cbd5e1);
}

body.website-body.portal .portal-home__link,
body.website-body.portal .portal-home__link-btn {
  font-size: 0.8125rem;
  color: #22d3ee;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

body.website-body.portal .portal-home__link:hover,
body.website-body.portal .portal-home__link-btn:hover {
  color: #67e8f9;
  text-decoration: underline;
}

body.website-body.portal .portal-home__help-link {
  margin: 0;
  padding: 0 0.25rem;
  font-size: 0.8125rem;
}

body.website-body.portal .portal-account-id {
  font-size: 0.6875rem !important;
  color: var(--website-text-muted, #64748b) !important;
}

body.website-body.portal .portal-btn.text-\[11px\] {
  font-size: 0.6875rem;
  min-height: 32px;
  padding-inline: 0.625rem;
}

body.website-body.portal fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

body.website-body.portal fieldset label {
  margin-bottom: 0;
}

body.website-body.portal input[type='radio'] {
  width: auto !important;
  min-height: auto !important;
  margin-top: 0.15rem;
}

body.website-body.portal .portal-loading {
  color: var(--website-text-muted);
  font-size: 0.8125rem;
}

/* ── Account + Billing settings layout (full portal width) ─ */
body.website-body.portal .portal-settings {
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
  width: 100%;
  max-width: none;
  padding-bottom: 0.25rem;
}

body.website-body.portal .portal-settings--billing {
  width: 100%;
  max-width: none;
}

/* Legacy alias — billing now uses .portal-billing */

body.website-body.portal #profile .portal-settings,
body.website-body.portal #billing .portal-settings,
body.website-body.portal #billing-root .portal-settings {
  width: 100%;
  max-width: none;
}

body.website-body.portal .portal-settings-section {
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
}

body.website-body.portal .portal-settings-section__head {
  margin-bottom: 0.5rem;
  padding-bottom: 0.4375rem;
  border-bottom: 1px solid var(--website-border);
}

body.website-body.portal .portal-settings-section__head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.625rem;
}

body.website-body.portal .portal-settings-section__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--website-text);
  letter-spacing: -0.01em;
}

body.website-body.portal .portal-settings-section__desc {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--website-text-muted);
}

body.website-body.portal .portal-settings-section__body {
  font-size: 0.8125rem;
  color: var(--website-text);
  padding-top: 0.125rem;
}

body.website-body.portal .portal-settings-section--featured .portal-settings-section__head {
  border-bottom-color: var(--website-border);
}

body.website-body.portal .portal-settings-section--featured .portal-settings-section__title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--website-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.website-body.portal .portal-settings-fields {
  display: grid;
  gap: 0.4375rem 1.5rem;
  margin: 0;
}

body.website-body.portal .portal-settings-fields--2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.website-body.portal .portal-settings-fields--3col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 768px) {
  body.website-body.portal .portal-settings-fields--2col,
  body.website-body.portal .portal-settings-fields--3col {
    gap: 0.3125rem 2.5rem;
  }
}

@media (max-width: 640px) {
  body.website-body.portal .portal-settings-fields--2col,
  body.website-body.portal .portal-settings-fields--3col {
    grid-template-columns: 1fr;
  }
}

body.website-body.portal .portal-settings-field {
  margin: 0;
  min-width: 0;
}

body.website-body.portal .portal-settings-field--span2 {
  grid-column: 1 / -1;
}

body.website-body.portal .portal-settings-field--names {
  display: flex;
  flex-direction: column;
  gap: 0.3125rem;
}

body.website-body.portal .portal-settings-field__name-pair {
  min-width: 0;
}

body.website-body.portal .portal-settings-field dt,
body.website-body.portal .portal-settings-label {
  margin: 0 0 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--website-text-muted);
}

body.website-body.portal .portal-settings-field dd {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--website-text);
  word-break: break-word;
}

body.website-body.portal .portal-settings-value--ok {
  color: var(--website-success);
}

body.website-body.portal .portal-settings-value--warn {
  color: #B45309;
}

body.website-body.portal .portal-settings-value--mono,
body.website-body.portal .portal-settings-table .portal-settings-value--mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  color: var(--website-text-secondary);
}

body.website-body.portal .portal-settings-field--inline {
  flex: 1;
  min-width: 0;
}

body.website-body.portal .portal-settings-security-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem;
}

body.website-body.portal .portal-settings-input {
  display: block;
  width: 100%;
  margin-top: 0.125rem;
  padding: 0.4375rem 0.625rem;
  font-size: 0.8125rem;
  color: var(--website-text);
  background: var(--website-surface);
  border: 1px solid var(--website-border);
  border-radius: var(--website-radius-sm);
  min-height: 2rem;
}

body.website-body.portal .portal-settings-input:focus {
  outline: none;
  border-color: var(--website-focus);
  box-shadow: 0 0 0 2px rgba(0, 119, 237, 0.15);
}

body.website-body.portal .portal-settings-input--readonly {
  color: var(--website-text-muted);
  background: var(--website-surface-subtle);
  cursor: not-allowed;
}

body.website-body.portal .portal-settings-edit {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 0.625rem;
}

body.website-body.portal .portal-settings-edit--bordered {
  padding-top: 0.625rem;
  border-top: 1px solid var(--website-border);
}

body.website-body.portal .portal-settings-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.125rem;
}

body.website-body.portal .portal-settings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  table-layout: auto;
}

body.website-body.portal .portal-settings-table th:last-child,
body.website-body.portal .portal-settings-table td:last-child {
  width: 8rem;
}

body.website-body.portal .portal-settings-table th:nth-child(2),
body.website-body.portal .portal-settings-table td:nth-child(2) {
  width: 40%;
}

body.website-body.portal .portal-settings-table th {
  padding: 0.25rem 0.75rem 0.25rem 0;
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--website-text-muted);
  border-bottom: 1px solid var(--website-border);
}

body.website-body.portal .portal-settings-table td {
  padding: 0.3125rem 0.75rem 0.3125rem 0;
  vertical-align: middle;
  color: var(--website-text);
  border-bottom: 1px solid rgba(213, 222, 232, 0.65);
}

body.website-body.portal .portal-settings-table tr:last-child td {
  border-bottom: none;
}

body.website-body.portal .portal-settings-footnote,
body.website-body.portal .portal-settings-copy {
  margin: 0.3125rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--website-text-muted);
}

body.website-body.portal .portal-settings-empty,
body.website-body.portal .portal-settings-loading,
body.website-body.portal .portal-settings-notice {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--website-text-muted);
}

body.website-body.portal .portal-settings-link-btn {
  margin-top: 0.375rem;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--website-link);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.website-body.portal .portal-settings-link-btn:hover {
  color: var(--website-brand-hover);
}

body.website-body.portal .portal-settings-inline-link {
  color: var(--website-link);
  text-decoration: none;
  font-weight: 500;
}

body.website-body.portal .portal-settings-inline-link:hover {
  color: var(--website-brand-hover);
  text-decoration: underline;
}

body.website-body.portal .portal-account-id {
  font-size: 0.75rem !important;
  font-weight: 400 !important;
  color: var(--website-text-muted) !important;
}

/* ── Billing tab (K4-WEB-UX-BILLING-VISUAL-REDESIGN-01) ── */
body.website-body.portal #billing .portal-billing,
body.website-body.portal #billing-root .portal-billing {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  width: 100%;
  max-width: none;
  padding-bottom: 0.25rem;
}

body.website-body.portal #billing .portal-billing-surface {
  background: var(--website-surface);
  border: 1px solid var(--website-border);
  border-radius: var(--website-radius-lg);
  padding: 1.25rem 1.375rem;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--website-text) 4%, transparent);
}

body.website-body.portal #billing .portal-billing-surface--loading {
  opacity: 0.92;
}

body.website-body.portal #billing .portal-billing-surface__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

body.website-body.portal #billing .portal-billing-surface__head--stack {
  align-items: flex-start;
}

body.website-body.portal #billing .portal-billing-surface__head-main {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

body.website-body.portal #billing .portal-billing-section-icon {
  flex: 0 0 2.25rem;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--website-radius-sm);
  background: color-mix(in srgb, var(--website-brand) 8%, var(--website-surface));
  color: var(--website-brand);
  border: 1px solid color-mix(in srgb, var(--website-brand) 18%, var(--website-border));
}

body.website-body.portal #billing .portal-billing-surface__title {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--website-text-muted);
  line-height: 1.3;
}

body.website-body.portal #billing .portal-billing-surface__subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--website-text-muted);
}

body.website-body.portal #billing .portal-status--pill {
  gap: 0.35rem;
  text-transform: none;
  flex-shrink: 0;
}

body.website-body.portal #billing .portal-status__dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: currentColor;
  flex: 0 0 auto;
}

body.website-body.portal #billing .portal-billing-current__name {
  margin: 0 0 0.35rem;
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--website-text);
  line-height: 1.2;
}

body.website-body.portal #billing .portal-billing-current__date {
  margin: 0 0 0.875rem;
  font-size: 0.875rem;
  color: var(--website-text-secondary);
  line-height: 1.4;
}

body.website-body.portal #billing .portal-billing-trial-progress {
  margin: 0 0 1rem;
}

body.website-body.portal #billing .portal-billing-trial-progress__track,
body.website-body.portal #billing .portal-billing-usage__track {
  height: 6px;
  background: color-mix(in srgb, var(--website-border) 85%, transparent);
  border-radius: 999px;
  overflow: hidden;
}

body.website-body.portal #billing .portal-billing-trial-progress__fill {
  height: 100%;
  background: var(--website-brand);
  border-radius: 999px;
}

body.website-body.portal #billing .portal-billing-trial-progress--loading .portal-billing-trial-progress__fill {
  width: 35%;
  opacity: 0.35;
}

body.website-body.portal #billing .portal-billing-current__usage {
  padding-top: 1rem;
  border-top: 1px solid var(--website-border);
}

body.website-body.portal #billing .portal-billing-current__usage-label {
  margin: 0 0 0.3rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--website-text-muted);
}

body.website-body.portal #billing .portal-billing-current__usage-value {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--website-text);
  line-height: 1.35;
}

body.website-body.portal #billing .portal-billing-current__usage-badge {
  display: inline-flex;
  margin: 0 0 0.5rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--website-text-muted) 18%, transparent);
  color: var(--website-text);
}

body.website-body.portal #billing .portal-billing-current__usage-badge--over {
  background: color-mix(in srgb, #b45309 22%, transparent);
  color: #b45309;
}

body.website-body.portal #billing .portal-billing-current__usage-note {
  margin: 0 0 0.45rem;
  font-size: 0.8125rem;
  color: var(--website-text-muted);
  line-height: 1.45;
  max-width: 36rem;
}

body.website-body.portal #billing .portal-billing-usage-progress {
  margin: 0;
}

body.website-body.portal #billing .portal-billing-usage__fill {
  height: 100%;
  background: color-mix(in srgb, var(--website-brand) 78%, var(--website-text));
  border-radius: 999px;
}

body.website-body.portal #billing .portal-billing-plan-stack {
  border: 1px solid var(--website-border);
  border-radius: var(--website-radius-md);
  overflow: hidden;
  background: var(--website-surface);
}

body.website-body.portal #billing .portal-billing-plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.25rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--website-border);
}

body.website-body.portal #billing .portal-billing-plan-row:last-child {
  border-bottom: none;
}

body.website-body.portal #billing .portal-billing-plan-row--current {
  background: color-mix(in srgb, var(--website-brand) 5%, var(--website-surface));
}

body.website-body.portal #billing .portal-billing-plan-row__main {
  min-width: 0;
  flex: 1;
}

body.website-body.portal #billing .portal-billing-plan-row__title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.website-body.portal #billing .portal-billing-plan-row__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--website-text);
  line-height: 1.25;
}

body.website-body.portal #billing .portal-billing-plan-row__badge {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--website-brand);
  padding: 0.125rem 0.375rem;
  border-radius: var(--website-radius-sm);
  background: color-mix(in srgb, var(--website-brand) 10%, var(--website-surface));
  border: 1px solid color-mix(in srgb, var(--website-brand) 22%, var(--website-border));
}

body.website-body.portal #billing .portal-billing-plan-row__meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8125rem;
  color: var(--website-text-muted);
  line-height: 1.35;
}

body.website-body.portal #billing .portal-billing-plan-row__price {
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--website-text-secondary);
  text-align: right;
  white-space: nowrap;
}

body.website-body.portal #billing .portal-billing-surface__body--flush {
  padding-top: 0;
}

body.website-body.portal #billing .portal-billing-plans-footnote {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
}

body.website-body.portal #billing .portal-billing-support__lead {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--website-text-secondary);
  max-width: 42rem;
}

body.website-body.portal #billing .portal-billing-support__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.website-body.portal #billing .portal-billing-support__cta {
  font-size: 0.8125rem;
  padding: 0.5rem 1rem;
}

@media (max-width: 640px) {
  body.website-body.portal #billing .portal-billing-surface {
    padding: 1rem 1.125rem;
  }

  body.website-body.portal #billing .portal-billing-surface__head {
    flex-direction: column;
    align-items: flex-start;
  }

  body.website-body.portal #billing .portal-billing-plan-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    min-height: 0;
    padding: 0.875rem 1rem;
  }

  body.website-body.portal #billing .portal-billing-plan-row__price {
    text-align: left;
  }

  body.website-body.portal #billing .portal-billing-support__cta {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  body.website-body.portal #billing .portal-billing-current__name {
    font-size: 1.1875rem;
  }
}

/* ── Billing financial read view (C6E) ── */
body.website-body.portal #billing .portal-billing-overview-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  body.website-body.portal #billing .portal-billing-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body.website-body.portal #billing .portal-billing-overview__metric {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

body.website-body.portal #billing .portal-billing-overview__label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--website-text-muted);
}

body.website-body.portal #billing .portal-billing-overview__value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--website-text);
}

body.website-body.portal #billing .portal-billing-overview__value--muted {
  color: var(--website-text-secondary);
  font-weight: 400;
}

body.website-body.portal #billing .portal-billing-agreement-dl {
  display: grid;
  gap: 0.5rem 1rem;
  margin: 0 0 1rem;
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--website-border);
}

@media (min-width: 640px) {
  body.website-body.portal #billing .portal-billing-agreement-dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body.website-body.portal #billing .portal-billing-agreement-dl dt {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--website-text-muted);
}

body.website-body.portal #billing .portal-billing-agreement-dl dd {
  margin: 0.15rem 0 0;
  font-size: 0.875rem;
  color: var(--website-text);
}

body.website-body.portal #billing .portal-billing-empty {
  margin: 0;
  font-size: 0.875rem;
  color: var(--website-text-secondary);
}

body.website-body.portal #billing .portal-billing-section-error {
  margin: 0;
}

body.website-body.portal #billing .portal-billing-past-due {
  margin-left: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--website-warning, #f59e0b);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

body.website-body.portal #billing .portal-billing-past-due--standalone {
  margin-left: 0;
  display: inline-block;
}

body.website-body.portal #billing .portal-billing-invoice-list,
body.website-body.portal #billing .portal-billing-payment-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

body.website-body.portal #billing .portal-billing-invoice-card,
body.website-body.portal #billing .portal-billing-payment-card {
  border: 1px solid var(--website-border);
  border-radius: var(--website-radius-md);
  padding: 0.875rem 1rem;
  background: color-mix(in srgb, var(--website-surface-subtle) 35%, var(--website-surface));
}

body.website-body.portal #billing .portal-billing-invoice-card__row,
body.website-body.portal #billing .portal-billing-payment-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

body.website-body.portal #billing .portal-billing-invoice-card__number {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--website-text);
}

body.website-body.portal #billing .portal-billing-invoice-card__dates,
body.website-body.portal #billing .portal-billing-payment-card__invoice,
body.website-body.portal #billing .portal-billing-payment-card__method,
body.website-body.portal #billing .portal-billing-payment-card__ref {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  color: var(--website-text-secondary);
}

body.website-body.portal #billing .portal-billing-invoice-card__amounts {
  text-align: right;
  flex-shrink: 0;
}

body.website-body.portal #billing .portal-billing-invoice-card__total,
body.website-body.portal #billing .portal-billing-payment-card__amount {
  margin: 0.35rem 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--website-text);
}

body.website-body.portal #billing .portal-billing-invoice-card__balance {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--website-text-muted);
}

body.website-body.portal #billing .portal-billing-invoice-card__details {
  margin-top: 0.75rem;
}

body.website-body.portal #billing .portal-billing-invoice-card__summary {
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--website-brand);
  list-style: none;
}

body.website-body.portal #billing .portal-billing-invoice-card__summary::-webkit-details-marker {
  display: none;
}

body.website-body.portal #billing .portal-billing-invoice-detail {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--website-border);
}

body.website-body.portal #billing .portal-billing-table-wrap {
  overflow-x: auto;
  margin: 0.75rem 0;
}

body.website-body.portal #billing .portal-billing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

body.website-body.portal #billing .portal-billing-table th,
body.website-body.portal #billing .portal-billing-table td {
  padding: 0.5rem 0.625rem;
  border-bottom: 1px solid var(--website-border);
  text-align: left;
}

body.website-body.portal #billing .portal-billing-invoice-detail__meta,
body.website-body.portal #billing .portal-billing-invoice-detail__totals {
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  body.website-body.portal #billing .portal-billing-invoice-detail__meta,
  body.website-body.portal #billing .portal-billing-invoice-detail__totals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body.website-body.portal #billing .portal-billing-invoice-detail__meta dt,
body.website-body.portal #billing .portal-billing-invoice-detail__totals dt {
  font-size: 0.6875rem;
  color: var(--website-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

body.website-body.portal #billing .portal-billing-invoice-detail__meta dd,
body.website-body.portal #billing .portal-billing-invoice-detail__totals dd {
  margin: 0.1rem 0 0;
  font-size: 0.875rem;
  color: var(--website-text);
}

@media (max-width: 640px) {
  body.website-body.portal #billing .portal-billing-invoice-card__row {
    flex-direction: column;
  }

  body.website-body.portal #billing .portal-billing-invoice-card__amounts {
    text-align: left;
    width: 100%;
  }

  body.website-body.portal #billing .portal-billing-payment-card {
    flex-direction: column;
  }
}


/* ── Help & Guides index (original two-column composition) ── */
body.website-body.portal .portal-help-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
  width: 100%;
  max-width: none;
  align-items: stretch;
}

@media (max-width: 900px) {
  body.website-body.portal .portal-help-layout {
    grid-template-columns: 1fr;
  }
}

body.website-body.portal .portal-help-panel {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--website-border);
  border-radius: var(--website-radius-lg);
  background: var(--website-surface);
  padding: 1.75rem 2rem;
  min-width: 0;
  min-height: 100%;
}

body.website-body.portal .portal-help-panel__title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--website-text);
  letter-spacing: -0.01em;
}

body.website-body.portal .portal-help-panel__desc {
  margin: 0.625rem 0 0;
  font-size: 0.6875rem;
  line-height: 1.4;
  color: var(--website-text-muted);
}

body.website-body.portal .portal-help-panel__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  margin-top: 0.75rem;
}

body.website-body.portal .portal-help-intro {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--website-text-secondary);
}

body.website-body.portal .portal-help-list-label {
  margin: 1rem 0 0.375rem;
  font-size: 0.6875rem;
  color: var(--website-text-muted);
}

body.website-body.portal .portal-help-bullet-list {
  margin: 0 0 1rem;
  padding-left: 1.125rem;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--website-text);
}

body.website-body.portal .portal-help-bullet-list li {
  margin: 0.25rem 0;
}

body.website-body.portal .portal-help-hours {
  margin: 0 0 1.25rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--website-text-secondary);
}

body.website-body.portal .portal-help-hours__label {
  color: var(--website-text-muted);
}

body.website-body.portal .portal-help-contact-actions {
  margin-top: 0.5rem;
}

body.website-body.portal .portal-help-resource-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 16.5rem;
}

body.website-body.portal .portal-help-panel--resources {
  display: flex;
  flex-direction: column;
}

body.website-body.portal .portal-help-resource-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.3125rem;
  padding: 0.75rem 0;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(213, 222, 232, 0.65);
}

body.website-body.portal .portal-help-resource-list li:last-child .portal-help-resource-row {
  border-bottom: none;
}

body.website-body.portal .portal-help-resource-row:hover .portal-help-resource-row__title,
body.website-body.portal .portal-help-resource-row:focus-visible .portal-help-resource-row__title {
  color: var(--website-brand);
}

body.website-body.portal .portal-help-resource-row:focus-visible {
  outline: 2px solid var(--website-focus);
  outline-offset: 2px;
  border-radius: var(--website-radius-sm);
}

body.website-body.portal .portal-help-resource-row__title {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--website-text);
  line-height: 1.3;
}

body.website-body.portal .portal-help-resource-row__desc {
  flex-shrink: 0;
  font-size: 0.625rem;
  color: var(--website-text-muted);
  text-align: right;
  line-height: 1.35;
}

body.website-body.portal .portal-help-faq {
  max-width: 48rem;
}

body.website-body.portal .portal-help-faq__nav {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
}

body.website-body.portal .portal-help-faq__nav a {
  color: var(--website-text-muted);
  text-decoration: none;
}

body.website-body.portal .portal-help-faq__nav a:hover,
body.website-body.portal .portal-help-faq__nav a:focus-visible {
  color: var(--website-text);
  text-decoration: underline;
}

body.website-body.portal .portal-help-faq__title {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--website-text-muted);
}

body.website-body.portal .portal-help-faq__list {
  margin-top: 0;
  max-width: none;
}

body.website-body.portal .portal-help-faq .faq-question:focus-visible {
  outline: 2px solid var(--website-accent, #2563eb);
  outline-offset: 2px;
}

/* ── Documentation pages — portal-aligned header chrome ── */
body.doc-page .doc-header.site-header {
  background: var(--website-surface);
  border-bottom: 1px solid var(--website-border);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.doc-page .portal-header__brand {
  gap: 0.5rem;
  min-width: 0;
}

body.doc-page .portal-header__product {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--website-text);
  letter-spacing: -0.01em;
}

body.doc-page .doc-header__meta {
  flex: 1;
  text-align: center;
  padding-inline: 1rem;
  min-width: 0;
}

body.doc-page .portal-header__name {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--website-text);
}

body.doc-page .portal-badge {
  display: none;
  font-size: 0.6875rem;
  color: var(--website-text-muted);
  border: 1px solid var(--website-border);
  border-radius: var(--website-radius-sm);
  padding: 0.125rem 0.375rem;
  margin-left: 0.375rem;
}

@media (min-width: 640px) {
  body.doc-page .portal-badge {
    display: inline-block;
  }

  body.doc-page .doc-header__meta.hidden.sm\:block {
    display: block !important;
  }
}

body.doc-page.portal .doc-header.portal-header .site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

body.doc-page.portal .doc-header .relative {
  position: relative;
  margin-left: auto;
}

body.doc-page .doc-header__actions {
  margin-left: auto;
}

/* ── Account tab — mockup layout (K4-WEB-UX-ACCOUNT-VISUAL-REDESIGN-01) ── */
body.website-body.portal #profile .portal-settings {
  gap: 1.125rem;
}

body.website-body.portal #profile .portal-account-surface,
body.website-body.portal #profile .portal-account-surface.portal-settings-section {
  background: var(--website-surface);
  border: 1px solid var(--website-border);
  border-radius: var(--website-radius-lg);
  padding: 1.25rem 1.375rem;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--website-text) 4%, transparent);
}

body.website-body.portal #profile .portal-account-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--website-radius-sm);
  border: 1px solid color-mix(in srgb, var(--website-brand) 35%, var(--website-border));
  background: var(--website-surface);
  color: var(--website-brand);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

body.website-body.portal #profile .portal-account-action-btn:hover:not(:disabled) {
  background: color-mix(in srgb, var(--website-brand) 6%, var(--website-surface));
}

body.website-body.portal #profile .portal-account-action-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

body.website-body.portal #profile .portal-account-card--profile .portal-settings-section__body {
  position: relative;
}

body.website-body.portal #profile .portal-account-edit-btn {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
}

body.website-body.portal #profile .portal-account-profile-layout {
  padding-right: 6.5rem;
}

body.website-body.portal #profile .portal-account-profile-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

body.website-body.portal #profile .portal-account-avatar-wrap {
  position: relative;
  flex: 0 0 auto;
}

body.website-body.portal #profile .portal-account-avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--website-brand) 14%, var(--website-surface));
  color: var(--website-brand);
  border: 2px solid color-mix(in srgb, var(--website-brand) 25%, var(--website-border));
}

body.website-body.portal #profile .portal-account-avatar-badge {
  position: absolute;
  right: -0.1rem;
  bottom: -0.1rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--website-brand);
  color: #fff;
  border: 2px solid var(--website-surface);
}

body.website-body.portal #profile .portal-account-avatar--initials {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

body.website-body.portal #profile .portal-account-identity__name {
  margin: 0 0 0.15rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--website-text);
  line-height: 1.25;
}

body.website-body.portal #profile .portal-account-identity__email {
  margin: 0 0 0.65rem;
  font-size: 0.8125rem;
  color: var(--website-text-secondary);
  line-height: 1.4;
  word-break: break-word;
}

body.website-body.portal #profile .portal-account-company {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

body.website-body.portal #profile .portal-account-company__icon {
  flex: 0 0 auto;
  color: var(--website-text-muted);
}

body.website-body.portal #profile .portal-account-identity__company {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--website-text-secondary);
  line-height: 1.35;
}

body.website-body.portal #profile .portal-account-company__prefix {
  color: var(--website-text-muted);
}

body.website-body.portal #profile .portal-status--pill {
  gap: 0.35rem;
  text-transform: none;
}

body.website-body.portal #profile .portal-status__dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: currentColor;
  flex: 0 0 auto;
}

body.website-body.portal #profile .portal-account-profile-edit {
  margin-top: 0;
  padding-top: 0.25rem;
}

body.website-body.portal #profile .portal-account-profile-edit__email {
  margin-top: 0.625rem;
}

body.website-body.portal #profile .portal-account-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

body.website-body.portal #profile .portal-account-card-head--compact {
  margin-bottom: 0.75rem;
}

body.website-body.portal #profile .portal-account-section-icon {
  flex: 0 0 2.25rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--website-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--website-brand) 10%, var(--website-surface));
  color: var(--website-brand);
  border: 1px solid color-mix(in srgb, var(--website-brand) 18%, var(--website-border));
}

body.website-body.portal #profile .portal-account-card-head__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--website-text);
  line-height: 1.3;
}

body.website-body.portal #profile .portal-account-card-head__desc,
body.website-body.portal #profile .portal-account-aws-summary {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--website-text-secondary);
}

body.website-body.portal #profile .portal-account-hosting-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  list-style: none;
}

body.website-body.portal #profile .portal-account-hosting-cell {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  min-width: 0;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--website-border);
  border-radius: var(--website-radius-sm);
  background: color-mix(in srgb, var(--website-surface-subtle) 55%, var(--website-surface));
}

body.website-body.portal #profile .portal-account-hosting-cell__icon {
  flex: 0 0 auto;
  color: var(--website-text-muted);
  margin-top: 0.1rem;
}

body.website-body.portal #profile .portal-account-hosting-cell__body {
  min-width: 0;
}

body.website-body.portal #profile .portal-account-hosting-cell__label {
  margin: 0;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--website-text-muted);
}

body.website-body.portal #profile .portal-account-hosting-cell__value {
  margin: 0.25rem 0 0;
}

body.website-body.portal #profile .portal-account-meta-value {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--website-text);
  word-break: break-word;
}

body.website-body.portal #profile .portal-account-meta-value--wrap {
  overflow-wrap: anywhere;
  font-weight: 500;
  font-size: 0.75rem;
}

body.website-body.portal #profile .portal-account-footnote {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0.875rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--website-text-muted);
}

body.website-body.portal #profile .portal-account-footnote__icon {
  flex: 0 0 auto;
  margin-top: 0.1rem;
  color: var(--website-text-muted);
}

body.website-body.portal #profile .portal-account-aws-header {
  margin-bottom: 0.875rem;
}

body.website-body.portal #profile .portal-account-aws-head {
  margin-bottom: 0;
  width: 100%;
}

body.website-body.portal #profile .portal-account-aws-head__text {
  flex: 1;
  min-width: 0;
}

body.website-body.portal #profile .portal-account-usage-progress {
  margin-top: 0.5rem;
  max-width: 14rem;
}

body.website-body.portal #profile .portal-account-usage__track {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--website-border) 70%, var(--website-surface));
  overflow: hidden;
}

body.website-body.portal #profile .portal-account-usage__fill {
  height: 100%;
  border-radius: inherit;
  background: var(--website-brand);
}

body.website-body.portal #profile .portal-account-capacity-badge {
  display: inline-flex;
  margin: 0.35rem 0 0;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--website-text-muted) 18%, transparent);
}

body.website-body.portal #profile .portal-account-capacity-badge--over {
  background: color-mix(in srgb, #b45309 22%, transparent);
  color: #b45309;
}

body.website-body.portal #profile .portal-account-capacity-note {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: var(--website-text-muted);
  line-height: 1.45;
  max-width: 36rem;
}

body.website-body.portal #profile .portal-account-hosting-account {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

body.website-body.portal #profile .portal-account-view-all-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.5rem;
  border: none;
  background: transparent;
  color: var(--website-brand);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
}

body.website-body.portal #profile .portal-account-view-all-btn:hover {
  text-decoration: underline;
}

body.website-body.portal #profile .portal-account-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  border: 1px solid var(--website-border);
  border-radius: var(--website-radius-sm);
}

body.website-body.portal #profile .portal-account-table {
  margin: 0;
}

body.website-body.portal #profile .portal-account-table th {
  padding: 0.5rem 0.75rem;
  font-size: 0.625rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--website-text-muted);
  background: color-mix(in srgb, var(--website-surface-subtle) 70%, var(--website-surface));
  border-bottom: 1px solid var(--website-border);
}

body.website-body.portal #profile .portal-account-table td {
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid color-mix(in srgb, var(--website-border) 80%, transparent);
  vertical-align: middle;
}

body.website-body.portal #profile .portal-account-table tr:last-child td {
  border-bottom: none;
}

body.website-body.portal #profile .portal-account-table__alias {
  font-weight: 600;
  color: var(--website-text);
}

body.website-body.portal #profile .portal-account-table__id-cell {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

body.website-body.portal #profile .portal-account-table__id {
  white-space: nowrap;
  font-size: 0.75rem;
}

body.website-body.portal #profile .portal-account-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
  border: none;
  background: transparent;
  color: var(--website-text-muted);
  border-radius: var(--website-radius-sm);
  cursor: pointer;
}

body.website-body.portal #profile .portal-account-copy-btn:hover {
  color: var(--website-brand);
  background: color-mix(in srgb, var(--website-brand) 8%, transparent);
}

body.website-body.portal #profile .portal-account-copy-btn--copied {
  color: var(--website-success);
}

body.website-body.portal #profile .portal-account-empty {
  margin: 0;
}

body.website-body.portal #profile .portal-account-security-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

body.website-body.portal #profile .portal-account-security-row__value {
  margin: 0.125rem 0 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--website-text-muted);
}

body.website-body.portal #profile .portal-account-security-edit {
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--website-border);
}

body.website-body.portal #profile .portal-account-help-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0.25rem 0 0;
  padding: 0.75rem 0 0.25rem;
  font-size: 0.8125rem;
  color: var(--website-text-secondary);
  text-align: center;
}

body.website-body.portal #profile .portal-account-help-footer a {
  color: var(--website-brand);
  text-decoration: none;
}

body.website-body.portal #profile .portal-account-help-footer a:hover {
  text-decoration: underline;
}

body.website-body.portal #profile .portal-account-help-footer__icon {
  color: var(--website-text-muted);
}

@media (max-width: 1024px) {
  body.website-body.portal #profile .portal-account-hosting-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  body.website-body.portal #profile .portal-account-profile-layout {
    padding-right: 0;
    padding-top: 2.25rem;
  }

  body.website-body.portal #profile .portal-account-usage-progress {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  body.website-body.portal #profile .portal-account-hosting-grid {
    grid-template-columns: 1fr;
  }

  body.website-body.portal #profile .portal-account-security-row {
    flex-direction: column;
    align-items: stretch;
  }

  body.website-body.portal #profile .portal-account-security-row .portal-btn {
    align-self: flex-start;
  }
}