@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20A0-20CF,U+2122,U+2191-2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root {
  --mb-ink: #142c41;
  --mb-teal: #006b58;
  --mb-canvas: #eef3f5;
  --mb-border: #879ba5;
  --mb-focus: #065e9f;
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--mb-canvas);color:var(--mb-ink);font:16px/1.55 "DM Sans",Inter,system-ui,sans-serif;font-variant-numeric:tabular-nums}a{color:inherit;text-decoration:none}button,.btn,select,input,textarea{font:inherit}button,.btn{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:.55rem;border:1px solid #d5e4dc;border-radius:9999px;background:white;color:#153c38;font-weight:650;padding:.72rem 1.2rem;line-height:1.3;text-align:center;transition:transform .15s,background .15s}button:hover,.btn:hover{background:#e6f5ec;transform:translateY(-1px)}:focus-visible{outline:3px solid #00338d;outline-offset:3px}.primary{background:#0fa974;color:#062d22;border-color:transparent}.primary:hover{background:#14bd83}.dark{background:#073f36;color:white;border-color:transparent}.dark:hover{background:#075345}.wrap{width:min(1200px,92%);margin:auto}.top{background:#fff;border-bottom:1px solid #e2ece7}.nav,.row,.between,.brand,.actions,.foot{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.between,.nav,.foot{justify-content:space-between}.nav{min-height:80px;padding:.7rem 0}.brand{gap:.6rem;font-size:1.22rem;font-weight:800;letter-spacing:-.05em;line-height:1.05}.brand small{display:block;letter-spacing:.22em;font-size:.62rem;margin-top:.2rem}.mark{display:grid;place-items:center;background:#073f36;color:#a3ebbd;border-radius:12px;width:42px;height:42px;font-size:1.6rem;font-family:Georgia,serif;font-style:italic}.links{display:flex;align-items:center;gap:1.6rem;flex-wrap:wrap}.links a[aria-current]{color:#007e57;font-weight:700}.hero{position:relative;isolation:isolate;overflow:hidden;border-radius:28px;background:#073f36;color:white;padding:clamp(1.45rem,4.6vw,4.2rem);display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:clamp(1rem,4vw,4rem);margin:1.65rem 0 2.8rem}.hero:before{content:"";position:absolute;inset:0;z-index:-1;background:repeating-radial-gradient(ellipse at 103% 120%,transparent 0 25px,#82c5a41c 26px 27px,transparent 28px 44px);mask-image:linear-gradient(110deg,transparent 12%,black 90%)}.eyebrow{font-size:.78rem;text-transform:uppercase;letter-spacing:.15em;font-weight:750;color:#217856}.hero .eyebrow{color:#acdfbd}.hero h1{font-size:clamp(2.6rem,5.3vw,5.1rem);letter-spacing:-.072em;line-height:1.02;margin:.85rem 0 1rem;color:white}.hero h1 em{font-style:normal;color:#a8e8b8}.hero p{color:#d2e7dd;font-size:1.05rem;max-width:34rem}.hero .actions{margin-top:1.6rem}.hero .primary{background:#a9edbf;color:#103f34}.hero .secondary{color:white;border-color:#80a99a;background:#ffffff09}.paper{background:#fff;color:#183c32;padding:clamp(1.1rem,2.3vw,2rem);border-radius:22px;box-shadow:8px 9px 0 #98c6a9;position:relative;margin:.7rem .6rem .7rem 0}.paper header,.paper .ledger{border-bottom:1px dashed #b8cfc1;padding-bottom:.9rem}.paper h3{margin:.1rem 0;font-size:1.25rem}.paper small,.muted{color:#51675d}.chip{display:inline-flex;background:#e4f6e9;color:#115c3a;padding:.28rem .7rem;border-radius:9999px;font-size:.8rem;font-weight:700}.ledger{margin:.8rem 0}.ledger .between{padding:.25rem 0}.big{font-size:clamp(1.45rem,3vw,2.15rem);font-weight:750;letter-spacing:-.045em}.bar{background:#e2ece7;border-radius:1rem;height:9px;overflow:hidden;margin:.5rem 0 1rem}.bar i{display:block;height:100%;background:#0fa974}.full{width:100%}h1,h2,h3{line-height:1.16;letter-spacing:-.035em;color:#123b52}h1{font-size:clamp(2rem,4vw,3.6rem)}h2{font-size:clamp(1.65rem,3vw,2.55rem);margin:.35rem 0 1.1rem}h3{font-size:1.35rem;margin:.75rem 0 .35rem}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:1rem}.card,.panel{border:1px solid #e2ece7;background:white;border-radius:22px;padding:clamp(1.1rem,2.4vw,2rem);box-shadow:0 8px 24px rgba(0,51,141,.05)}.icon{width:48px;height:48px;border-radius:15px;display:inline-grid;place-items:center;background:#e3f4e8;color:#197451}.icon svg{width:26px;height:26px}.card:nth-child(3n+2) .icon{background:#eaf0fc;color:#00338d}.card:nth-child(3n) .icon{background:#fff0db;color:#946522}.card p{color:#53685e;margin:.65rem 0}.section{margin:2.4rem 0}.foot{margin-top:3rem;padding:1.6rem 0;border-top:1px solid #d5e4dc}.auth{max-width:580px;margin:2rem auto}.fields{display:grid;gap:1rem}label{display:grid;gap:.35rem;font-weight:630;font-size:.95rem}input,textarea,select{min-width:0;width:100%;padding:.73rem .85rem;border-radius:13px;border:1px solid #bacdc1;color:inherit;background:#fff}textarea{min-height:6rem}.shell{display:grid;grid-template-columns:minmax(180px,230px) minmax(0,1fr);gap:2rem;margin:2rem auto}.sidebar nav{display:grid;gap:.25rem}.sidebar a{padding:.6rem 1rem;border-radius:999px}.sidebar a.active{background:#d6efdf;color:#075337;font-weight:700}.entry{padding:1rem 0;border-bottom:1px solid #e2ece7}.entry:last-child{border:0}.entry h3{margin:0}.pagehead{margin:2.2rem 0 1.4rem}.pagehead h1{margin:.5rem 0}.chip.alert{background:#ffe6eb;color:#9e1234}.chip.caution{background:#fff0d4;color:#825200}dialog{color:inherit;width:min(490px,92vw);padding:1.6rem;border:0;border-radius:22px;box-shadow:0 16px 64px #08271f38;max-height:90dvh}dialog::backdrop{background:#092c2380}dialog h2{font-size:1.55rem}#toast:not(:empty){position:fixed;inset:auto 1rem 1rem auto;padding:.75rem 1rem;background:#073f36;color:white;border-radius:15px;max-width:90vw;z-index:9}.error{color:#aa183a}.row>*,.between>*,.grid>*,.hero>*,.shell>*{min-width:0}body{overflow-wrap:anywhere}@media(max-width:820px){.nav .links{width:100%;order:3;justify-content:center;border-top:1px solid #e2ece7;padding-top:.6rem}.hero{grid-template-columns:1fr 1fr;padding:1.5rem;gap:1.25rem}.shell{grid-template-columns:1fr;gap:1rem}.sidebar nav{display:flex;flex-wrap:wrap}.sidebar a{padding:.4rem .75rem}}@media(max-width:650px){.hero{grid-template-columns:1fr}.hero h1{font-size:clamp(2.6rem,11vw,4rem)}.nav .actions{gap:.3rem}.nav .btn{padding:.6rem .73rem;font-size:.88rem}.links{gap:.9rem}.nav{gap:.6rem}.paper{margin:.5rem .4rem .3rem 0}.grid{grid-template-columns:1fr}.hero .actions{gap:.6rem}.brand{font-size:1.05rem}.mark{width:34px;height:34px}.wrap{width:93%}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto;transition:none}}
.sidebar label{margin-bottom:1rem}.panel.row>label{flex:1 1 180px}.pagehead h1,.shell h1,.panel h2{color:#00338d}.card>a{display:inline-block;margin-top:.65rem;font-weight:650;color:#006c4b}.hero .eyebrow{display:flex;align-items:center;gap:.65rem}.hero .eyebrow:before{content:"";width:1.8rem;height:2px;background:#a8e8b8}@media print{header.top,.sidebar,button,.foot,.btn{display:none}.shell{display:block}.card,.panel{box-shadow:none;break-inside:avoid}}

.full-logo,.compact-logo{display:block;object-fit:contain;background:#1c211e;border-radius:12px}.full-logo{height:68px;max-width:min(170px,40vw)}.compact-logo{width:46px;height:46px;background:white;border:1px solid #899ea7;object-fit:cover}

/* Shared record, billing and account dialogs */
#dialog {
  --dialog-inset: clamp(1rem, 3.5vw, 1.6rem);
  width: min(34rem, calc(100% - 1.25rem));
  max-height: min(89dvh, 54rem);
  padding: 0 var(--dialog-inset) var(--dialog-inset);
  border: 1px solid #617985;
  border-radius: 14px;
  background: white;
  color: var(--mb-ink);
  box-shadow: 0 18px 60px #132d4340;
  overscroll-behavior: contain;
}
#dialog::backdrop { background: rgb(14 35 49 / 56%); }
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 calc(-1 * var(--dialog-inset)) 1.2rem;
  padding: .8rem var(--dialog-inset);
  border-bottom: 2px solid #61b6a3;
  background: var(--mb-ink);
  color: white;
}
.dialog-heading h2 { margin: 0; color: inherit; font-size: 1.36rem; }
.dialog-heading [data-close] {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid #91a8b3;
  border-radius: 9px;
  background: transparent;
  color: white;
  font-size: 1.55rem;
}
.dialog-heading [data-close]:hover { background: #314b5d; }
.dialog-heading [data-close]:focus-visible { outline-color: #a4edcb; }
#dialog :where(input, select, textarea, .currency-options) { border-color: #758c98; border-radius: 8px; }
#dialog .fields > button[type="submit"] { min-height: 2.85rem; border-radius: 8px; background: var(--mb-teal); }
#dialog .fields > button[type="submit"]:hover { background: #005443; }
#dialog .entry { border-color: var(--mb-border); }
#dialog .error:not([hidden]) {
  margin: 0;
  padding: .7rem .9rem;
  border-inline-start: 3px solid #ad3652;
  background: #fff3f4;
}
#toast:not(:empty) { border: 1px solid #80b4a6; border-radius: 9px; background: #15473e; }
@media (max-width: 40rem) { #dialog { max-height: 92dvh; } }

/* Navigation symbols used in both workspaces and the staff console. */
.staff-symbol, svg.staff-symbol {
  display: inline-grid;
  flex: 0 0 auto;
  width: 1.12rem;
  height: 1.12rem;
  place-items: center;
  vertical-align: middle;
}
.staff-symbol svg { display: block; width: 100%; height: 100%; }

.staff-symbol { position: relative; font-style: normal; line-height: 1; font-size: 1.06rem; }
.staff-symbol::before, .staff-symbol::after { content: ""; position: absolute; box-sizing: border-box; }
.staff-symbol[data-icon="dashboard"]::before {
  inset: .13em auto auto .12em; width: .32em; height: .32em; border-radius: .075em;
  background: currentColor; box-shadow: .46em 0, 0 .46em, .46em .46em;
}
.staff-symbol[data-icon="analytics"]::before {
  inset: .09em .06em .08em .09em; border-bottom: 1.5px solid; border-left: 1.5px solid;
  border-radius: 0 0 0 .1em;
  background: linear-gradient(currentColor,currentColor) 22% 90%/.15em 30% no-repeat,
    linear-gradient(currentColor,currentColor) 53% 90%/.15em 55% no-repeat,
    linear-gradient(currentColor,currentColor) 85% 90%/.15em 80% no-repeat;
}
.staff-symbol[data-icon="workspaces"]::before,.staff-symbol[data-icon="workspaces"]::after {
  width: .69em; height: .57em; border: 1.55px solid; border-radius: .12em;
}
.staff-symbol[data-icon="workspaces"]::before { top:.15em; left:.11em; }
.staff-symbol[data-icon="workspaces"]::after { top:.39em; left:.34em; border-top: 0; border-left: 0; }
.staff-symbol[data-icon="users"]::before {
  width: .4em; height: .4em; border: 1.6px solid; border-radius: 50%; top:.07em; left:.31em;
}
.staff-symbol[data-icon="users"]::after {
  width:.87em; height:.44em; top:.59em; left:.08em; border:1.6px solid; border-bottom:0; border-radius:.46em .46em .05em .05em;
}
.staff-symbol[data-icon="plans"]::before {
  inset:.08em .15em .04em; border:1.55px solid; border-radius:.13em;
  background:linear-gradient(currentColor,currentColor) center 33%/.37em 1.5px no-repeat,
    linear-gradient(currentColor,currentColor) center 65%/.37em 1.5px no-repeat;
}
.staff-symbol[data-icon="finance"]::before {
  inset:.19em .02em .12em; border:1.55px solid; border-radius:.16em;
  background:linear-gradient(currentColor,currentColor) center 32%/100% 1.5px no-repeat,
    linear-gradient(currentColor,currentColor) 17% 78%/.21em 1.5px no-repeat;
}
.staff-symbol[data-icon="enquiries"]::before { inset:.17em .02em .14em; border:1.55px solid; border-radius:.14em; }
.staff-symbol[data-icon="enquiries"]::after { width:.49em; height:.49em; left:.28em; top:.12em; border-right:1.5px solid; border-bottom:1.5px solid; transform:rotate(45deg); }
.staff-symbol[data-icon="support"]::before { inset:.13em .06em .27em; border:1.55px solid; border-radius:.21em; }
.staff-symbol[data-icon="support"]::after { width:.26em; height:.24em; top:.66em; left:.24em; border-left:1.6px solid; border-bottom:1.6px solid; transform:skewY(-32deg); }
.staff-symbol[data-icon="settings"]::before {
  inset:.13em .04em; background:linear-gradient(currentColor,currentColor) center 25%/90% 1.5px no-repeat,
    linear-gradient(currentColor,currentColor) center 75%/90% 1.5px no-repeat;
}
.staff-symbol[data-icon="settings"]::after { width:.22em; height:.22em; left:.23em; top:.24em; border-radius:50%; background:currentColor; box-shadow:.38em .36em; }
.staff-symbol[data-icon="clock"]::before,.staff-symbol[data-icon="refresh"]::before { inset:.07em; border-radius:50%; border:1.55px solid; }
.staff-symbol[data-icon="clock"]::after { width:.24em; height:.29em; left:49%; top:23%; border-left:1.5px solid; border-bottom:1.5px solid; }
.staff-symbol[data-icon="refresh"]::before { inset:.12em; border-right-color:transparent; transform:rotate(-30deg); }
.staff-symbol[data-icon="refresh"]::after { width:.30em; height:.3em; right:.10em; top:.13em; border-right:1.5px solid; border-bottom:1.5px solid; }

[data-billing-currency][hidden], .currency-options[hidden] { display:none; }
.currency-picker { display:grid; gap:.35rem; min-width:0; }
.currency-picker label { font-weight:630; }
.currency-hint { color:#52685d; }
.currency-query { width:100%; min-width:0; }
.currency-options {
  max-height:12rem; overflow-y:auto; overscroll-behavior:contain; border:1px solid #a9c2b5;
  border-radius:14px; padding:.3rem; background:#fff;
}
.currency-options:empty { display:none; }
.currency-options [role=option] {
  display:flex; align-items:center; gap:.7rem; min-height:2.75rem; padding:.45rem .65rem;
  border-radius:10px; line-height:1.25; cursor:pointer;
}
.currency-options [role=option] b { font-size:.88rem; color:#00338d; min-width:2.4rem; }
.currency-options [role=option]:hover,.currency-options [aria-selected=true] { background:#def3e8; }
.currency-feedback { color:#52685d; }
.currency-feedback:empty { display:none; }

.currency-preferences { display:grid; gap:1rem; min-width:0; }
.currency-preferences .currency-picker { position:relative; }
.currency-preferences .currency-options {
  position:absolute; z-index:2; inset:100% 0 auto; margin-top:.2rem;
  max-height:min(12rem,40dvh); box-shadow:0 5px 14px #153c381a;
}
.currency-selection { display:grid; min-width:0; gap:.35rem; }
.currency-selection > span { font-size:.9rem; font-weight:630; }
.currency-chips {
  display:flex; flex-wrap:wrap; align-content:start; gap:.4rem; max-height:12rem; max-height:min(12rem,40dvh);
  margin:0; padding:.25rem; overflow:auto; overscroll-behavior:contain; list-style:none;
}
.currency-chips li {
  display:flex; align-items:center; gap:.4rem; max-width:100%; min-width:0; padding:.18rem .32rem .18rem .65rem;
  border:1px solid #c7e2d1; border-radius:.85rem; background:#e8f6ed; color:#164c3a; font-size:.88rem; line-height:1.35;
}
.currency-chips li > span { min-width:0; overflow-wrap:anywhere; }
.currency-chips li > small { padding:.2rem .35rem; font-weight:650; }
.currency-chips button {
  flex:none; width:2rem; height:2rem; padding:0; border:0; background:transparent; color:#18553e; font-size:1.25rem;
}
.currency-chips button:hover { background:#cee9d9; }
.currency-chips button:focus-visible { outline-offset:-2px; }
.currency-announcement { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }

.pub-sr-only, .pub-skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.pub-skip:focus { position: absolute; z-index: 10; left: 1rem; top: .5rem; background: white; padding: .7rem 1rem; border-radius: 14px; }

/* Let shared records and forms give text a usable line before actions wrap below it. */
.entry.between > div:first-child { flex: 1 1 16rem; min-inline-size: 0; }
.entry.between > :is(button, .btn, .actions) { max-inline-size: 100%; }
:where(.fields, .fields label, .dialog-heading h2, .grid > *, .actions > *) { min-inline-size: 0; }
:where(button, .btn, .chip, .fields > *, .dialog-heading h2) { max-inline-size: 100%; }
:where(h1, h2, h3) { text-wrap: balance; }
:where(p, .entry .muted, .error, #toast) { text-wrap: pretty; }

#release-update-notice {
  --notice-right: max(18px, env(safe-area-inset-right, 0px));
  --notice-left: max(18px, env(safe-area-inset-left, 0px));
  position: fixed;
  z-index: 1000;
  inset: auto var(--notice-right) max(18px, env(safe-area-inset-bottom, 0px)) auto;
  width: min(620px, calc(100% - var(--notice-left) - var(--notice-right)));
  max-width: none;
  max-height: calc(100dvh - 36px);
  overflow: auto;
  margin: 0;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: #1e293b;
  background: rgb(255 255 255 / 98%);
  border: 1px solid rgb(0 0 0 / 75%);
  border-radius: 22px;
  box-shadow: 0 12px 36px rgb(15 23 42 / 18%), 0 2px 8px rgb(15 23 42 / 8%);
  font-family: "DM Sans", system-ui, sans-serif;
  text-align: start;
}
#release-update-notice[popover]:not(:popover-open) { display: none; }
#release-update-notice .release-update-copy { flex: 1; min-width: 0; }
#release-update-notice h2 { margin: 0; color: #1e293b; font-size: 1.16rem; font-weight: 750; line-height: 1.3; }
#release-update-notice p { margin: .25rem 0 0; color: #475569; font-size: .95rem; line-height: 1.45; }
#release-update-notice button {
  flex: none; min-height: 42px; padding: .55rem 1.12rem; border: 0; border-radius: 999px;
  color: #fff; background: #059669; font: 700 1.19rem/1.25 "DM Sans", system-ui, sans-serif;
}
#release-update-notice button:hover { background: #047857; }
#release-update-notice button:focus-visible { outline: 3px solid #164b83; outline-offset: 3px; }
@media (max-width: 640px) {
  #release-update-notice {
    right: max(14px, env(safe-area-inset-right, 0px)); left: max(14px, env(safe-area-inset-left, 0px));
    bottom: max(14px, env(safe-area-inset-bottom, 0px)); width: auto; max-height: calc(100dvh - 28px);
    flex-direction: column; align-items: stretch; gap: 14px; padding: 17px; border-radius: 20px;
  }
  #release-update-notice button { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  #release-update-notice { animation: release-notice-in 180ms ease-out; }
  @keyframes release-notice-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
}
/* Leave scroll room for the last action while the persistent notice is overlaid. */
html:has(#release-update-notice) {
  --release-notice-room: calc(var(--release-notice-height, 11rem) + max(18px, env(safe-area-inset-bottom, 0px)) + 8px);
  scroll-padding-block-end: var(--release-notice-room);
}
body:has(#release-update-notice)::after { content: ""; display: block; height: var(--release-notice-room); }
#dialog[open]:has(#release-update-notice) {
  bottom: var(--release-notice-room);
  max-height: min(89dvh, 54rem, calc(100dvh - var(--release-notice-room) - .5rem));
}
@media (max-width: 760px) {
  body:has(#release-update-notice) .business-bottom { bottom: var(--release-notice-room); }
}
@media print {
  #release-update-notice, body:has(#release-update-notice)::after { display: none; }
}

.back-to-top {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 2.75rem; padding: .45rem .92rem; border: 1px solid #74978c; border-radius: 2rem;
  color: #075643; background: #fff; font-size: .93rem; font-weight: 700; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
}
.back-to-top::before {
  content: ""; width: .58rem; height: .58rem; flex: none;
  border: solid currentColor; border-width: 2px 2px 0 0; transform: translateY(.14rem) rotate(-45deg);
}
.back-to-top:is(:hover, :focus-visible) { background-color: #e0f1e9; border-color: #266f5c; }
.back-to-top:focus-visible { outline: 3px solid #006653; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  .back-to-top, .workspace-return { display: none; }
}
