@import url("./design-tokens.55a462c9838f.css");

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

html.portal-html {
  font-size: 14.5px;
}

body {
  --header-height: 68px;
  --portal-panel-padding: 20px;
  --portal-card-padding: 12px 14px;
  --portal-card-padding-tight: 10px 12px;
  --portal-card-gap: 10px;
  --portal-panel-shadow: 0 8px 22px rgba(5, 5, 5, 0.055);
  --portal-section-gap: 14px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

.portal-body--app {
  --app-sidebar-width: 248px;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: anywhere;
}

p {
  color: var(--muted);
}

.portal-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(223, 227, 232, 0.9);
  backdrop-filter: blur(16px);
  transition:
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.portal-header.is-scrolled {
  border-color: rgba(5, 5, 5, 0.08);
  box-shadow: 0 12px 30px rgba(5, 5, 5, 0.08);
}

.portal-nav {
  width: min(1120px, calc(100% - 40px));
  min-height: var(--header-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.portal-body--app .portal-nav {
  width: auto;
  margin-inline: 0;
  padding-inline: 24px;
}

.portal-body--app .portal-nav {
  display: grid;
  grid-template-columns: var(--app-sidebar-width) minmax(240px, 1120px) max-content;
  justify-content: stretch;
}

.portal-body--app .portal-brand {
  width: 154px;
}

.portal-body--app .quick-switcher {
  width: min(100%, 360px);
}

.portal-brand {
  width: 174px;
  flex: 0 0 auto;
}

.portal-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quick-switcher {
  position: relative;
  width: min(100%, 420px);
}

.quick-switcher__summary {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  list-style: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.quick-switcher__summary::-webkit-details-marker {
  display: none;
}

.quick-switcher__summary:hover,
.quick-switcher__summary:focus-visible,
.quick-switcher[open] .quick-switcher__summary {
  border-color: rgba(217, 0, 43, 0.32);
  color: var(--ink);
  outline: none;
  box-shadow: 0 0 0 3px rgba(217, 0, 43, 0.08);
}

.quick-switcher__icon,
.quick-switcher__field-icon {
  width: 18px;
  height: 18px;
  background: currentColor;
  display: inline-block;
  flex: 0 0 18px;
  -webkit-mask: url("../vendor/lucide/icons/search.54f938bd05d9.svg") center / contain no-repeat;
  mask: url("../vendor/lucide/icons/search.54f938bd05d9.svg") center / contain no-repeat;
}

.quick-switcher__summary-text {
  min-width: 0;
  overflow: hidden;
  font-size: 0.92rem;
  font-weight: 760;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-switcher__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 90;
  width: min(520px, calc(100vw - 24px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 42px rgba(5, 5, 5, 0.16);
}

.quick-switcher__form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.quick-switcher__field-icon {
  color: var(--muted);
}

.quick-switcher__form input {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 750;
  outline: none;
  padding: 10px 12px;
}

.quick-switcher__form input:focus {
  border-color: rgba(217, 0, 43, 0.38);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(217, 0, 43, 0.08);
}

.quick-switcher__results {
  max-height: min(520px, calc(100vh - var(--header-height) - 110px));
  overflow: auto;
  padding: 10px;
}

.quick-switcher__meta {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.quick-switcher__groups {
  display: grid;
  gap: 10px;
}

.quick-switcher__group {
  display: grid;
  gap: 6px;
}

.quick-switcher__group h2 {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.quick-switcher__list {
  display: grid;
  gap: 4px;
}

.quick-result {
  min-height: 54px;
  border-radius: 8px;
  color: var(--ink-soft);
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
}

.quick-result:hover,
.quick-result:focus-visible {
  background: var(--surface);
  color: var(--brand-red);
  outline: none;
}

.quick-result__type {
  width: 66px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1;
  padding: 5px 7px;
}

.quick-result__copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.quick-result__copy strong,
.quick-result__copy span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-result__copy strong {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
}

.quick-result__copy span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 720;
}

.quick-switcher__empty {
  display: grid;
  gap: 4px;
  padding: 14px 4px 16px;
}

.quick-switcher__empty strong {
  color: var(--ink);
}

.quick-switcher__empty p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.account-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--brand-red-soft);
  color: var(--brand-red-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 950;
}

.notification-menu,
.account-menu {
  position: relative;
}

.notification-menu__summary,
.account-menu__summary {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 6px;
  list-style: none;
}

.notification-menu__summary {
  position: relative;
  width: 44px;
  justify-content: center;
  gap: 0;
  padding: 0;
}

.notification-menu__summary::-webkit-details-marker,
.account-menu__summary::-webkit-details-marker {
  display: none;
}

.notification-menu__summary:hover,
.notification-menu__summary:focus-visible,
.account-menu__summary:hover,
.account-menu__summary:focus-visible {
  border-color: rgba(217, 0, 43, 0.32);
  outline: none;
}

.notification-menu__icon,
.notification-menu__chevron {
  background: currentColor;
  display: inline-block;
  -webkit-mask: var(--notification-icon) center / contain no-repeat;
  mask: var(--notification-icon) center / contain no-repeat;
}

.notification-menu__icon {
  --notification-icon: url("../vendor/lucide/icons/bell.27a6d7462e97.svg");
  width: 19px;
  height: 19px;
  color: var(--ink-soft);
}

.notification-menu__chevron {
  --notification-icon: url("../vendor/lucide/icons/chevron-down.a19b6e817470.svg");
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 11px;
  height: 11px;
  color: var(--brand-red-dark);
}

.notification-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: 17px;
  height: 17px;
  border: 2px solid var(--paper);
  border-radius: 999px;
  background: var(--brand-red);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.64rem;
  font-weight: 950;
  line-height: 1;
  padding-inline: 3px;
}

.notification-indicator {
  display: contents;
}

.account-menu__copy {
  display: grid;
  gap: 1px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.15;
}

.account-menu__copy small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.notification-menu__panel,
.account-menu__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 90;
  width: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 42px rgba(5, 5, 5, 0.16);
}

.notification-menu__panel {
  width: min(380px, calc(100vw - 24px));
  display: block;
  overflow: hidden;
}

.notification-panel__body {
  display: grid;
}

.notification-panel__header,
.notification-panel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}

.notification-panel__header {
  border-bottom: 1px solid var(--line);
}

.notification-panel__header strong {
  color: var(--ink);
  display: block;
  font-size: 0.95rem;
  line-height: 1.2;
}

.notification-panel__header span {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 750;
}

.notification-panel__header form,
.notification-item__actions form {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.notification-panel__footer {
  margin: 0;
}

.notification-panel__header button,
.notification-item__actions button,
.notification-item__actions a,
.notification-panel__footer a {
  border: 0;
  background: transparent;
  color: var(--brand-red-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  min-height: 20px;
  padding: 0;
  text-align: left;
}

.notification-panel__header button:hover,
.notification-panel__header button:focus-visible,
.notification-item__actions button:hover,
.notification-item__actions button:focus-visible,
.notification-item__actions a:hover,
.notification-item__actions a:focus-visible,
.notification-panel__footer a:hover,
.notification-panel__footer a:focus-visible {
  color: var(--brand-red);
  outline: none;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.notification-list {
  display: grid;
}

.notification-list--page {
  gap: 10px;
}

.notification-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 14px;
}

.notification-list:not(.notification-list--page) .notification-item + .notification-item {
  border-top: 1px solid var(--line);
}

.notification-list--page .notification-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.notification-item.is-unread {
  background: var(--brand-red-soft);
}

.notification-list--page .notification-item.is-unread {
  border-color: rgba(217, 0, 43, 0.22);
}

.notification-item__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: transparent;
  margin-top: 7px;
}

.notification-item.is-unread .notification-item__dot {
  background: var(--brand-red);
}

.notification-item__body {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.notification-item__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.notification-item__title strong {
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.25;
}

.notification-item__title span {
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 0.74rem;
  font-weight: 750;
}

.notification-item p,
.notification-empty p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.notification-item__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  line-height: 1;
}

.notification-empty {
  display: grid;
  gap: 4px;
  padding: 18px 14px;
}

.notification-empty strong {
  color: var(--ink);
}

.notification-panel__footer {
  border-top: 1px solid var(--line);
}

.account-menu__panel {
  display: grid;
  gap: 4px;
  padding: 8px;
}

.account-menu__panel a,
.account-menu__panel button {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 9px 10px;
  font-size: 0.92rem;
  font-weight: 850;
  text-align: left;
}

.account-menu__panel a:hover,
.account-menu__panel a:focus-visible,
.account-menu__panel button:hover,
.account-menu__panel button:focus-visible {
  background: var(--surface);
  color: var(--brand-red);
  outline: none;
}

.account-menu__panel form {
  margin: 0;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle__line {
  width: 20px;
  height: 2px;
  overflow: hidden;
  background: var(--ink);
  border-radius: 999px;
  font-size: 0;
  transition:
    transform 160ms ease,
    opacity 160ms ease;
}

body.nav-open .nav-toggle__line:first-child {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle__line:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle__line:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.portal-nav__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.portal-nav__links form {
  margin: 0;
}

.portal-link,
.portal-logout {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.15;
  padding: 9px 11px;
  text-align: center;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.portal-link:hover,
.portal-link:focus-visible,
.portal-logout:hover,
.portal-logout:focus-visible {
  background: var(--surface);
  color: var(--brand-red);
  outline: none;
}

.portal-link.is-active {
  background: var(--brand-red-soft);
  color: var(--brand-red-dark);
}

.portal-link--primary {
  background: var(--ink);
  color: var(--paper);
}

.portal-link--primary:hover,
.portal-link--primary:focus-visible,
.portal-link--primary.is-active {
  background: var(--brand-red);
  color: var(--paper);
}

.portal-main {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
  padding: 40px 0 56px;
  flex: 1 0 auto;
}

.portal-main--app {
  width: auto;
  margin-inline: 0;
  padding: 24px 28px 42px calc(var(--app-sidebar-width) + 28px);
}

.app-shell {
  display: block;
}

.app-sidebar {
  position: fixed;
  top: var(--header-height);
  bottom: 0;
  left: 0;
  z-index: 45;
  width: var(--app-sidebar-width);
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  box-shadow: none;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 16px;
}

.app-nav {
  display: grid;
  gap: 4px;
}

.app-nav__section {
  padding: 2px 10px 5px;
}

.app-nav__eyebrow {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.app-nav__link {
  min-height: 38px;
  border-radius: 8px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.94rem;
  font-weight: 850;
  padding: 8px 10px;
}

.app-nav__icon {
  width: 18px;
  height: 18px;
  background: currentColor;
  display: inline-block;
  flex: 0 0 18px;
  -webkit-mask: var(--app-nav-icon) center / contain no-repeat;
  mask: var(--app-nav-icon) center / contain no-repeat;
}

.app-nav__icon--dashboard {
  --app-nav-icon: url("../vendor/lucide/icons/layout-dashboard.dda374fc7c9c.svg");
}

.app-nav__icon--services {
  --app-nav-icon: url("../vendor/lucide/icons/server.6fcc915dffee.svg");
}

.app-nav__icon--domains {
  --app-nav-icon: url("../vendor/lucide/icons/search.54f938bd05d9.svg");
}

.app-nav__icon--invoices {
  --app-nav-icon: url("../vendor/lucide/icons/receipt-text.779fab596c74.svg");
}

.app-nav__icon--support {
  --app-nav-icon: url("../vendor/lucide/icons/life-buoy.097bd0d29fb6.svg");
}

.app-nav__icon--privacy {
  --app-nav-icon: url("../vendor/lucide/icons/file-lock-2.0d2247ae96d4.svg");
}

.app-nav__icon--staff {
  --app-nav-icon: url("../vendor/lucide/icons/users-round.4d3050633c8f.svg");
}

.app-nav__link:hover,
.app-nav__link:focus-visible {
  background: var(--surface);
  color: var(--brand-red);
  outline: none;
}

.app-nav__link.is-active {
  background: var(--brand-red-soft);
  color: var(--brand-red-dark);
}

.app-nav__group {
  display: grid;
  gap: 2px;
}

.app-nav__submenu {
  display: none;
  gap: 2px;
  margin: -1px 0 4px 27px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.app-nav__group.is-active .app-nav__submenu {
  display: grid;
}

.app-nav__subitem {
  min-height: 32px;
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  align-items: center;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.2;
  padding: 7px 9px;
}

.app-nav__subitem:hover,
.app-nav__subitem:focus-visible {
  background: var(--surface);
  color: var(--brand-red);
  outline: none;
}

.app-nav__subitem.is-active {
  background: var(--surface-strong);
  color: var(--ink);
}

.app-sidebar__footer {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  padding-top: 11px;
}

.app-sidebar__footer .button,
.app-sidebar__footer .portal-logout {
  width: 100%;
}

.app-sidebar__footer form {
  margin: 0;
}

.app-content {
  min-width: 0;
  width: min(100%, 1120px);
  margin-inline: auto;
}

.portal-footer {
  flex: 0 0 auto;
  padding: 28px 0 24px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.portal-footer__inner {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, max-content);
  gap: 22px 34px;
  align-items: start;
}

.footer-grid p {
  margin: 0;
  font-size: 0.94rem;
}

.footer-grid .footer-kicker {
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.footer-company {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
}

.footer-company__body {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(170px, max-content) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.company-address {
  display: grid;
  gap: 2px;
  margin: 0;
  color: var(--muted);
  font-style: normal;
}

.company-address strong {
  color: var(--ink);
}

.footer-company .company-address,
.footer-company .company-facts dd {
  color: var(--muted);
}

.footer-company .company-address {
  gap: 2px;
}

.footer-company .company-address a {
  color: var(--brand-red);
}

.footer-badge {
  display: inline-flex;
  align-self: start;
  justify-self: center;
  width: max-content;
  border-radius: 6px;
}

.footer-badge img {
  display: block;
  height: auto;
}

.footer-badge:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 3px;
}

.company-address a {
  color: var(--brand-red);
  font-weight: 800;
}

.company-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 8px;
  margin: 0;
}

.company-facts dt {
  color: var(--ink-soft);
  font-weight: 850;
}

.company-facts dd {
  margin: 0;
  color: var(--muted);
}

.footer-links {
  display: grid;
  gap: 8px;
  align-content: start;
  justify-items: start;
}

.footer-links__list {
  display: grid;
  gap: 6px;
}

.footer-links a {
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.25;
  /* WCAG 2.2 SC 2.5.8: touch target ≥ 24px */
  padding-block: 4px;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.company-address a:hover,
.company-address a:focus-visible {
  color: var(--brand-red);
  outline: none;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.footer-meta {
  grid-column: 1 / -1;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: left;
}

.portal-footer--compact .portal-footer__inner {
  width: auto;
  margin-inline: 0;
  padding-inline: 28px;
  padding-left: calc(var(--app-sidebar-width) + 28px);
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(180px, auto);
    gap: 20px 28px;
  }

  .footer-company__body {
    grid-template-columns: minmax(180px, 0.7fr) minmax(220px, 1fr);
  }
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-company__body {
    grid-template-columns: 1fr;
  }

  .portal-footer--compact .portal-footer__inner {
    padding-left: 40px;
  }
}

.auth-card,
.content-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--portal-panel-shadow);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 32px;
  align-items: start;
  padding: 10px 0 8px;
}

.hero-panel h1 {
  margin-bottom: 12px;
  font-size: 2.45rem;
  line-height: 1.08;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.page-header h1 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 2.1rem;
  line-height: 1.1;
}

.page-header p {
  max-width: 68ch;
  margin-bottom: 0;
}

.page-header--public-help {
  display: block;
  max-width: 780px;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--brand-red-dark);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.auth-card h1,
.content-panel h1 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1.12;
}

.content-panel h2,
.auth-card h2,
.form-section h2 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.22rem;
  line-height: 1.2;
}

.content-panel > p,
.auth-card > p,
.hero-panel p {
  max-width: 68ch;
}

.mfa-qr {
  width: min(220px, 100%);
  margin: 18px auto 16px;
}

.mfa-qr svg {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 10px;
}

.mfa-manual {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.mfa-manual label,
.mfa-manual summary {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 900;
}

.mfa-manual summary {
  cursor: pointer;
}

.mfa-secret-field,
.mfa-uri-field {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.45;
}

.mfa-secret-field {
  min-height: 44px;
  padding: 10px 12px;
}

.mfa-uri-field {
  margin-top: 8px;
  padding: 10px 12px;
  resize: vertical;
}

/* Secondary section within an auth card (e.g. Passkeys, alternative options). */
.mfa-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.mfa-section h2 {
  margin-bottom: 4px;
}

.mfa-section > p {
  margin-bottom: 0;
  color: var(--muted);
}

.mfa-section .form-actions {
  margin-top: 16px;
}

/* Helper links at the bottom of an auth card (sign up, reset password). */
.auth-links {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
  font-size: 0.9rem;
  color: var(--muted);
}

.auth-links p {
  margin: 0;
}

/* Registered passkey / security-key list. */
.mfa-key-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.mfa-key {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.mfa-key__info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
}

.mfa-key__info strong {
  color: var(--ink);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.mfa-key__info .muted {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.mfa-key__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.badge--primary {
  border-color: var(--brand-red);
  background: var(--brand-red-soft);
  color: var(--brand-red-dark);
}

.auth-email {
  color: var(--ink);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.hero-actions,
.card-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-heading h2,
.panel-heading p {
  margin-bottom: 0;
}

.panel-heading p {
  margin-top: 4px;
}

.panel-heading--compact {
  margin-bottom: 4px;
}

.button {
  min-width: min(100%, 9.5rem);
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1.15;
  padding: 10px 16px;
  text-align: center;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button:hover,
.button:focus-visible {
  border-color: var(--brand-red);
  background: var(--brand-red);
  outline: none;
}

.portal-body--app .button,
.portal-body--app .portal-link,
.portal-body--app .portal-logout {
  min-height: 38px;
  padding: 8px 12px;
}

.button:active,
.portal-link:active,
.portal-logout:active {
  transform: translateY(1px);
}

.button--secondary {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  border-color: var(--brand-red);
  background: var(--brand-red-soft);
  color: var(--brand-red-dark);
}

.button--small {
  font-size: 0.8rem;
  font-weight: 800;
  padding: 5px 10px;
  min-height: 0;
}

.portal-body--app .button--small {
  min-height: 0;
  padding: 5px 10px;
}

.button--danger {
  border-color: var(--brand-red);
  background: var(--brand-red);
  color: var(--paper);
}

.staff-customer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.staff-quota-form {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.staff-quota-form input {
  width: 84px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.metric-grid,
.dashboard-grid,
.profile-grid {
  display: grid;
  gap: var(--portal-card-gap);
}

.metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.dashboard-metrics {
  margin-bottom: 14px;
}

.onboarding-panel {
  margin-bottom: var(--portal-section-gap);
}

.onboarding-list {
  display: grid;
  gap: 6px;
}

.onboarding-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 9px 12px;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.onboarding-item:hover,
.onboarding-item:focus-visible {
  border-color: rgba(217, 0, 43, 0.3);
  background: var(--brand-red-soft);
  outline: none;
}

.onboarding-item__marker {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  height: 18px;
  justify-content: center;
  width: 18px;
}

.onboarding-item__marker::before {
  border: 2px solid currentColor;
  border-radius: 999px;
  content: "";
  display: block;
  height: 12px;
  width: 12px;
}

.onboarding-item--complete .onboarding-item__marker {
  color: #0d684f;
}

.onboarding-item--complete .onboarding-item__marker::before {
  background: currentColor;
  border: 0;
  border-radius: 0;
  height: 18px;
  -webkit-mask: url("../vendor/lucide/icons/check.1ef07a584e1a.svg") center / contain no-repeat;
  mask: url("../vendor/lucide/icons/check.1ef07a584e1a.svg") center / contain no-repeat;
  width: 18px;
}

.onboarding-item--in_progress .onboarding-item__marker {
  color: var(--warning);
}

.onboarding-item--attention .onboarding-item__marker {
  color: var(--danger);
}

.onboarding-item__body {
  min-width: 0;
}

.onboarding-item strong,
.onboarding-item small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.onboarding-item strong {
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.25;
}

.onboarding-item small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.3;
  margin-top: 2px;
}

.onboarding-item em {
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .onboarding-item {
    grid-template-columns: 18px minmax(0, 1fr) auto;
  }

  .onboarding-item em {
    grid-column: 2 / -1;
  }
}

.dashboard-grid + .dashboard-grid {
  margin-top: var(--portal-section-gap);
}

.portal-route-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.portal-route {
  min-height: 54px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 2px;
  text-decoration: none;
  transition:
    color 160ms ease,
    text-decoration-color 160ms ease;
}

.portal-route:last-child {
  border-bottom: 0;
}

.portal-route:hover,
.portal-route:focus-visible {
  color: var(--brand-red-dark);
}

.portal-route:focus-visible {
  border-radius: 6px;
  outline: 3px solid rgba(217, 0, 43, 0.16);
  outline-offset: 2px;
}

.portal-route:hover strong,
.portal-route:focus-visible strong {
  color: var(--brand-red-dark);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.portal-route strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
}

.portal-route span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: right;
}

.hero-panel .metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-grid,
.profile-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  align-items: start;
}

.metric,
.status-row,
.form-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: var(--portal-card-padding);
}

.metric {
  display: grid;
  min-height: 94px;
  align-content: center;
  gap: 2px;
}

a.metric {
  color: inherit;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

a.metric:hover,
a.metric:focus-visible {
  border-color: rgba(217, 0, 43, 0.3);
  background: var(--brand-red-soft);
  outline: none;
  transform: translateY(-1px);
}

.stack {
  display: grid;
  gap: 10px;
}

.stack--compact {
  gap: 8px;
}

.metric strong,
.status-row strong {
  display: block;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.2;
}

.metric strong {
  margin-bottom: 1px;
  font-size: 1.34rem;
  line-height: 1.12;
}

.metric span {
  font-size: 0.9rem;
  line-height: 1.25;
}

.metric small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.25;
}

.metric--success {
  border-left: 4px solid var(--ok);
}

.metric--warning {
  border-left: 4px solid var(--warning);
}

.metric--danger {
  border-left: 4px solid var(--danger);
}

.metric span,
.status-row p {
  color: var(--muted);
}

.status-row p {
  margin-bottom: 3px;
  font-size: 0.94rem;
  line-height: 1.35;
}

.portal-component-list {
  display: grid;
  gap: 8px;
}

.portal-component-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: inherit;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.portal-component-row:hover,
.portal-component-row:focus-visible {
  border-color: rgba(217, 0, 43, 0.3);
  background: var(--brand-red-soft);
  box-shadow: inset 3px 0 0 var(--brand-red);
  outline: none;
}

.portal-component-row > span:first-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.portal-component-row strong {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.2;
}

.portal-component-row small {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 730;
  line-height: 1.3;
}

.knowledge-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  gap: 26px var(--portal-section-gap);
  align-items: start;
}

.knowledge-layout--public {
  max-width: 780px;
  grid-template-columns: 1fr;
  gap: 22px;
}

.knowledge-section {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding-top: 14px;
}

.knowledge-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.2;
}

.knowledge-list {
  display: grid;
  gap: 0;
}

.knowledge-item {
  display: grid;
  gap: 3px;
  padding: 10px 0;
}

.knowledge-item + .knowledge-item {
  border-top: 1px solid var(--line);
}

.knowledge-item h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.25;
}

.knowledge-item p {
  max-width: 72ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.42;
}

.status-row p:last-child,
.content-panel > :last-child,
.auth-card > :last-child {
  margin-bottom: 0;
}

.status-row--split,
.resource-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--portal-card-gap);
}

.resource-list {
  display: grid;
  gap: 10px;
}

.resource-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: var(--portal-card-padding);
}

.resource-row > div {
  min-width: 0;
}

.resource-row--compact {
  align-items: flex-start;
}

.resource-row__title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-bottom: 6px;
}

.resource-row__title strong {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.2;
}

.resource-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.resource-row__actions form {
  display: flex;
}

.resource-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0;
}

.resource-meta div {
  min-width: 130px;
}

.resource-meta dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.resource-meta dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 800;
}

.invoice-list {
  display: grid;
  gap: 12px;
}

.invoice-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 16px 18px;
}

.invoice-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.invoice-card__ref {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.invoice-card__label {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.invoice-card__number {
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.25;
  word-break: break-word;
}

.invoice-card__service {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.35;
}

.invoice-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.invoice-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin: 0;
}

.invoice-card__meta dt {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.invoice-card__meta dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.invoice-card__actions {
  flex-shrink: 0;
}

.invoice-card__pdf-missing {
  color: var(--muted);
  font-size: 0.85rem;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.plan-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 18px;
}

.plan-card__header {
  display: grid;
  gap: 6px;
}

.plan-card__name {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.2;
}

.plan-card__price {
  margin: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.plan-card__amount {
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 850;
  line-height: 1.1;
}

.plan-card__period {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 750;
}

.plan-card__description {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

.plan-card__specs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.plan-card__spec {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.plan-card__spec-value {
  color: var(--ink);
  font-weight: 650;
  text-align: right;
}

.plan-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.plan-card__cta {
  width: 100%;
  text-align: center;
}

.checkout-panel {
  display: grid;
  gap: 18px;
}

.checkout-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.checkout-panel__header h2 {
  margin-bottom: 4px;
}

.checkout-panel__header p {
  max-width: 72ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.35;
}

.checkout-detail-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin: -2px 0 0;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
}

.checkout-detail-list div {
  min-width: 150px;
}

.checkout-detail-list dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.checkout-detail-list dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 850;
  line-height: 1.25;
}

.checkout-table-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.checkout-table {
  width: 100%;
  border-spacing: 0;
  color: var(--ink-soft);
  table-layout: fixed;
}

.checkout-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.checkout-table th,
.checkout-table td {
  border-bottom: 1px solid var(--line);
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
}

.checkout-table thead th {
  background: var(--paper);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.15;
  text-transform: uppercase;
}

.checkout-table tbody th {
  color: var(--ink);
  font-weight: 900;
  line-height: 1.25;
}

.checkout-table tbody tr:last-child th,
.checkout-table tbody tr:last-child td {
  border-bottom: 0;
}

.checkout-table__description-col {
  width: 42%;
}

.checkout-table__amount-col {
  width: 11%;
}

.checkout-table__price-col,
.checkout-table__tax-col {
  width: 16%;
}

.checkout-table__total-col {
  width: 15%;
}

.checkout-table__number {
  text-align: right;
}

.checkout-table__strong {
  color: var(--ink);
  font-weight: 900;
}

.checkout-total-list {
  width: min(100%, 430px);
  margin: 0 0 0 auto;
  padding-top: 2px;
}

.checkout-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  padding: 5px 0;
}

.checkout-total-row dt {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

.checkout-total-row dd {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
  text-align: right;
}

.checkout-total-row--grand {
  margin-top: 6px;
  border-top: 1px solid var(--line);
  padding-top: 11px;
}

.checkout-total-row--grand dt,
.checkout-total-row--grand dd {
  color: var(--ink);
  font-size: 1.05rem;
}

.checkout-action-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.checkout-action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.checkout-action-form {
  display: flex;
}

.checkout-legal-note {
  max-width: none;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.checkout-legal-note a {
  color: var(--ink);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Checkout progress stepper */
.checkout-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 var(--portal-section-gap);
  padding: 0;
  list-style: none;
}

.checkout-step {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 10px 12px;
}

.checkout-step__marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
}

.checkout-step__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.checkout-step__kicker {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.checkout-step__name {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1.2;
}

.checkout-step.is-upcoming {
  background: var(--surface);
}

.checkout-step.is-upcoming .checkout-step__name {
  color: var(--muted);
}

.checkout-step.is-done .checkout-step__marker {
  border-color: rgba(29, 141, 112, 0.4);
  background: rgba(29, 141, 112, 0.12);
  color: #0d684f;
}

.checkout-step.is-current {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.checkout-step.is-current .checkout-step__marker {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.checkout-step.is-current.is-done {
  border-color: rgba(29, 141, 112, 0.5);
  box-shadow: 0 0 0 1px rgba(29, 141, 112, 0.5);
}

.checkout-step.is-current.is-done .checkout-step__marker {
  border-color: rgba(29, 141, 112, 0.4);
  background: rgba(29, 141, 112, 0.12);
  color: #0d684f;
}

.checkout-step.is-error {
  border-color: rgba(180, 35, 24, 0.4);
  box-shadow: 0 0 0 1px rgba(180, 35, 24, 0.4);
}

.checkout-step.is-error .checkout-step__marker {
  border-color: rgba(180, 35, 24, 0.4);
  background: rgba(180, 35, 24, 0.12);
  color: var(--danger);
}

/* Checkout order page layout */
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  gap: var(--portal-section-gap);
  align-items: start;
}

.checkout-summary-panel {
  display: grid;
  gap: 14px;
}

.checkout-summary-panel__desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.checkout-summary-panel__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.checkout-summary-panel__facts div {
  min-width: 0;
}

.checkout-summary-panel__facts dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.checkout-summary-panel__facts dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 850;
}

.checkout-domain {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.checkout-domain__title {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.25;
}

.checkout-domain__label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.checkout-domain__select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 12px;
}

.checkout-domain__select:focus {
  border-color: var(--brand-red);
  outline: 3px solid rgba(217, 0, 43, 0.14);
}

.checkout-domain__alt,
.checkout-domain__empty {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.4;
}

.checkout-order-card {
  position: sticky;
  top: calc(var(--header-height) + 14px);
  display: grid;
  gap: 12px;
}

.checkout-order-card__title {
  margin: 0;
}

.checkout-order-card__line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.checkout-order-card__line-label {
  color: var(--ink-soft);
  font-weight: 800;
  line-height: 1.3;
}

.checkout-order-card__line-price {
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 950;
  white-space: nowrap;
}

.checkout-order-card__note {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.checkout-order-card__legal {
  margin-top: 14px;
}

.checkout-order-card__cta {
  width: 100%;
  margin-top: 14px;
}

.checkout-order-card__blocked {
  display: grid;
  justify-items: start;
  gap: 10px;
}

.checkout-order-card__blocked p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.checkout-reassurance {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.checkout-reassurance__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(29, 141, 112, 0.16);
  color: #0d684f;
  font-size: 0.7rem;
  font-weight: 900;
}

.checkout-reassurance__icon::before {
  content: "\2713";
}

/* Checkout status callout */
.checkout-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px 16px;
}

.checkout-callout__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
}

.checkout-callout__icon::before {
  content: "i";
}

.checkout-callout__body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.checkout-callout__body strong {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 900;
}

.checkout-callout__body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.checkout-callout--success {
  border-color: rgba(29, 141, 112, 0.28);
  background: rgba(29, 141, 112, 0.08);
}

.checkout-callout--success .checkout-callout__icon {
  background: rgba(29, 141, 112, 0.16);
  color: #0d684f;
}

.checkout-callout--success .checkout-callout__icon::before {
  content: "\2713";
}

.checkout-callout--warning {
  border-color: rgba(157, 107, 0, 0.28);
  background: rgba(157, 107, 0, 0.08);
}

.checkout-callout--warning .checkout-callout__icon {
  background: rgba(157, 107, 0, 0.16);
  color: #6f4b00;
}

.checkout-callout--warning .checkout-callout__icon::before {
  content: "!";
}

.checkout-callout--danger {
  border-color: rgba(180, 35, 24, 0.28);
  background: rgba(180, 35, 24, 0.08);
}

.checkout-callout--danger .checkout-callout__icon {
  background: rgba(180, 35, 24, 0.16);
  color: var(--danger);
}

.checkout-callout--danger .checkout-callout__icon::before {
  content: "!";
}

.checkout-callout--info .checkout-callout__icon {
  background: rgba(37, 99, 235, 0.14);
  color: var(--info);
}

.checkout-callout--neutral .checkout-callout__icon {
  background: var(--surface-strong);
  color: var(--muted);
}

/* Checkout next-steps */
.checkout-next-steps {
  margin-top: var(--portal-section-gap);
}

.checkout-next-steps h2 {
  margin-bottom: 12px;
}

.checkout-next-steps__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: checkout-nextstep;
}

.checkout-next-steps__list li {
  position: relative;
  padding-left: 34px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.45;
  counter-increment: checkout-nextstep;
}

.checkout-next-steps__list li::before {
  content: counter(checkout-nextstep);
  position: absolute;
  left: 0;
  top: -1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.support-thread {
  display: grid;
  gap: 10px;
}

.support-message {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: var(--portal-card-padding);
}

.support-message--staff {
  background: var(--paper);
  box-shadow: inset 3px 0 0 var(--brand-red);
}

.support-message__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.support-message__meta strong {
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.2;
}

.support-message__meta span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.support-message p {
  margin-bottom: 0;
}

.staff-workspace-panel {
  display: grid;
  gap: 14px;
}

.staff-workspace-panel + .staff-workspace-panel {
  margin-top: var(--portal-section-gap);
}

.content-panel.staff-workspace-panel,
.content-panel.staff-detail-panel {
  padding: 13px;
}

.staff-page-header {
  align-items: flex-start;
  margin-bottom: 10px;
}

.staff-page-header h1 {
  margin-bottom: 6px;
  font-size: 1.72rem;
  line-height: 1.12;
}

.staff-page-header p {
  font-size: 0.92rem;
}

.staff-workspace-summary__label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.staff-queue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(164px, 1fr));
  gap: 8px;
}

.staff-queue-card {
  min-width: 0;
  min-height: 136px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  padding: 11px;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.staff-queue-card:hover,
.staff-queue-card:focus-visible {
  border-color: rgba(217, 0, 43, 0.34);
  background: linear-gradient(180deg, var(--surface), rgba(217, 0, 43, 0.035));
  box-shadow: inset 0 3px 0 var(--brand-red);
  outline: none;
  transform: translateY(-1px);
}

.staff-queue-card--utility {
  background: var(--paper);
}

.staff-queue-card__topline {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.staff-queue-card__category {
  min-width: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.staff-queue-card__body {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 4px;
}

.staff-queue-card__body strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.staff-queue-card__body span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
}

.staff-queue-card__count {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 1.7rem;
  font-variant-numeric: tabular-nums;
  font-weight: 950;
  line-height: 1;
}

.staff-queue-card__status {
  justify-self: start;
}

.staff-focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.staff-focus-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 11px;
}

.staff-focus-panel--priority {
  background: linear-gradient(180deg, rgba(217, 0, 43, 0.045), var(--surface));
}

.staff-focus-panel__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.staff-focus-panel__heading > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.staff-focus-panel__label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.staff-focus-panel h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.staff-focus-list {
  display: grid;
  gap: 6px;
}

.staff-focus-row {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.staff-focus-row:hover,
.staff-focus-row:focus-visible {
  border-color: rgba(217, 0, 43, 0.34);
  background: var(--surface);
  box-shadow: inset 3px 0 0 var(--brand-red);
  outline: none;
}

.staff-focus-row--priority {
  border-color: rgba(180, 35, 24, 0.2);
}

.staff-focus-row--summary {
  background: var(--surface);
}

.staff-focus-row span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.staff-focus-row strong {
  color: var(--ink);
  display: block;
  font-size: 0.92rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-focus-row small {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-focus-row__count {
  min-width: 34px;
  color: var(--ink);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  font-weight: 950;
  text-align: right;
}

.staff-focus-row__status {
  justify-self: end;
  max-width: 150px;
  text-align: center;
}

.staff-workspace-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding: 10px 12px;
}

.staff-workspace-summary__metric {
  display: grid;
  gap: 2px;
}

.staff-workspace-summary .status-badge {
  margin-left: auto;
}

.staff-workspace-summary strong {
  color: var(--ink);
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.staff-actions {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  display: grid;
  gap: 12px;
  padding: 14px;
}

.staff-actions__heading {
  display: grid;
  gap: 2px;
}

.staff-actions__label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.staff-actions__heading h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.staff-actions__list {
  display: grid;
  gap: 10px;
}

.staff-action-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px 14px;
  padding: 12px 13px;
}

.staff-action-card--primary {
  border-color: rgba(217, 0, 43, 0.28);
  background: linear-gradient(180deg, rgba(217, 0, 43, 0.04), var(--surface));
}

.staff-action-card--danger {
  border-color: rgba(180, 35, 24, 0.26);
  background: rgba(180, 35, 24, 0.045);
}

.staff-action-card__text {
  min-width: 0;
  display: grid;
  gap: 3px;
  align-self: center;
}

.staff-action-card__text strong {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.25;
}

.staff-action-card__text span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.35;
}

.staff-action-card__field {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  min-width: 0;
}

.staff-action-card__field span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.2;
}

.staff-action-card__field input,
.staff-action-card__field textarea {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  padding: 8px 10px;
}

.staff-action-card__field textarea {
  min-height: 84px;
  resize: vertical;
}

.staff-action-card__field input:focus,
.staff-action-card__field textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(12, 15, 23, 0.08);
  outline: 0;
}

.staff-action-card__submit {
  justify-self: end;
  align-self: end;
}

.staff-action-card__submit .button {
  min-width: 0;
  min-height: 38px;
  border-radius: 6px;
  font-size: 0.86rem;
  padding: 9px 16px;
  white-space: nowrap;
}

.staff-action-card .staff-button-danger {
  border-color: rgba(180, 35, 24, 0.32);
  background: rgba(180, 35, 24, 0.08);
  color: var(--danger);
}

.staff-action-card .staff-button-danger:hover,
.staff-action-card .staff-button-danger:focus-visible {
  border-color: var(--danger);
  background: rgba(180, 35, 24, 0.14);
  color: var(--danger);
}

.staff-table-wrap {
  width: 100%;
  overflow-x: auto;
  scrollbar-gutter: stable;
}

.staff-work-table {
  width: 100%;
  min-width: 720px;
  border: 1px solid var(--line);
  border-radius: 8px;
  border-spacing: 0;
  background: var(--surface);
  color: var(--ink-soft);
  overflow: hidden;
  table-layout: fixed;
}

.staff-table-caption {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 950;
  line-height: 1.2;
  padding: 0 0 8px;
  text-align: left;
}

.staff-work-table th,
.staff-work-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
}

.staff-work-table thead th {
  background: var(--paper);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.15;
  text-transform: uppercase;
}

.staff-work-table tbody th {
  color: var(--ink);
  font-weight: 900;
}

.staff-work-table tbody tr {
  position: relative;
  transition:
    background 160ms ease,
    box-shadow 160ms ease;
}

.staff-work-table tbody tr:hover {
  background: rgba(217, 0, 43, 0.035);
  box-shadow: inset 3px 0 0 var(--brand-red);
}

.staff-work-table tbody tr:last-child th,
.staff-work-table tbody tr:last-child td {
  border-bottom: 0;
}

.staff-work-table__title,
.staff-work-table__meta {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.staff-work-table__title {
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.25;
}

.staff-work-table__meta {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.3;
  margin-top: 2px;
}

.staff-work-table__type-col {
  width: 132px;
}

.staff-type-tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.01em;
  line-height: 1.1;
  padding: 4px 8px;
  white-space: nowrap;
}

.staff-type-tag--muted {
  color: var(--muted);
}

.staff-priority-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--brand-red);
  display: inline-block;
  margin-right: 7px;
  vertical-align: middle;
}

.staff-work-table__row--priority {
  background: rgba(217, 0, 43, 0.03);
}

.staff-work-table__row--priority:hover {
  background: rgba(217, 0, 43, 0.06);
}

.staff-work-table__number {
  width: 86px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.staff-work-table__action {
  width: 96px;
  text-align: right;
}

.staff-work-table--clickable tbody tr {
  cursor: pointer;
}

.staff-row-link {
  /* Anchor the ::after click overlay to this <a>, not the <tr>. WebKit/Safari
     ignores position:relative on table rows, so a <tr>-anchored overlay escapes
     its row and covers unrelated elements (e.g. the page-header action button). */
  position: relative;
  color: inherit;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.staff-cell-link {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.staff-cell-link:hover,
.staff-cell-link:focus-visible {
  color: var(--brand-red-dark);
}

.staff-row-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.staff-row-link:focus-visible {
  outline: none;
}

.staff-row-link:focus-visible::after {
  border-radius: 7px;
  box-shadow:
    inset 0 0 0 2px var(--ink),
    inset 3px 0 0 var(--brand-red);
}

.staff-work-table--clickable .status-badge,
.staff-work-table--clickable .staff-work-table__meta,
.staff-work-table--clickable .staff-work-table__title,
.staff-work-table--clickable .staff-type-tag,
.staff-work-table--clickable .staff-priority-dot {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.staff-table-action {
  position: relative;
  z-index: 3;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.1;
  padding: 7px 10px;
  white-space: nowrap;
}

.staff-table-action:hover,
.staff-table-action:focus-visible {
  border-color: var(--brand-red);
  background: var(--brand-red-soft);
  color: var(--brand-red-dark);
  outline: none;
}

.staff-review-card-list {
  display: none;
}

.staff-review-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: inherit;
  display: grid;
  gap: 8px;
  padding: 12px;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.staff-review-card:hover,
.staff-review-card:focus-visible {
  border-color: rgba(217, 0, 43, 0.32);
  background: var(--brand-red-soft);
  box-shadow: inset 3px 0 0 var(--brand-red);
  outline: none;
}

.staff-review-card--priority {
  border-color: rgba(180, 35, 24, 0.2);
  background: rgba(217, 0, 43, 0.03);
}

.staff-review-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.staff-review-card strong {
  color: var(--ink);
  display: flex;
  align-items: center;
  font-size: 0.98rem;
  line-height: 1.25;
}

.staff-review-card small {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.resource-section {
  margin-top: var(--portal-section-gap);
}

.credential-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.credential-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: var(--portal-card-padding);
}

.credential-list dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.credential-list dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.credential-secret {
  display: inline-block;
  max-width: 100%;
  border-radius: 6px;
  background: var(--paper);
  color: var(--brand-red-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.95rem;
  padding: 6px 8px;
  white-space: normal;
}

.staff-detail-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
}

.staff-detail-grid {
  display: grid;
  gap: 12px;
}

.staff-customer-search {
  margin-bottom: 18px;
}

.staff-customer-search__label {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  margin-bottom: 6px;
}

.staff-customer-search__row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.staff-customer-search__input {
  flex: 1 1 280px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
}

.staff-subheading {
  margin: 20px 0 10px;
  font-size: 0.95rem;
  font-weight: 850;
}

.staff-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 14px;
}

.staff-pagination__status {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.button.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.staff-detail-section h2,
.staff-detail h2 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.staff-detail__fields {
  display: grid;
  gap: 0;
  margin: 0;
}

.staff-detail__field,
.staff-detail__fields div {
  min-width: 0;
}

.staff-detail__field {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(130px, 0.28fr) minmax(0, 1fr);
  border-top: 1px solid var(--line);
  padding: 8px 0;
}

.staff-detail__field--wide {
  grid-column: 1 / -1;
}

.staff-detail__fields dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.35;
}

.staff-detail__fields dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.staff-detail__pre {
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.45;
  margin: 4px 0 0;
  padding: 10px 12px;
  white-space: pre-wrap;
}

.status-badge {
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.1;
  padding: 5px 9px;
  white-space: nowrap;
}

.status-badge--success {
  border-color: rgba(29, 141, 112, 0.28);
  background: rgba(29, 141, 112, 0.1);
  color: #0d684f;
}

.status-badge--warning {
  border-color: rgba(157, 107, 0, 0.28);
  background: rgba(157, 107, 0, 0.1);
  color: #6f4b00;
}

.status-badge--danger {
  border-color: rgba(180, 35, 24, 0.28);
  background: rgba(180, 35, 24, 0.1);
  color: var(--danger);
}

.status-badge--neutral {
  background: var(--surface-strong);
  color: var(--muted);
}

.status-check {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 8px;
  padding: var(--portal-card-padding-tight);
}

.status-check .status-dot {
  margin: 4px 0 0;
}

.status-check strong {
  color: var(--ink);
  font-size: 0.96rem;
}

.status-check p {
  margin-bottom: 0;
  font-size: 0.9rem;
  line-height: 1.35;
}

.domain-result {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  margin-top: var(--portal-section-gap);
  padding: 16px 18px;
}

.domain-result__pricing {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.domain-result__pricing > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.domain-result__pricing dt {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.domain-result__pricing dd {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 850;
  text-align: right;
}

.domain-result--success {
  border-color: rgba(29, 141, 112, 0.24);
  background: rgba(29, 141, 112, 0.08);
}

.domain-result--danger {
  border-color: rgba(180, 35, 24, 0.24);
  background: rgba(180, 35, 24, 0.08);
}

.domain-result--warning {
  border-color: rgba(157, 107, 0, 0.24);
  background: rgba(157, 107, 0, 0.08);
}

.domain-result p {
  margin: 0;
}

.domain-result__actions {
  display: grid;
  gap: 12px;
  margin-top: 0;
}

.domain-result__blocker {
  display: grid;
  gap: 4px;
}

.domain-result__blocker strong {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.3;
}

.domain-workspace {
  display: flex;
  flex-direction: column;
  gap: var(--portal-section-gap);
  margin-bottom: var(--portal-section-gap);
}

.domain-section + .domain-section {
  margin-top: var(--portal-section-gap);
}

.domain-subsection {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
}

.domain-subsection h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.25;
}

.domain-check-form .button {
  gap: 8px;
}


.domain-check-indicator {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  display: none;
  flex: 0 0 auto;
  opacity: 0.85;
}

.domain-check-indicator.htmx-request {
  display: inline-block;
  animation: portal-spin 700ms linear infinite;
}

.domain-contact-status {
  margin-bottom: 16px;
}

.domain-contact-status__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.domain-admin-contact-fields[hidden] {
  display: none;
}

@keyframes portal-spin {
  to {
    transform: rotate(360deg);
  }
}

.action-list {
  display: grid;
  gap: 8px;
}

.action-list a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  display: grid;
  gap: 2px;
  padding: var(--portal-card-padding-tight);
}

.action-list a:hover,
.action-list a:focus-visible {
  border-color: rgba(217, 0, 43, 0.3);
  background: var(--brand-red-soft);
  outline: none;
}

.action-list strong {
  color: var(--ink);
  font-size: 0.96rem;
}

.action-list span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.empty-state {
  border: 1px dashed rgba(100, 112, 125, 0.45);
  border-radius: 8px;
  background: var(--surface);
  display: grid;
  gap: 8px;
  padding: var(--portal-card-padding);
}

.empty-state--center {
  justify-items: center;
  text-align: center;
  padding: 24px;
}

.empty-state--compact {
  gap: 4px;
  padding: 12px;
}

.empty-state.empty-state--compact strong {
  font-size: 0.94rem;
}

.empty-state strong {
  color: var(--ink);
  font-size: 1.08rem;
}

.empty-state p {
  margin-bottom: 0;
}

.auth-shell {
  width: min(520px, 100%);
  margin-inline: auto;
}

.auth-card,
.content-panel {
  padding: var(--portal-panel-padding);
}

.form-section + .form-section {
  margin-top: 14px;
}

.form-field {
  margin-top: 16px;
}

.form-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-weight: 850;
}

.required-marker {
  color: var(--brand-red);
  margin-left: 2px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 12px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.form-field--checkbox {
  margin-top: 18px;
}

.form-field--checkbox .checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  color: var(--ink-soft);
  cursor: pointer;
}

.form-field--checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  flex: 0 0 auto;
  accent-color: var(--brand-red);
  cursor: pointer;
  padding: 0;
}

.form-field textarea {
  min-height: 132px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--brand-red);
  outline: 3px solid rgba(217, 0, 43, 0.14);
}

/* Editable specification table on the staff package page. */
.spec-editor {
  width: 100%;
  border-collapse: collapse;
}

.spec-editor thead th {
  text-align: left;
  padding: 8px 10px;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.spec-editor tbody th,
.spec-editor tbody td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  text-align: left;
}

.spec-editor__center {
  text-align: center;
}

.spec-editor__label {
  font-weight: 650;
  color: var(--ink);
}

.spec-editor__tag {
  font-size: 0.78rem;
  color: var(--muted);
}

.spec-editor input[type="text"],
.spec-editor input[type="number"] {
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.spec-editor input[type="text"] {
  width: 100%;
}

.spec-editor input[type="number"] {
  width: 5rem;
  text-align: center;
}

.spec-editor input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.spec-editor input:focus {
  border-color: var(--brand-red);
  outline: 3px solid rgba(217, 0, 43, 0.14);
}

.form-error,
.form-errors {
  color: var(--brand-red-dark);
  font-weight: 750;
}

.form-error {
  margin: 6px 0 0;
  font-size: 0.92rem;
}

.form-errors {
  border: 1px solid rgba(217, 0, 43, 0.28);
  border-radius: 8px;
  background: var(--brand-red-soft);
  padding: 12px;
}

.form-help {
  margin: 6px 0 0;
  font-size: 0.9rem;
}

.toast-region {
  position: fixed;
  bottom: 20px;
  right: max(20px, calc((100vw - 1120px) / 2));
  z-index: 80;
  width: min(420px, calc(100vw - 40px));
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.toast-region:empty {
  display: none;
}

.toast {
  border: 1px solid var(--line);
  border-left: 4px solid var(--info);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) 34px;
  align-items: start;
  gap: 10px;
  padding: 12px 10px 12px 12px;
  pointer-events: auto;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast--success {
  border-left-color: var(--ok);
}

.toast--warning {
  border-left-color: var(--warning);
}

.toast--error {
  border-left-color: var(--danger);
}

.toast--info {
  border-left-color: var(--info);
}

.toast--leaving {
  opacity: 0;
  transform: translateY(-6px);
}

.toast__dot {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--info);
}

.toast--success .toast__dot {
  background: var(--ok);
}

.toast--warning .toast__dot {
  background: var(--warning);
}

.toast--error .toast__dot {
  background: var(--danger);
}

.toast p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 720;
  line-height: 1.35;
}

.toast__close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
}

.toast__close:hover,
.toast__close:focus-visible {
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

.status-dot {
  width: 16px;
  height: 16px;
  background: var(--ok);
  display: inline-block;
  margin-right: 8px;
  -webkit-mask: url("../vendor/lucide/icons/check.1ef07a584e1a.svg") center / contain no-repeat;
  mask: url("../vendor/lucide/icons/check.1ef07a584e1a.svg") center / contain no-repeat;
}

.status-dot.status-dot--warning,
.status-dot.status-dot--danger,
.status-dot.status-dot--neutral {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  -webkit-mask: none;
  mask: none;
}

.status-dot.status-dot--warning {
  background: var(--warning);
}

.status-dot.status-dot--danger {
  background: var(--danger);
}

.status-dot.status-dot--neutral {
  background: var(--muted);
}

.muted-link {
  color: var(--brand-red-dark);
  font-weight: 850;
}

.muted-link:hover,
.muted-link:focus-visible,
.status-row a:hover,
.status-row a:focus-visible {
  color: var(--brand-red);
  outline: none;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .portal-body--app {
    --app-sidebar-width: 248px;
  }

  .portal-main--app {
    padding-right: 28px;
    padding-left: calc(var(--app-sidebar-width) + 28px);
  }

  .portal-footer--compact .portal-footer__inner {
    padding-right: 28px;
    padding-left: calc(var(--app-sidebar-width) + 28px);
  }

  .page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-actions {
    justify-content: flex-start;
  }

  .hero-panel,
  .dashboard-grid,
  .knowledge-layout,
  .profile-grid {
    grid-template-columns: 1fr;
  }

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

  .portal-footer--compact .footer-company__body {
    grid-template-columns: 1fr;
  }

  .footer-meta {
    text-align: left;
  }
}

@media (max-width: 880px) {
  html.portal-html {
    font-size: 16px;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-order-card {
    position: static;
  }

  body.nav-open::before {
    content: "";
    position: fixed;
    inset: var(--header-height) 0 0;
    z-index: 35;
    background: rgba(5, 5, 5, 0.18);
  }

  .portal-nav {
    position: relative;
  }

  .portal-body--app .portal-nav {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
    padding-inline: 0;
    display: flex;
    justify-content: space-between;
  }

  .quick-switcher {
    width: 44px;
    margin-left: auto;
  }

  .portal-body--app .quick-switcher,
  .quick-switcher__summary {
    width: 44px;
    justify-content: center;
    padding: 0;
  }

  .quick-switcher__summary-text {
    display: none;
  }

  .quick-switcher__panel {
    position: fixed;
    top: calc(var(--header-height) + 8px);
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100vh - var(--header-height) - 24px);
    overflow: auto;
  }

  .quick-switcher__results {
    max-height: calc(100vh - var(--header-height) - 112px);
  }

  .portal-main--app {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
    padding: 40px 0 56px;
  }

  .nav-toggle {
    display: flex;
  }

  .app-shell {
    display: block;
  }

  .portal-nav__links,
  .app-sidebar {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 95;
    display: grid;
    gap: 4px;
    align-items: stretch;
    justify-content: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: 0 18px 42px rgba(5, 5, 5, 0.16);
    max-height: calc(100vh - var(--header-height) - 24px);
    overflow: auto;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 160ms ease,
      transform 160ms ease;
  }

  .notification-menu__panel {
    position: fixed;
    top: calc(var(--header-height) + 8px);
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100vh - var(--header-height) - 24px);
    overflow: auto;
  }

  .app-sidebar {
    position: fixed;
    top: calc(var(--header-height) + 8px);
    bottom: auto;
    right: 12px;
    left: 12px;
    width: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(5, 5, 5, 0.16);
  }

  body.nav-open .portal-nav__links,
  body.nav-open .app-sidebar {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .portal-nav__links form {
    width: 100%;
  }

  .app-nav__link,
  .portal-link,
  .portal-logout {
    width: 100%;
    min-height: 44px;
    justify-content: flex-start;
    padding: 12px;
    text-align: left;
  }

  .portal-body--app .button {
    min-height: 44px;
    padding: 12px;
  }

  .portal-link--primary {
    justify-content: center;
    text-align: center;
  }

  .app-sidebar__footer {
    padding-top: 10px;
  }

  .app-content {
    width: auto;
    margin-inline: 0;
  }

  .portal-footer--compact .portal-footer__inner {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
    padding-inline: 0;
  }
}

@media (max-width: 760px) {
  body {
    --portal-panel-padding: 20px;
    --portal-card-padding: 12px 14px;
    --portal-card-padding-tight: 11px 12px;
    --portal-card-gap: 10px;
    --portal-section-gap: 16px;
  }

  :root {
    --header-height: 68px;
  }

  .portal-nav {
    width: min(100% - 24px, 1120px);
  }

  .portal-brand {
    width: 156px;
  }

  .portal-body--app .portal-nav {
    gap: 6px;
  }

  .portal-body--app .portal-brand {
    width: 124px;
  }

  .portal-body--app .quick-switcher,
  .quick-switcher,
  .quick-switcher__summary {
    width: 42px;
  }

  .account-menu__copy {
    display: none;
  }

  .account-menu__summary {
    padding-right: 6px;
  }

  .portal-link,
  .portal-logout {
    min-height: 44px;
    font-size: 0.95rem;
    padding: 12px;
  }

  .portal-main {
    width: min(100% - 24px, 1120px);
    padding-top: 24px;
  }

  .hero-panel {
    padding: 0;
  }

  .hero-panel h1 {
    font-size: 2.2rem;
  }

  .hero-panel .metric-grid {
    grid-template-columns: 1fr;
  }

  .portal-route {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .portal-route span {
    text-align: left;
  }

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

  .portal-component-row .status-badge {
    justify-self: start;
  }

  .staff-table-wrap--desktop {
    display: none;
  }

  .staff-review-card-list {
    display: grid;
    gap: 8px;
  }

  .form-actions .button,
  .card-actions .button,
  .page-actions .button,
  .hero-actions .button {
    flex: 1 1 180px;
  }

  .panel-heading,
  .resource-row,
  .status-row--split {
    align-items: stretch;
    flex-direction: column;
  }

  .staff-queue-grid,
  .staff-focus-grid {
    grid-template-columns: 1fr;
  }

  .staff-queue-card {
    min-height: 0;
  }

  .staff-workspace-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .staff-action-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .staff-action-strip__actions,
  .staff-action-strip__actions form,
  .staff-action-strip__reason,
  .staff-action-strip .button {
    width: 100%;
  }

  .staff-work-table {
    min-width: 660px;
  }

  .staff-detail__field {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .resource-row .button {
    width: 100%;
  }

  .resource-row__actions,
  .resource-row__actions form {
    width: 100%;
  }

  .resource-meta {
    display: grid;
    gap: 8px;
  }

  .invoice-card__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .invoice-card__actions .button {
    width: 100%;
  }

  .checkout-panel {
    gap: 14px;
  }

  .checkout-panel__header,
  .checkout-action-bar {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .checkout-panel__header {
    flex-direction: column;
  }

  .checkout-panel__header .status-badge {
    align-self: flex-start;
  }

  .checkout-detail-list {
    display: grid;
    gap: 8px;
  }

  .checkout-detail-list div {
    min-width: 0;
  }

  .checkout-table-wrap {
    border: 0;
    background: transparent;
  }

  .checkout-table,
  .checkout-table thead,
  .checkout-table tbody,
  .checkout-table tr,
  .checkout-table th,
  .checkout-table td {
    display: block;
  }

  .checkout-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .checkout-table tbody {
    display: grid;
    gap: 8px;
  }

  .checkout-table tbody tr {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 10px 12px;
  }

  .checkout-table th,
  .checkout-table td,
  .checkout-table tbody tr:last-child th,
  .checkout-table tbody tr:last-child td {
    border-bottom: 0;
    padding: 0;
  }

  .checkout-table tbody th,
  .checkout-table tbody td {
    display: grid;
    grid-template-columns: minmax(110px, 0.42fr) minmax(0, 1fr);
    gap: 10px;
    align-items: baseline;
    min-width: 0;
    text-align: left;
  }

  .checkout-table tbody th + td,
  .checkout-table tbody td + td {
    margin-top: 7px;
  }

  .checkout-table tbody th::before,
  .checkout-table tbody td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .checkout-total-list {
    width: 100%;
  }

  .checkout-action-buttons,
  .checkout-action-form,
  .checkout-action-buttons .button {
    width: 100%;
  }

  .checkout-action-form--primary {
    order: -1;
  }

  .checkout-steps {
    gap: 6px;
  }

  .checkout-step {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 9px 10px;
  }

  .checkout-step__marker {
    width: 24px;
    height: 24px;
  }

  .checkout-summary-panel__facts {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .toast-region {
    position: static;
    width: 100%;
    margin-bottom: 16px;
  }
}

@media (max-width: 360px) {
  .portal-body--app .quick-switcher {
    display: none;
  }
}
