:root {
  --portal-bg: #090b0f;
  --portal-sidebar: #0d1015;
  --portal-panel: #11151b;
  --portal-panel-raised: #151a21;
  --portal-line: #252b34;
  --portal-line-soft: #1b2028;
  --portal-text: #f4f5f6;
  --portal-muted: #8b949f;
  --portal-faint: #606973;
  --portal-accent: #8be5bc;
  --portal-accent-strong: #5fd7a1;
  --portal-blue: #8bb5ff;
  --portal-warn: #f2c66d;
  --portal-danger: #ff8e98;
  --portal-radius: 14px;
  --portal-mono: "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { min-height: 100%; margin: 0; color: var(--portal-text); background: var(--portal-bg); overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
.skip-link { position: fixed; z-index: 999; top: 10px; left: 10px; padding: 10px 14px; border-radius: 8px; background: white; color: #080a0d; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.portal-shell { min-height: 100vh; display: grid; grid-template-columns: 252px minmax(0, 1fr); }
.portal-sidebar { position: sticky; top: 0; height: 100vh; padding: 25px 18px 18px; display: flex; flex-direction: column; border-right: 1px solid var(--portal-line-soft); background: var(--portal-sidebar); }
.portal-brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.portal-brand-mark { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; color: #07100c; background: var(--portal-accent); font-size: 11px; font-weight: 900; letter-spacing: -.3px; }
.portal-brand strong, .portal-brand small { display: block; white-space: nowrap; }
.portal-brand strong { font-size: 14px; letter-spacing: -.15px; }
.portal-brand small { margin-top: 2px; color: var(--portal-faint); font-size: 9px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; }
.workspace-label { display: block; margin: 34px 10px 9px; color: #59616b; font-size: 9px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; }
.portal-nav { display: grid; gap: 3px; }
.portal-nav a, .operator-links a { min-height: 40px; padding: 0 11px; display: flex; align-items: center; border-radius: 8px; color: #949da8; font-size: 13px; font-weight: 590; }
.portal-nav a:hover, .operator-links a:hover { color: #e7e9eb; background: #151a21; }
.portal-nav a.active { color: #f5f6f7; background: #1a2028; box-shadow: inset 2px 0 var(--portal-accent); }
.operator-links { margin-top: 24px; padding-top: 3px; border-top: 1px solid var(--portal-line-soft); }
.operator-links .workspace-label { margin-top: 20px; }
.portal-user { margin-top: auto; padding: 17px 7px 0; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; border-top: 1px solid var(--portal-line-soft); }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #d9f8e9; background: #1c352b; font-size: 12px; font-weight: 800; }
.user-copy { min-width: 0; }
.user-copy strong, .user-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-copy strong { font-size: 11px; font-weight: 700; }
.user-copy small { margin-top: 3px; color: var(--portal-faint); font-size: 9px; }
.portal-user form { margin: 0; }
.portal-user button { padding: 5px; border: 0; background: none; color: var(--portal-faint); font-size: 10px; cursor: pointer; }
.portal-user button:hover { color: white; }

.portal-workspace { min-width: 0; }
.portal-topbar { min-height: 72px; padding: 0 clamp(24px, 4vw, 58px); display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--portal-line-soft); background: #090b0fdd; backdrop-filter: blur(18px); }
.portal-topbar > div:first-child { display: grid; gap: 3px; }
.topbar-kicker { color: var(--portal-faint); font-size: 9px; font-weight: 750; letter-spacing: 1.2px; text-transform: uppercase; }
.portal-topbar strong { font-size: 13px; }
.topbar-actions { display: flex; align-items: center; gap: 20px; color: var(--portal-muted); font-size: 11px; font-weight: 650; }
.topbar-actions a:hover { color: white; }
.portal-content { width: min(1500px, 100%); margin-inline: auto; padding: 46px clamp(24px, 4vw, 58px) 90px; }
.portal-heading, .detail-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 31px; }
.portal-heading h1, .detail-heading h1 { margin: 8px 0 8px; font-size: clamp(30px, 3.3vw, 47px); line-height: 1.05; letter-spacing: -2px; }
.portal-heading p, .detail-heading p { margin: 0; color: var(--portal-muted); font-size: 13px; line-height: 1.6; }
.portal-eyebrow { color: var(--portal-accent); font-size: 9px; font-weight: 850; letter-spacing: 1.55px; text-transform: uppercase; }
.heading-actions, .form-actions { display: flex; align-items: center; gap: 10px; }
.portal-button { min-height: 41px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--portal-line); border-radius: 9px; color: #e6e8ea; background: #151a21; font-size: 11px; font-weight: 750; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.portal-button:hover { border-color: #3b444f; background: #1a2028; transform: translateY(-1px); }
.portal-button.primary { border-color: var(--portal-accent); color: #07100c; background: var(--portal-accent); }
.portal-button.primary:hover { background: #a1edcb; }
.portal-button.quiet { background: transparent; }
.portal-button.danger { color: #ffdfe2; border-color: #65383d; background: #321a1e; }
.portal-button.full { width: 100%; }
.portal-messages { margin-bottom: 20px; display: grid; gap: 8px; }
.portal-message { padding: 12px 15px; border: 1px solid #315142; border-radius: 9px; color: #b9f1d5; background: #102019; font-size: 12px; }
.portal-message.error { color: #ffd5d9; border-color: #60383d; background: #28171a; }

.onboarding-panel, .account-strip { margin-bottom: 22px; padding: 26px 28px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border: 1px solid #29483b; border-radius: var(--portal-radius); background: #0f1915; }
.onboarding-panel h2, .account-strip h2 { margin: 8px 0 6px; font-size: 20px; letter-spacing: -.5px; }
.onboarding-panel p, .account-strip p { margin: 0; color: var(--portal-muted); font-size: 12px; line-height: 1.6; }
.account-strip { margin: 56px 0 0; border-color: var(--portal-line); background: #0e1217; }
.account-strip.compact h2 { font: 600 13px var(--portal-mono); letter-spacing: 0; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--portal-line); border-radius: var(--portal-radius); overflow: hidden; background: var(--portal-panel); }
.metric-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 20px; }
.metric-card { min-height: 140px; padding: 24px; border-left: 1px solid var(--portal-line); }
.metric-card:first-child { border-left: 0; }
.metric-card span, .metric-card small { display: block; }
.metric-card span { color: var(--portal-muted); font-size: 10px; font-weight: 700; letter-spacing: .65px; text-transform: uppercase; }
.metric-card strong { display: block; margin: 17px 0 6px; font-size: 32px; font-weight: 720; letter-spacing: -1.5px; }
.metric-card small { color: var(--portal-faint); font-size: 10px; line-height: 1.45; }
.telemetry-layout { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 20px; }
.portal-panel { min-width: 0; border: 1px solid var(--portal-line); border-radius: var(--portal-radius); background: var(--portal-panel); }
.panel-header { min-height: 87px; padding: 20px 23px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--portal-line-soft); }
.panel-header h2 { margin: 6px 0 4px; font-size: 16px; letter-spacing: -.35px; }
.panel-header p { margin: 0; color: var(--portal-faint); font-size: 10px; line-height: 1.5; }
.live-indicator { color: var(--portal-muted); font: 650 9px var(--portal-mono); text-transform: uppercase; }
.live-indicator i { width: 6px; height: 6px; margin-right: 6px; display: inline-block; border-radius: 50%; background: var(--portal-accent); box-shadow: 0 0 9px #8be5bc99; }
.chart-summary { padding: 18px 23px 4px; display: flex; gap: 40px; }
.chart-summary small, .chart-summary strong { display: block; }
.chart-summary small { color: var(--portal-faint); font-size: 9px; text-transform: uppercase; letter-spacing: .65px; }
.chart-summary strong { margin-top: 5px; font: 650 13px var(--portal-mono); }
.portal-chart { min-height: 280px; position: relative; padding: 8px 19px 0; }
.portal-chart svg { width: 100%; height: auto; min-height: 230px; display: block; overflow: visible; }
.chart-grid line { stroke: #242b34; stroke-width: 1; }
.chart-axis { fill: #69747f; font: 8px var(--portal-mono); }
.chart-observed, .chart-target, .chart-fill { vector-effect: non-scaling-stroke; }
.chart-observed { fill: none; stroke: var(--portal-accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 5px #6ae0aa55); }
.chart-target { fill: none; stroke: #78828e; stroke-width: 1.2; stroke-dasharray: 5 7; opacity: .8; }
.chart-fill { fill: url(#portal-chart-gradient); stroke: none; opacity: .85; }
.chart-points circle { fill: var(--portal-panel); stroke: var(--portal-accent); stroke-width: 2; }
.chart-tooltip { position: absolute; z-index: 3; min-width: 118px; padding: 9px 11px; border: 1px solid #39424d; border-radius: 8px; color: #dfe4e8; background: #0b0e12ed; box-shadow: 0 12px 30px #0008; pointer-events: none; font: 10px/1.55 var(--portal-mono); }
.chart-empty { position: absolute; inset: 0; display: none; place-items: center; padding: 30px; color: var(--portal-faint); font-size: 11px; text-align: center; }
.portal-chart.is-empty .chart-empty { display: grid; }
.portal-chart.is-empty svg { opacity: .15; }
.chart-legend { min-height: 44px; padding: 0 23px; display: flex; align-items: center; gap: 21px; border-top: 1px solid var(--portal-line-soft); color: var(--portal-faint); font-size: 9px; }
.chart-legend i { width: 14px; height: 2px; margin-right: 7px; display: inline-block; vertical-align: middle; }
.chart-legend .observed { background: var(--portal-accent); }
.chart-legend .target { height: 1px; background: repeating-linear-gradient(90deg, #78828e 0 4px, transparent 4px 7px); }
.capacity-panel { display: flex; flex-direction: column; }
.capacity-meter { width: 146px; height: 146px; margin: 30px auto 20px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--portal-accent) 0 var(--usage), #242a32 var(--usage) 100%); position: relative; }
.capacity-meter:before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--portal-panel); }
.capacity-meter span { z-index: 1; text-align: center; }
.capacity-meter strong { display: block; font-size: 29px; letter-spacing: -1.5px; }
.capacity-meter small { color: var(--portal-faint); font-size: 10px; }
.capacity-copy { padding: 0 23px 20px; }
.capacity-copy strong { font-size: 12px; }
.capacity-copy p { margin: 6px 0 0; color: var(--portal-faint); font-size: 10px; line-height: 1.6; }
.capacity-panel > .text-link { margin: auto 23px 20px; }

.portal-section { padding-top: 64px; scroll-margin-top: 20px; }
.section-title { margin-bottom: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; }
.section-title h2 { margin: 7px 0 0; font-size: 22px; letter-spacing: -.7px; }
.section-meta { color: var(--portal-faint); font: 9px var(--portal-mono); }
.text-link { color: #c9d0d6; font-size: 10px; font-weight: 700; }
.text-link span { margin-left: 5px; color: var(--portal-accent); }
.text-link:hover { color: white; }
.licence-grid, .server-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.licence-card, .server-card { min-width: 0; padding: 21px; border: 1px solid var(--portal-line); border-radius: 12px; background: var(--portal-panel); transition: border-color .15s ease, transform .15s ease; }
.licence-card:hover, .server-card:hover { border-color: #3a434e; transform: translateY(-2px); }
.licence-card-top, .server-card header { min-height: 22px; display: flex; align-items: center; gap: 7px; }
.licence-card-top code, .server-card header code { margin-left: auto; color: var(--portal-faint); font: 9px var(--portal-mono); }
.status-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--portal-faint); }
.status-dot.active { background: var(--portal-accent); box-shadow: 0 0 9px #8be5bc66; }
.status-dot.suspended { background: var(--portal-warn); }
.status-dot.revoked { background: var(--portal-danger); }
.status-dot.offline { background: #616b76; }
.status-text { color: var(--portal-muted); font-size: 9px; text-transform: uppercase; }
.licence-card h3, .server-card h3 { margin: 18px 0 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; letter-spacing: -.25px; }
.licence-card p, .server-card p { margin: 0; overflow: hidden; color: var(--portal-faint); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.licence-usage { height: 4px; margin: 23px 0 13px; overflow: hidden; border-radius: 99px; background: #282e37; }
.licence-usage span { width: min(var(--usage), 100%); height: 100%; display: block; border-radius: inherit; background: var(--portal-accent); }
.licence-card footer { display: flex; justify-content: space-between; color: var(--portal-muted); font-size: 9px; }
.server-card dl { margin: 22px 0 0; padding-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--portal-line-soft); }
.server-card dl div { padding-left: 11px; border-left: 1px solid var(--portal-line-soft); }
.server-card dl div:first-child { padding-left: 0; border-left: 0; }
.server-card dt { color: var(--portal-faint); font-size: 8px; text-transform: uppercase; }
.server-card dd { margin: 5px 0 0; font: 600 10px var(--portal-mono); }
.empty-state { grid-column: 1 / -1; min-height: 150px; padding: 30px; display: grid; place-content: center; border: 1px dashed #303741; border-radius: 12px; color: var(--portal-muted); text-align: center; }
.empty-state strong { color: #dfe2e5; font-size: 13px; }
.empty-state p { margin: 7px 0 0; font-size: 10px; }

.portal-table-wrap { overflow: auto; border: 1px solid var(--portal-line); border-radius: 12px; background: var(--portal-panel); }
.portal-table { width: 100%; min-width: 820px; border-collapse: collapse; }
.portal-table th { padding: 13px 18px; color: var(--portal-faint); background: #0e1217; font-size: 8px; font-weight: 800; letter-spacing: .75px; text-align: left; text-transform: uppercase; }
.portal-table td { padding: 16px 18px; border-top: 1px solid var(--portal-line-soft); color: #cdd2d7; font-size: 10px; vertical-align: middle; }
.portal-table tr:hover td { background: #151a20; }
.portal-table td strong, .portal-table td small { display: block; }
.portal-table td strong { color: #eceeef; font-size: 11px; }
.portal-table td small { margin-top: 4px; max-width: 230px; overflow: hidden; color: var(--portal-faint); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.portal-table code { font: 9px var(--portal-mono); }
.tabular { font-family: var(--portal-mono); font-variant-numeric: tabular-nums; }
.table-status, .order-status { display: inline-flex; align-items: center; gap: 6px; color: var(--portal-muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.table-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--portal-faint); }
.table-status.online { color: var(--portal-accent); }
.table-status.online i { background: var(--portal-accent); box-shadow: 0 0 8px #8be5bc66; }
.order-status.fulfilled, .order-status.paid { color: var(--portal-accent); }
.order-status.payment_failed, .order-status.refunded, .order-status.disputed { color: var(--portal-danger); }
.order-status.cancelled { color: var(--portal-warn); }
.row-action { padding: 7px 10px; border: 1px solid var(--portal-line); border-radius: 7px; color: #dfe3e6; background: transparent; font-size: 9px; font-weight: 700; cursor: pointer; }
.row-action:hover { border-color: #46515d; }
.table-empty { height: 100px; color: var(--portal-faint)!important; text-align: center; }
.muted-dash { color: var(--portal-faint); }

.back-link { display: inline-block; margin-bottom: 26px; color: var(--portal-muted); font-size: 10px; }
.back-link:hover { color: white; }
.detail-heading { align-items: center; }
.detail-status { padding: 8px 11px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--portal-line); border-radius: 99px; color: var(--portal-muted); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.detail-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--portal-faint); }
.detail-status.active { color: var(--portal-accent); border-color: #315644; }
.detail-status.active i { background: var(--portal-accent); }
.detail-status.suspended { color: var(--portal-warn); }
.detail-status.revoked { color: var(--portal-danger); }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.detail-card { min-height: 166px; padding: 23px; }
.detail-card > span { color: var(--portal-faint); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.detail-card > strong { display: block; margin: 22px 0 8px; font-size: 25px; letter-spacing: -1px; }
.detail-card > strong small { color: var(--portal-faint); font-size: 11px; letter-spacing: 0; }
.detail-card p { margin: 0; color: var(--portal-faint); font-size: 10px; line-height: 1.55; }
.mono-large { font: 650 19px var(--portal-mono)!important; letter-spacing: 0!important; }
.mini-progress { height: 5px; margin-top: 18px; overflow: hidden; border-radius: 99px; background: #292f38; }
.mini-progress i { height: 100%; display: block; background: var(--portal-accent); }
.server-chart { margin-top: 20px; }
.server-info-grid { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 20px; }
.info-list dl { margin: 0; }
.info-list dl div { padding: 14px 22px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--portal-line-soft); }
.info-list dl div:first-child { border-top: 0; }
.info-list dt { color: var(--portal-faint); font-size: 10px; }
.info-list dd { margin: 0; color: #d8dcdf; font: 10px var(--portal-mono); text-align: right; }
.info-list dd a { color: var(--portal-accent); }
.danger-card { padding: 24px; align-self: start; }
.danger-card h2 { margin: 8px 0; font-size: 17px; }
.danger-card p { margin: 0 0 23px; color: var(--portal-muted); font-size: 10px; line-height: 1.65; }

.security-panel { max-width: 720px; padding: 26px; }
.portal-form { display: grid; gap: 19px; }
.portal-form label > span { display: block; margin-bottom: 8px; color: #c9ced3; font-size: 11px; font-weight: 650; }
.portal-form input, .auth-form input { width: 100%; min-height: 43px; padding: 0 12px; border: 1px solid #303741; border-radius: 8px; outline: none; color: white; background: #0b0e12; }
.portal-form input:focus, .auth-form input:focus { border-color: var(--portal-accent); box-shadow: 0 0 0 3px #8be5bc14; }
.portal-form label small { margin-top: 8px; display: block; color: var(--portal-faint); font-size: 9px; line-height: 1.55; }
.portal-form label small ul { margin: 6px 0 0; padding-left: 18px; }
.portal-form em { margin-top: 6px; display: block; color: var(--portal-danger); font-size: 9px; font-style: normal; }
.portal-form .form-actions { padding-top: 4px; justify-content: flex-end; }

.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 28px 18px; background: radial-gradient(circle at 50% 0, #142019 0, transparent 38%), var(--portal-bg); }
.auth-shell { width: min(440px, 100%); }
.auth-brand { margin: 0 0 24px 4px; }
.auth-card { padding: 31px; border: 1px solid var(--portal-line); border-radius: 16px; background: #10141a; box-shadow: 0 28px 80px #0007; }
.auth-card h1 { margin: 9px 0 8px; font-size: 28px; line-height: 1.1; letter-spacing: -1.2px; }
.auth-card > p { margin: 0; color: var(--portal-muted); font-size: 11px; line-height: 1.6; }
.auth-form { margin-top: 27px; display: grid; gap: 16px; }
.auth-form label { color: #c9ced3; font-size: 10px; font-weight: 650; }
.auth-form input { margin-top: 7px; }
.auth-field-link { float: right; color: var(--portal-accent); font-size: 9px; font-weight: 600; }
.auth-field-link:hover { color: #baf7dc; }
.auth-error { padding: 10px 12px; border: 1px solid #663a40; border-radius: 8px; color: #ffc8cd; background: #28171a; font-size: 10px; }
.auth-note { margin-top: 23px; padding-top: 18px; border-top: 1px solid var(--portal-line-soft); }
.auth-note span { color: #d5d9dd; font-size: 10px; font-weight: 700; }
.auth-note p { margin: 5px 0 0; color: var(--portal-faint); font-size: 9px; line-height: 1.55; }
.auth-footer { margin: 17px 0 0; color: var(--portal-faint); font-size: 9px; text-align: center; }
.auth-footer a { color: var(--portal-muted); }

@media (max-width: 1120px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-card:nth-child(3) { border-left: 0; border-top: 1px solid var(--portal-line); }
  .metric-card:nth-child(4) { border-top: 1px solid var(--portal-line); }
  .licence-grid, .server-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
  .portal-shell { display: block; }
  .portal-sidebar { position: relative; z-index: 10; width: 100%; height: auto; padding: 14px 18px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; border-right: 0; border-bottom: 1px solid var(--portal-line-soft); }
  .sidebar-top { display: contents; }
  .workspace-label, .operator-links { display: none; }
  .portal-nav { display: flex; justify-content: center; overflow-x: auto; }
  .portal-nav a { min-height: 35px; padding-inline: 10px; white-space: nowrap; }
  .portal-nav a.active { box-shadow: inset 0 -2px var(--portal-accent); }
  .portal-user { margin: 0; padding: 0; display: flex; border: 0; }
  .user-copy { display: none; }
  .portal-topbar { display: none; }
  .portal-content { padding-top: 34px; }
  .telemetry-layout { grid-template-columns: 1fr; }
  .capacity-panel { min-height: 260px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .capacity-panel .panel-header { grid-column: 1 / -1; }
  .capacity-panel > .text-link { margin: 10px 23px 20px; }
  .server-info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .portal-sidebar { display: flex; flex-direction: row; align-items: center; justify-content: space-between; }
  .portal-brand strong, .portal-brand small { display: none; }
  .portal-nav { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; height: 61px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; overflow: hidden; border-top: 1px solid var(--portal-line); background: #0c1015f5; backdrop-filter: blur(14px); }
  .portal-nav a { min-width: 0; min-height: 60px; padding: 0 5px; display: grid; place-items: center; border-radius: 0; font-size: 9px; text-align: center; }
  .portal-nav a.active { background: #18221f; box-shadow: inset 0 2px var(--portal-accent); }
  .portal-user { display: flex; }
  .portal-user .avatar { width: 30px; height: 30px; }
  .portal-user form button { font-size: 9px; }
  .portal-content { padding: 29px 16px 70px; }
  .portal-heading, .detail-heading { align-items: flex-start; flex-direction: column; }
  .portal-heading h1, .detail-heading h1 { font-size: 34px; letter-spacing: -1.4px; }
  .heading-actions { width: 100%; }
  .heading-actions .portal-button { flex: 1; }
  .metric-grid, .metric-grid.three { grid-template-columns: 1fr 1fr; }
  .metric-grid.three .metric-card:last-child { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--portal-line); }
  .metric-card { min-height: 124px; padding: 19px; }
  .metric-card strong { font-size: 27px; }
  .chart-summary { gap: 21px; overflow-x: auto; }
  .portal-chart { min-height: 220px; padding-inline: 8px; }
  .portal-chart svg { min-height: 200px; }
  .licence-grid, .server-card-grid, .detail-grid { grid-template-columns: 1fr; }
  .section-title { align-items: flex-start; flex-direction: column; }
  .portal-section { padding-top: 52px; }
  .capacity-panel { display: flex; }
  .onboarding-panel, .account-strip { align-items: flex-start; flex-direction: column; }
  .account-strip .portal-button, .onboarding-panel .portal-button { width: 100%; }
  .panel-header { padding-inline: 18px; }
  .server-card dl { grid-template-columns: 1fr 1fr 1fr; }
  .auth-card { padding: 26px 21px; }
}
