:root{
  color-scheme:dark;--ink:#f5fbfa;--text:#edf7f6;--muted:#b7c7cd;--mint:#87edd7;--brand:#87edd7;--gold:#ffce91;--line:#2c4350;--panel:#141f2c;--bg:#0d141e;--radius:24px;--focus:#9afbef;
  font:16px/1.55 "Heebo","Arial",system-ui,sans-serif;background:var(--bg);color:var(--ink)
}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;min-block-size:100vh;background:radial-gradient(ellipse at 88% -15%,#284452 0,transparent 40%),radial-gradient(ellipse at 1% 15%,#153c3d 0,transparent 31%),var(--bg)}
[hidden]{display:none!important}
a{color:var(--mint);text-underline-offset:.18em}
:focus-visible{outline:2px solid var(--focus);outline-offset:4px}
.portal-skip{position:absolute;inset:8px 12px auto auto;z-index:3;padding:8px 18px;background:var(--bg);transform:translateY(-180%)}
.portal-skip:focus{transform:none}
h1,h2,p{margin:0}
h1,h2{line-height:1.13}
h1{font-size:clamp(2.1rem,6vw,4.05rem);letter-spacing:-.052em}
h2{font-size:clamp(1.3rem,2.3vw,1.65rem);letter-spacing:-.024em}
p{color:var(--muted)}
.portal-top{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:15px max(24px,env(safe-area-inset-right));border-block-end:1px solid #82acb435;background:#0c131db8;backdrop-filter:blur(18px)}
.portal-top>nav,.portal-nav,.portal-footer,.portal-actions{display:flex;align-items:center;gap:clamp(10px,3vw,22px);flex-wrap:wrap}
.portal-top a,.portal-footer a,.portal-nav a{text-decoration:none}
.portal-top>nav a,.portal-footer a,.portal-nav a{color:var(--muted)}
.portal-top>nav a:hover,.portal-footer a:hover,.portal-nav a:hover{color:var(--mint)}
.portal-brand{display:inline-flex;align-items:center;gap:10px;color:var(--ink)}
.portal-brand span{display:grid;line-height:1.12}
.portal-brand strong{font-size:1.5rem}
.portal-brand small{font-size:.62rem;letter-spacing:.22em;color:var(--muted)}
.portal-main{width:min(1180px,calc(100% - 44px));margin:clamp(20px,5vw,64px) auto 28px;min-block-size:54vh}
.portal-footer{justify-content:center;padding:22px 12px calc(22px + env(safe-area-inset-bottom));font-size:.85rem}
.portal-glass{min-width:0;background:linear-gradient(145deg,#263944e0,#172332e8 45%,#12212ced);border:1px solid #48647280;border-radius:var(--radius);box-shadow:0 18px 42px #060a1347,inset 0 1px #d3fff21b}
.portal-entry{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.9fr);gap:18px;min-height:530px}
.portal-art{display:grid;align-items:end;min-height:440px;overflow:hidden;position:relative;border-radius:var(--radius);border:1px solid #4c756a;background:#102326}
.portal-art::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 36%,#07151beb 85%,#08121a)}
.portal-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 40%}
.portal-art>div{position:relative;z-index:1;padding:32px;max-width:530px}
.portal-art h1{margin:6px 0 15px}
.portal-kicker{color:var(--mint);font-size:.79rem;font-weight:700;letter-spacing:.065em}
.entry-card,.portal-card{padding:clamp(16px,3.3vw,32px)}
.entry-card{display:grid;align-content:start;gap:24px}
.portal-tabs{display:flex;gap:4px;flex-wrap:wrap;background:#101a26;border:1px solid var(--line);border-radius:12px;padding:4px}
.portal-tabs button{flex:1;background:transparent;color:var(--muted);border:0;border-radius:8px;font:inherit;cursor:pointer;padding:8px}
.portal-tabs button[aria-pressed=true]{background:#22394a;color:var(--ink);font-weight:700}
form,.portal-card{display:grid;gap:16px;align-content:start}
form p,.portal-card h2+p{margin-top:7px}
label{display:grid;gap:6px;font-size:.93rem;color:var(--text)}
input:not([type=checkbox]),select,textarea{width:100%;min-height:44px;border:1px solid #556a78;border-radius:9px;background:#0e1825;color:var(--ink);padding:8px 10px;font:inherit}
input[type=checkbox]{width:18px;height:18px;margin:3px 0;accent-color:#72dfc4;flex:none}
.portal-check{display:flex;align-items:flex-start;gap:9px;color:var(--muted)}
.portal-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;gap:.42em;border:1px solid transparent;border-radius:10px;padding:7px 15px;cursor:pointer;font:inherit;font-weight:700;text-decoration:none;white-space:normal}
.portal-button.primary{background:#8af1db;color:#092420}
.portal-button.primary:hover{background:#b4ffe9}
.portal-button.subtle{background:#162838;color:var(--ink);border-color:#4a6374}
.portal-button.subtle:hover{background:#254456}
.portal-button.danger{background:#33222c;color:#ffd4dd;border-color:#9e5f71}
.portal-button.danger:hover{background:#4e2937}
.portal-button:disabled{opacity:.55;cursor:wait}
.portal-hero{display:flex;gap:24px;justify-content:space-between;align-items:center;padding:clamp(17px,3.5vw,35px)}
.portal-hero h1{margin:7px 0}
.portal-tag{flex:none;border:1px solid #4a786e;color:var(--mint);background:#193633;border-radius:99px;padding:6px 12px;font-size:.8rem}
.portal-nav{margin:16px 0}
.portal-nav a{background:#1b2b38;border:1px solid var(--line);border-radius:10px;padding:8px 14px}
.portal-columns{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);gap:16px}
.owner-columns{margin-block-start:16px;grid-template-columns:repeat(2,minmax(0,1fr))}
.account-card{grid-column:1/-1}
.plan-price{font-size:clamp(1.25rem,4vw,2.35rem);line-height:1;color:var(--ink)}
.plan-price small{font-size:.9rem;color:var(--muted)}
.portal-facts{display:grid;margin:0}
.portal-facts div{display:flex;word-break:break-word;justify-content:space-between;align-items:baseline;gap:12px;border-bottom:1px solid var(--line);padding:.62em 0}
.portal-facts dt{color:var(--muted);flex-shrink:0}
.portal-facts dd{margin:0}
.quota-visual{display:flex;align-items:center;gap:clamp(12px,4vw,36px)}
.quota-orbit{display:grid;justify-items:center;align-content:center;min-width:118px;aspect-ratio:1;flex:none;width:clamp(118px,21vw,173px);border-radius:50%;background:radial-gradient(circle closest-side,#172934 86%,transparent 88% 99%),conic-gradient(var(--mint) calc(var(--fill,0)*1%),#344b57 0);box-shadow:0 0 22px #6ae0bf21}
.quota-orbit span{font-size:clamp(1.5rem,4vw,2.5rem);font-weight:750;line-height:1}
.quota-orbit small{color:var(--muted)}
.quota-visual strong{font-size:clamp(1rem,2.4vw,1.46rem)}
progress{width:100%;height:8px;accent-color:var(--mint);appearance:none;border:0;border-radius:99px;background:#354c56}
progress::-webkit-progress-bar{background:#354c56;border-radius:99px}
progress::-webkit-progress-value{background:#87edd7;border-radius:99px}
progress::-moz-progress-bar{background:#87edd7;border-radius:99px}
.quota-list,.owner-client-list{list-style:none;margin:0;padding:0}
.quota-list li,.owner-client-list li{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--line);padding:.6em 0;overflow-wrap:anywhere}
.owner-client-list li{flex-wrap:wrap}
.owner-client-list small{display:block;color:var(--muted)}
.portal-support{margin-block-start:16px}
.portal-status,.portal-invite-result{margin:0 0 14px;padding:12px 16px;background:#142a2c;border:1px solid #479c86;color:var(--ink);border-radius:10px;overflow-wrap:anywhere}
.portal-status[data-error=true],#dialog-error{color:#ffd1d9;border-color:#93596a;background:#392432}
.portal-invite-result{display:grid;gap:12px;margin:0}
.portal-dialog{width:min(490px,calc(100% - 32px));border:1px solid #6d8593;color:var(--ink);background:#182836;border-radius:18px;padding:24px}
.portal-dialog::backdrop{background:#060b12ce;backdrop-filter:blur(6px)}
#dialog-error{padding:8px;border-radius:8px}
@media(max-width:700px){
  .portal-top{padding:12px max(10px,env(safe-area-inset-right));gap:10px}
  .portal-top>nav{font-size:.82rem;gap:9px}
  .portal-top>nav>a:first-child{display:none}
  .portal-brand img{width:35px;height:35px}
  .portal-main{width:calc(100% - 24px)}
  .portal-entry,.portal-columns{grid-template-columns:1fr}
  .portal-art{min-height:285px}
  .portal-art>div{padding:20px}
  .portal-art img{object-position:center 52%}
}
@media(max-width:365px){.portal-hero{align-items:flex-start;flex-direction:column;gap:9px}.portal-actions{gap:8px}}

/* Customer workspace */
:root:has(#customer-workspace:not([hidden])) {
  color-scheme: light;
  background: #f0f4f2;
}

body:has(#customer-workspace:not([hidden])) {
  display: flow-root;
  background:
    radial-gradient(ellipse at 90% -12%, #d3e9df 0, transparent 42rem),
    radial-gradient(ellipse at 2% 32%, #e0ede8 0, transparent 37rem),
    #f0f4f2;
}

.portal-icons {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

body:has(#customer-workspace:not([hidden])) .portal-top {
  display: none;
}

body:has(#customer-workspace:not([hidden])) .portal-footer a {
  color: #31594b;
}

body:has(#customer-workspace:not([hidden])) .portal-footer a:hover {
  text-decoration: underline;
}

body:has(#customer-workspace:not([hidden])) .portal-footer a:focus-visible {
  outline-color: #18624f;
}

body:has(#customer-workspace:not([hidden])) .portal-main {
  width: min(1440px, calc(100% - 48px));
  margin-block: 24px;
  min-block-size: calc(100svh - 8rem);
}

#customer-workspace {
  --ink: #172c27;
  --text: #203d34;
  --muted: #4b665e;
  --mint: #1f604f;
  --brand: #1f604f;
  --teal: #1e5b4b;
  --teal-ink: #fff;
  --line: #c9dcd4;
  --panel: #f9fcfa;
  --paper: #ffffffca;
  --shadow: 0 8px 30px #254a3410, inset 0 1px #fff;
  --surface-inset: #f2f8f5;
  --surface-raised: #f6faf8;
  --surface-hover: #e2f1e9;
  --border-control: #9cb6ab;
  --cyan-border: #86b3a4;
  --red: #8a2c42;
  --red-surface: #faeef0;
  --blue: #22516f;
  --radius: 21px;
  --focus: #18624f;
  color: var(--ink);
}

.workspace-shell {
  display: grid;
  grid-template-columns: minmax(212px, 240px) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(14px, 2.05vw, 28px);
  min-block-size: min(710px, calc(100svh - 11rem));
}

.workspace-sidebar {
  min-inline-size: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.2vw, 30px);
  position: sticky;
  inset-block-start: 20px;
  min-block-size: min(700px, calc(100svh - 7rem));
  border: 1px solid #3a6458;
  border-radius: 22px;
  padding: 22px 13px 14px;
  background: linear-gradient(165deg, #173e34 0, #123127 43%, #0c261f 95%);
  box-shadow: 0 13px 34px #113c3026, inset 0 1px #d9fff123;
  color: #f1faf5;
  overflow-wrap: anywhere;
}

.workspace-sidebar > :not(.workspace-nav-links, .workspace-identity) {
  padding-inline: 10px;
}

.workspace-sidebar p,
.workspace-identity small {
  color: #bdd3c9;
}

.workspace-sidebar .workspace-brand {
  color: #fff;
  text-decoration: none;
}

.workspace-sidebar .workspace-brand small {
  color: #b7d6c9;
  font-size: .75rem;
  letter-spacing: 0;
}

.workspace-nav-links {
  display: grid;
  min-inline-size: 0;
  align-content: start;
  gap: 5px;
}

.workspace-nav-links a {
  display: flex;
  min-block-size: 47px;
  align-items: center;
  gap: .72rem;
  padding: .49rem .7rem;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #d7ebe1;
  text-decoration: none;
  font-weight: 600;
  font-size: .94rem;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.workspace-nav-links a:hover {
  color: #fff;
  background-color: #eafff316;
}

.workspace-nav-links a[aria-current="page"] {
  background: #d7f0e4;
  color: #153e30;
  border-color: #effbf4;
  font-weight: 750;
  box-shadow: 0 4px 13px #10261d40;
}

.workspace-sidebar :focus-visible,
.workspace-mobile-nav :focus-visible {
  outline-color: #c6f7df;
}

.workspace-icon {
  flex: 0 0 auto;
  inline-size: 1.22rem;
  block-size: 1.22rem;
  color: inherit;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workspace-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-inline-size: 0;
  margin-block-start: auto;
  padding: 12px 9px 1px;
  border-block-start: 1px solid #81b5a34f;
}

.workspace-identity a {
  color: #d8f2e7;
  text-decoration: none;
}

.workspace-identity strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-identity small {
  display: block;
  font-size: .75rem;
  overflow-wrap: anywhere;
}

.workspace-avatar,
.profile-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(140deg, #c9ead9, #8ac4ae);
  color: #153e30;
  box-shadow: inset 0 1px #fff9;
}

.workspace-avatar {
  width: 39px;
  aspect-ratio: 1;
  border-radius: 12px;
}

.workspace-main,
.portal-screen {
  min-inline-size: 0;
}

.workspace-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #c8ded2;
  border-radius: 17px;
  min-block-size: 70px;
  padding: 10px clamp(12px, 2.1vw, 24px);
  background: #fcfffbbd;
  box-shadow: 0 5px 18px #2445310a, inset 0 1px #fff;
  overflow-wrap: anywhere;
}

.workspace-topbar h1 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -.025em;
  line-height: 1.25;
}

.workspace-topbar p {
  font-size: .82rem;
}

.workspace-topbar-title,
.workspace-identity .workspace-title {
  min-inline-size: 0;
  margin-inline-end: auto;
}

.workspace-mobile-brand,
.workspace-mobile-logout {
  display: none;
}

#customer-workspace .portal-tag {
  color: #205542;
  background: #e5f3ea;
  border-color: #accbbd;
  font-weight: 650;
}

.portal-screen {
  margin-block-start: clamp(17px, 2.75vw, 36px);
  scroll-margin-top: 20px;
}

.portal-screen-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-block-end: clamp(15px, 2.45vw, 26px);
}

h2.portal-screen-title {
  color: var(--ink);
  font-size: clamp(1.85rem, 4.5vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -.042em;
  margin: 0;
  overflow-wrap: anywhere;
}

.portal-screen-header p {
  margin-block-start: 7px;
  max-inline-size: 58ch;
}

.portal-screen-title:focus-visible {
  outline-offset: 6px;
}

#customer-workspace .portal-glass {
  background: linear-gradient(145deg, #ffffffea, #f6fcf9d9);
  border: 1px solid #c5dacf;
  box-shadow: var(--shadow);
}

#customer-workspace .portal-card {
  min-inline-size: 0;
  gap: 15px;
  padding: clamp(15px, 2.2vw, 28px);
}

#customer-workspace .portal-support {
  margin-block-start: 0;
}

.portal-screen-grid,
.portal-overview-grid {
  display: grid;
  gap: clamp(12px, 1.7vw, 21px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.portal-overview-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

#customer-workspace .portal-overview-hero {
  display: grid;
  align-content: center;
  gap: 13px;
  color: #f2faf5;
  min-block-size: clamp(185px, 25vw, 255px);
  padding: clamp(19px, 3.5vw, 38px);
  background:
    linear-gradient(270deg, #173a31 1%, #173a31 43%, #143a31c4 64%, #173a3119 100%),
    url("/static/brand/vault-art.png") left 40% / 55% auto no-repeat,
    #173a31;
  border: 1px solid #406b5c;
  border-radius: var(--radius);
  box-shadow: 0 10px 29px #17463729;
  overflow: hidden;
}

.portal-overview-hero :is(h1, h2, h3) {
  color: #fcfffc;
  font-size: clamp(1.5rem, 3.5vw, 2.55rem);
  line-height: 1.1;
  letter-spacing: -.038em;
  max-inline-size: 20ch;
}

.portal-overview-hero p {
  color: #e0f1e7;
  max-inline-size: 42ch;
}

#customer-workspace .portal-overview-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  min-inline-size: 0;
  min-block-size: 164px;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

#customer-workspace .portal-overview-card:hover {
  border-color: #87b09e;
  background: #fff;
  box-shadow: 0 11px 27px #264b3320, inset 0 1px #fff;
}

.portal-overview-card :is(h2, h3),
.profile-identity :is(h2, h3) {
  margin: 0;
  font-size: 1.13rem;
}

.portal-overview-card > strong {
  color: var(--ink);
  font-size: clamp(1.3rem, 3vw, 1.85rem);
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

.portal-card-link {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-block-start: auto;
  padding-block-start: 4px;
  color: #255947;
  font-size: .83rem;
  font-weight: 700;
}

.portal-overview-card .workspace-icon {
  color: #2c6b5b;
}

.portal-overview-card > .workspace-icon {
  box-sizing: content-box;
  padding: 9px;
  border-radius: 11px;
  background: #e4f2e9;
}

.portal-card-link .workspace-icon {
  inline-size: .88rem;
  block-size: .88rem;
  transform: scaleX(-1);
}

.portal-card h3 {
  margin: 0;
  line-height: 1.3;
}

.portal-card h3 + p {
  margin-block-start: 5px;
}

#overview-billing:not(:empty),
.portal-request-line:not(:empty) {
  color: var(--muted);
  font-size: .87rem;
}

#customer-workspace .quota-orbit {
  inline-size: clamp(105px, 17vw, 155px);
  min-inline-size: 0;
  background:
    radial-gradient(circle closest-side, #f6fcf8 83%, transparent 85% 100%),
    conic-gradient(#36836a calc(var(--fill, 0) * 1%), #d3e7dd 0);
  box-shadow: 0 0 26px #759e8c20;
}

#customer-workspace .quota-visual {
  gap: clamp(11px, 2.9vw, 28px);
}

#customer-workspace progress {
  accent-color: #36836a;
  background: #d7e8df;
}

#customer-workspace progress::-webkit-progress-bar {
  background: #d7e8df;
}

#customer-workspace progress::-webkit-progress-value {
  background: #36836a;
}

#customer-workspace progress::-moz-progress-bar {
  background: #36836a;
}

#customer-workspace .quota-list li {
  padding-block: 12px;
}

#customer-workspace .plan-price {
  color: var(--ink);
  font-size: clamp(1.8rem, 4.65vw, 3.1rem);
  font-weight: 750;
  letter-spacing: -.045em;
}

#customer-workspace .plan-price small {
  letter-spacing: normal;
  font-weight: 500;
}

#customer-workspace .portal-facts div {
  min-inline-size: 0;
}

#customer-workspace .portal-facts dd {
  overflow-wrap: anywhere;
}

#customer-workspace :is(input:not([type=checkbox]), textarea, select) {
  border-color: var(--border-control);
  background: var(--surface-inset);
  color: var(--ink);
}

#customer-workspace .portal-button {
  justify-self: start;
}

#customer-workspace .portal-button.primary {
  color: #fff;
  background: #1e5848;
}

#customer-workspace .portal-button.primary:hover {
  background: #256956;
}

#customer-workspace .portal-button.subtle {
  color: #224d3f;
  background: #edf6f0;
  border-color: #a4c7b9;
}

#customer-workspace .portal-button.subtle:hover {
  background: #dfefe6;
}

#customer-workspace .portal-button.danger {
  color: #85283b;
  background: #f9ecee;
  border-color: #ce8995;
}

#customer-workspace .portal-button.danger:hover {
  background: #f6dfe3;
}

#customer-workspace .portal-overview-hero :focus-visible {
  outline-color: #c6f7df;
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: clamp(13px, 2.2vw, 23px);
  min-inline-size: 0;
  margin-block-end: 9px;
  overflow-wrap: anywhere;
}

.profile-avatar {
  inline-size: clamp(50px, 6vw, 74px);
  border-radius: 17px;
  aspect-ratio: 1;
  font-size: clamp(1.35rem, 4vw, 2.25rem);
  border: 1px solid #a4cabc;
}

.profile-form {
  border-block-start: 1px solid var(--line);
  padding-block-start: 17px;
}

.profile-form .portal-button {
  min-inline-size: 135px;
}

#profile-status:not(:empty) {
  margin: 0;
  padding: 9px 12px;
  border-radius: 8px;
  background: #e2f2e8;
  color: #255947;
}

#profile-status[data-error="true"]:not(:empty) {
  background: var(--red-surface);
  color: var(--red);
}

#customer-workspace .workspace-logout,
#customer-workspace .workspace-mobile-logout {
  inline-size: 44px;
  padding: 0;
  flex-shrink: 0;
}

#customer-workspace .workspace-logout {
  color: #e8f8f0;
  border-color: #538073;
  background: #f2fff218;
}

#customer-workspace .workspace-logout:hover {
  background: #f2fff22f;
}

#customer-workspace .business-support-layout {
  --support-accent: #21604d;
  --support-selected: #e1f2e9;
}

.workspace-mobile-nav {
  display: none;
}

@media (max-width: 1110px) {
  .portal-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #customer-workspace .business-support-layout {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  }
}

@media (max-width: 970px) {
  .workspace-shell {
    grid-template-columns: minmax(180px, 202px) minmax(0, 1fr);
  }

  .portal-screen-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  body:has(#customer-workspace:not([hidden])) .portal-main {
    width: calc(100% - 28px);
    margin-block-start: 14px;
  }

  body:has(#customer-workspace:not([hidden])) .portal-footer {
    padding-block-end: calc(78px + env(safe-area-inset-bottom));
  }

  .workspace-shell {
    display: block;
    min-block-size: 60svh;
  }

  .workspace-sidebar {
    display: none;
  }

  .workspace-mobile-brand,
  #customer-workspace .workspace-mobile-logout {
    display: inline-flex;
    align-items: center;
  }

  .workspace-mobile-brand {
    flex: 0 0 auto;
  }

  .workspace-mobile-nav {
    display: grid;
    position: fixed;
    z-index: 4;
    inset-inline: 0;
    inset-block-end: 0;
    min-block-size: 66px;
    padding: 5px max(6px, env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
    border-block-start: 1px solid #406559;
    background: #123127f7;
    box-shadow: 0 -7px 24px #12372724;
    backdrop-filter: blur(14px);
  }

  .workspace-mobile-nav.workspace-nav-links {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(1px, 1vw, 8px);
  }

  .workspace-mobile-nav.workspace-nav-links a {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    min-block-size: 49px;
    gap: 3px;
    padding: 3px 0;
    font-size: clamp(.65rem, 2.65vw, .8rem);
    white-space: normal;
    line-height: 1.15;
  }

  .workspace-mobile-nav .workspace-icon {
    inline-size: 1.14rem;
    block-size: 1.14rem;
  }

  /* Keep focused controls and labels visible above the fixed navigation. */
  :root:has(#customer-workspace:not([hidden])) {
    scroll-padding-block-end: calc(72px + env(safe-area-inset-bottom));
  }

  #customer-workspace .portal-overview-hero {
    min-block-size: 188px;
    background-size: auto, auto 100%, auto;
    background-position: center, left center, center;
  }

  #customer-workspace .business-support-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  #customer-workspace .portal-overview-card {
    min-block-size: 142px;
    padding: 12px;
  }

  .workspace-topbar {
    gap: 8px;
  }

  #customer-workspace .portal-overview-hero {
    background-image: linear-gradient(270deg, #173a31 1%, #173a31f7 38%, #173a31b5 69%, #143a3159 100%), url("/static/brand/vault-art.png");
  }

  .workspace-topbar {
    min-block-size: 60px;
  }

  .workspace-topbar .portal-tag {
    max-inline-size: 85px;
    padding-inline: 7px;
    white-space: normal;
    text-align: center;
  }

  #customer-workspace .portal-facts div {
    align-items: flex-start;
  }
}

@media (max-width: 350px) {
  .portal-overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .workspace-nav-links a,
  #customer-workspace .portal-overview-card {
    transition: none;
  }
}
