html.cerasia-public-scrollbars {
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: none;
  scrollbar-color: transparent transparent;
}

html.cerasia-public-scrollbars.cerasia-public-scroll-active {
  scrollbar-color: rgba(29, 23, 18, 0.22) transparent;
}

html.cerasia-public-scrollbars::-webkit-scrollbar {
  width: 0.72rem;
  height: 0.72rem;
}

html.cerasia-public-scrollbars::-webkit-scrollbar-track {
  background: transparent;
}

html.cerasia-public-scrollbars::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
  border: 0.2rem solid transparent;
  background-clip: padding-box;
}

html.cerasia-public-scrollbars.cerasia-public-scroll-active::-webkit-scrollbar-thumb {
  background: rgba(29, 23, 18, 0.22);
}

html[data-portal-theme="light"] body.portal-body {
  --portal-ink: #1d1712;
  --portal-muted: #6b655f;
  --portal-accent-muted: #c87425;
  --portal-accent-quiet: rgba(200, 116, 37, 0.12);
  --portal-surface-strong: rgba(255, 255, 255, 0.94);
  --portal-surface-soft: rgba(255, 252, 247, 0.78);
  --portal-border-soft: rgba(36, 26, 17, 0.08);
  --portal-shadow-soft: 0 16px 38px rgba(29, 23, 18, 0.08);
  --portal-shadow-strong: 0 22px 54px rgba(29, 23, 18, 0.12);
  --portal-tabbar-bg: rgba(255, 252, 247, 0.94);
  --portal-tabbar-border: rgba(36, 26, 17, 0.08);
  --portal-tabbar-shadow: 0 18px 38px rgba(29, 23, 18, 0.14);
  --portal-tabbar-link: #6b655f;
  --portal-tabbar-link-active: #1d1712;
  --portal-tabbar-pill: rgba(200, 116, 37, 0.12);
  --portal-tabbar-pill-border: rgba(200, 116, 37, 0.16);
  --portal-tabbar-dot-ring: rgba(255, 252, 247, 0.96);
  --portal-control-bg: rgba(255, 255, 255, 0.92);
  --portal-control-bg-hover: rgba(242, 235, 227, 0.96);
  --portal-control-border: rgba(36, 26, 17, 0.08);
  --portal-control-text: #1d1712;
  --portal-control-inset: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  --portal-control-chevron: rgba(29, 23, 18, 0.72);
}

html[data-portal-theme="dark"] body.portal-body {
  --portal-tabbar-bg: rgba(18, 22, 29, 0.94);
  --portal-tabbar-border: rgba(255, 255, 255, 0.08);
  --portal-tabbar-shadow: 0 20px 42px rgba(0, 0, 0, 0.42);
  --portal-tabbar-link: #a7afb7;
  --portal-tabbar-link-active: #f7f0e8;
  --portal-tabbar-pill: rgba(244, 166, 75, 0.16);
  --portal-tabbar-pill-border: rgba(244, 166, 75, 0.2);
  --portal-tabbar-dot-ring: rgba(18, 22, 29, 0.96);
  --portal-control-bg: rgba(29, 35, 47, 0.92);
  --portal-control-bg-hover: rgba(36, 44, 58, 0.96);
  --portal-control-border: rgba(255, 255, 255, 0.1);
  --portal-control-text: #f7f0e8;
  --portal-control-inset: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  --portal-control-chevron: rgba(247, 240, 232, 0.78);
}

@media (prefers-color-scheme: dark) {
  html:not([data-portal-theme]) body.portal-body {
    --portal-tabbar-bg: rgba(18, 22, 29, 0.94);
    --portal-tabbar-border: rgba(255, 255, 255, 0.08);
    --portal-tabbar-shadow: 0 20px 42px rgba(0, 0, 0, 0.42);
    --portal-tabbar-link: #a7afb7;
    --portal-tabbar-link-active: #f7f0e8;
    --portal-tabbar-pill: rgba(244, 166, 75, 0.16);
    --portal-tabbar-pill-border: rgba(244, 166, 75, 0.2);
    --portal-tabbar-dot-ring: rgba(18, 22, 29, 0.96);
    --portal-control-bg: rgba(29, 35, 47, 0.92);
    --portal-control-bg-hover: rgba(36, 44, 58, 0.96);
    --portal-control-border: rgba(255, 255, 255, 0.1);
    --portal-control-text: #f7f0e8;
    --portal-control-inset: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    --portal-control-chevron: rgba(247, 240, 232, 0.78);
  }
}

body.portal-body {
  --portal-tabbar-bottom-offset: 0px;
  --portal-tabbar-bottom-inset: var(--safe-area-bottom);
  --portal-tabbar-clearance: calc(5.75rem + var(--safe-area-bottom));
  --portal-banner-bottom: calc(5.45rem + var(--safe-area-bottom));
  --portal-toast-stack-bottom: calc(5.35rem + var(--safe-area-bottom));
  font-family: "Satoshi Variable", "Satoshi", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  background:
    radial-gradient(circle at top right, rgba(241, 136, 30, 0.12), transparent 20rem),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.75), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(247, 241, 232, 0.98)),
    var(--color-bg);
}

html[data-native-platform="ios"] body.portal-body,
html[data-myca-native-platform="ios"] body.portal-body {
  --portal-tabbar-bottom-offset: 1.78rem;
  --portal-tabbar-bottom-inset: 0px;
  --portal-tabbar-clearance: calc(1.55rem + var(--portal-tabbar-bottom-offset));
  --portal-banner-bottom: calc(3.18rem + var(--portal-tabbar-bottom-offset));
  --portal-toast-stack-bottom: calc(3.08rem + var(--portal-tabbar-bottom-offset));
}

html[data-native-platform="android"] body.portal-body,
html[data-myca-native-platform="android"] body.portal-body {
  --portal-tabbar-bottom-offset: 1.62rem;
  --portal-tabbar-bottom-inset: 0px;
  --portal-tabbar-clearance: calc(1.55rem + var(--portal-tabbar-bottom-offset));
  --portal-banner-bottom: calc(3.18rem + var(--portal-tabbar-bottom-offset));
  --portal-toast-stack-bottom: calc(3.08rem + var(--portal-tabbar-bottom-offset));
}

body.portal-body .portal-layout {
  max-width: 1460px;
  gap: clamp(1rem, 2vw, 1.75rem);
  padding-top: clamp(1rem, 2vw, 1.5rem);
  padding-bottom: calc(1rem + var(--safe-area-bottom));
}

body.portal-body .sidebar__inner {
  gap: 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 244, 0.82)),
    var(--portal-surface-soft);
  box-shadow: var(--portal-shadow-soft);
}

body.portal-body .sidebar__brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

body.portal-body .sidebar__brand-copy {
  display: grid;
  gap: 0.2rem;
}

body.portal-body .sidebar__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--portal-accent-muted);
}

body.portal-body .sidebar__title {
  margin: 0;
  color: var(--portal-ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
}

body.portal-body .sidebar__subtitle {
  margin: 0;
  color: var(--portal-muted);
  font-size: 0.85rem;
}

body.portal-body .sidebar__logo img {
  width: 78px;
  height: 78px;
  border-radius: 0 !important;
}

body.portal-body .sidebar__nav ul {
  gap: 0.45rem;
}

body.portal-body .sidebar__link {
  min-height: 3rem;
  padding: 0.78rem 1rem;
  border-radius: 18px;
  color: var(--portal-ink);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.1;
}

body.portal-body .sidebar__link .portal-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

body.portal-body .sidebar__link .portal-nav-icon svg {
  width: 100%;
  height: 100%;
}

body.portal-body .sidebar__link:hover,
body.portal-body .sidebar__link:focus-visible {
  transform: translateX(2px);
}

body.portal-body .portal-sidebar-support-card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.78rem;
  width: 100%;
  padding: 0.82rem 0.95rem;
  border-radius: 22px;
  border: 1px solid var(--portal-border-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 250, 244, 0.88)),
    var(--portal-surface-strong);
  box-shadow: var(--portal-shadow-soft);
  color: var(--portal-ink);
  text-decoration: none;
  line-height: 1.35;
}

body.portal-body .portal-sidebar-support-card:hover,
body.portal-body .portal-sidebar-support-card:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--portal-shadow-strong);
}

body.portal-body .portal-sidebar-support-card__lead {
  display: flex;
  align-items: center;
  gap: 0.78rem;
  min-width: 0;
  width: 100%;
}

body.portal-body .portal-sidebar-support-card__icon {
  width: 2.9rem;
  height: 2.9rem;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

body.portal-body .portal-sidebar-support-card__copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
  flex: 1 1 auto;
}

body.portal-body .portal-sidebar-support-card__label {
  margin: 0;
  color: var(--portal-accent-muted);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.portal-body .portal-sidebar-support-card__copy p {
  margin: 0;
}

body.portal-body .portal-sidebar-support-card__body {
  color: var(--portal-ink);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
}

body.portal-body .sidebar .avatar-dropdown {
  position: static;
  bottom: auto;
  left: auto;
}

body.portal-body .avatar-dropdown {
  position: static;
  margin-top: auto;
}

body.portal-body .avatar-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.portal-body .avatar-menu {
  min-width: 210px;
  padding: 0.4rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--portal-shadow-soft);
}

body.portal-body .avatar-link {
  border-radius: 12px;
}

body.portal-body .main {
  gap: 1.25rem;
}

body.portal-body .portal-page-head,
body.portal-body .hero-card,
body.portal-body .card,
body.portal-body .panel,
body.portal-body .kpi-card {
  border: 1px solid var(--portal-border-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 252, 247, 0.88)),
    var(--portal-surface-strong);
  box-shadow: var(--portal-shadow-soft);
}

body.portal-body .portal-page-head,
body.portal-body .hero-card {
  border-radius: 30px;
}

body.portal-body .portal-page-head {
  display: grid;
  gap: 0.8rem;
  padding: clamp(1.35rem, 3vw, 2rem);
}

body.portal-body .portal-eyebrow {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--portal-accent-muted);
}

body.portal-body .portal-page-head .heading-xl,
body.portal-body .portal-page-head .heading-md,
body.portal-body .hero-card .heading-xl,
body.portal-body .card-title,
body.portal-body .heading-md {
  color: var(--portal-ink);
}

body.portal-body .heading-xl {
  font-size: clamp(1.74rem, 3.5vw, 2.54rem);
  font-weight: 430;
  letter-spacing: -0.045em;
  line-height: 0.98;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}

body.portal-body .heading-md,
body.portal-body .card-title {
  font-size: clamp(1.02rem, 1.7vw, 1.28rem);
  font-weight: 530;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

body.portal-body .portal-intro,
body.portal-body .text-md,
body.portal-body .card-meta,
body.portal-body .list-sub,
body.portal-body p {
  color: var(--portal-muted);
}

body.portal-body .text-md,
body.portal-body .portal-intro,
body.portal-body .card-meta,
body.portal-body .list-sub {
  font-size: 0.96rem;
  line-height: 1.58;
  overflow-wrap: break-word;
}

body.portal-body .portal-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  margin-top: 0.4rem;
}

body.portal-body .hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(18rem, 0.88fr);
  gap: 2rem;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  align-items: stretch;
}

body.portal-body .hero-card__text {
  display: grid;
  align-content: center;
  gap: 0.58rem;
  max-width: none;
  min-width: 0;
}

body.portal-body .hero-card .heading-xl {
  max-width: 10.5ch;
}

body.portal-body .hero-card .text-md {
  max-width: 34rem;
}

body.portal-body .hero-card__illus {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: 26px;
  background: rgba(245, 246, 248, 0.88);
}

body.portal-body .hero-card__illus img {
  border-radius: 22px !important;
  box-shadow: var(--portal-shadow-soft);
}

body.portal-body .kpi-grid {
  gap: 1rem;
}

body.portal-body .kpi-card {
  display: grid;
  align-content: start;
  gap: 0.78rem;
  min-width: 0;
  overflow: clip;
  border-radius: 24px;
  padding: 1.35rem 1.25rem;
}

body.portal-body .kpi-card > * {
  min-width: 0;
}

body.portal-body .kpi-card__title {
  color: #a37b52;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

body.portal-body .kpi-card__value {
  color: var(--portal-ink);
  font-size: clamp(1.18rem, 2.3vw, 1.58rem);
  font-weight: 430;
  line-height: 1.16;
  overflow-wrap: break-word;
}

body.portal-body .kpi-card .btn-link,
body.portal-body .hero-card .btn-link,
body.portal-body .panel__header .btn-link {
  font-size: 0.9rem;
  font-weight: 520;
}

body.portal-body .card,
body.portal-body .panel {
  border-radius: 24px;
}

body.portal-body .panel__header,
body.portal-body .card {
  padding-top: 1.1rem;
}

body.portal-body .panel__header {
  border-bottom-color: rgba(36, 26, 17, 0.06);
}

body.portal-body .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  line-height: 1.22;
  border-radius: 16px;
  padding: 0.78rem 1.15rem;
  box-shadow: 0 14px 24px rgba(59, 48, 37, 0.14);
}

body.portal-body .btn-link {
  color: var(--portal-accent-muted);
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.3;
  font-weight: 560;
}

body.portal-body .btn-link:hover {
  color: #b56d27;
  text-decoration: none;
}

body.portal-body .badge,
body.portal-body .count-badge,
body.portal-body .status-pill {
  border-radius: 999px;
  font-weight: 700;
}

body.portal-body .count-badge {
  background: var(--color-accent);
  color: #151515;
}

body.portal-body .table--tight th {
  color: var(--portal-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.portal-body .table--tight td {
  color: var(--portal-ink);
}

body.portal-body .iframe-wrapper {
  border-radius: 28px;
  border: 1px solid var(--portal-border-soft);
  background: rgba(255, 255, 255, 0.82);
  padding: .2rem;
  box-shadow: var(--portal-shadow-soft);
}

body.portal-body #payment-iframe,
body.portal-body #docs-frame {
  border-radius: 20px !important;
  background: #fff;
}

body.portal-body #payment-iframe {
  min-height: 650px !important;
  width: 100% !important;
}

body.portal-body .building-card,
body.portal-body #portal-app-card {
  overflow: hidden;
}

body.portal-body .building-thumb img,
body.portal-body #portal-app-card img {
  border-radius: 22px;
}

body.portal-body .collapsible details > summary {
  padding-bottom: 0.2rem;
}

body.portal-body .collapsible .chev {
  color: var(--color-accent);
}

body.portal-body #tab-bar {
  display: inline-flex;
  gap: 0.65rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--portal-border-soft);
  width: fit-content;
  max-width: 100%;
  margin-bottom: 1rem;
}

body.portal-body #tab-bar button {
  min-width: 7rem;
  min-height: 2.7rem;
  padding: 0.6rem 1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--portal-muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

body.portal-body #tab-bar button.bg-blue-600,
body.portal-body #tab-bar button[aria-pressed="true"] {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 12px 20px rgba(59, 48, 37, 0.14);
}

body.portal-body #tab-bar button.bg-gray-200 {
  background: transparent;
}

body.portal-body #msg-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.portal-body #msg-list li {
  border: 1px solid var(--portal-border-soft);
  border-radius: 22px;
  padding: 1rem 1.1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 252, 247, 0.88)),
    var(--portal-surface-strong);
  box-shadow: var(--portal-shadow-soft);
}

body.portal-body .msg-head,
body.portal-body .msg-body {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

body.portal-body .msg-head {
  align-items: center;
  margin-bottom: 0.55rem;
}

body.portal-body .msg-id,
body.portal-body .snippet {
  min-width: 0;
}

body.portal-body .msg-id {
  color: var(--portal-ink);
  font-weight: 700;
}

body.portal-body .snippet,
body.portal-body .date {
  color: var(--portal-muted);
  font-size: 0.95rem;
}

body.portal-body .status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.3rem 0.75rem;
  background: var(--portal-accent-quiet);
  color: var(--portal-ink);
}

body.portal-body .status-pill[data-status="closed"] {
  background: rgba(59, 48, 37, 0.12);
}

body.portal-body #load-more {
  min-width: 12rem;
}

body.portal-body .portal-notice-banner {
  position: fixed;
  left: 50%;
  bottom: calc(1rem + var(--safe-area-bottom));
  transform: translateX(-50%);
  z-index: 10010;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  width: min(calc(100vw - 2rem), 31rem);
  padding: 0.82rem 0.92rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(130, 93, 47, 0.16);
  background: rgba(255, 248, 241, 0.97);
  color: var(--portal-ink);
  box-shadow: 0 18px 38px rgba(29, 23, 18, 0.16);
  backdrop-filter: blur(18px);
}

body.portal-body .portal-notice-banner__text {
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

body.portal-body .portal-notice-banner__actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  flex: 0 0 auto;
}

body.portal-body .portal-notice-banner__btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  min-height: 2.3rem;
  padding: 0.5rem 0.82rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

body.portal-body .portal-notice-banner__btn--primary {
  background: #e89a45;
  border-color: rgba(200, 116, 37, 0.18);
  color: #1d1712;
  box-shadow: 0 10px 22px rgba(232, 154, 69, 0.18);
}

body.portal-body .portal-notice-banner__btn--primary:hover,
body.portal-body .portal-notice-banner__btn--primary:focus-visible {
  background: #de903c;
}

body.portal-body .portal-notice-banner__btn--secondary {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--portal-border-soft);
  color: var(--portal-ink);
}

body.portal-body .portal-notice-banner__btn--secondary:hover,
body.portal-body .portal-notice-banner__btn--secondary:focus-visible {
  background: rgba(242, 235, 227, 0.92);
}

body.portal-body #portal-toasts.portal-toast-stack {
  position: fixed;
  left: 50%;
  bottom: calc(1rem + var(--safe-area-bottom));
  transform: translateX(-50%);
  display: grid;
  gap: 0.5rem;
  z-index: 10005;
  width: min(calc(100vw - 2rem), 31rem);
  pointer-events: none;
}

body.portal-body .portal-toast {
  padding: 0.85rem 0.95rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(130, 93, 47, 0.14);
  background: rgba(255, 248, 241, 0.97);
  color: var(--portal-ink);
  box-shadow: 0 18px 38px rgba(29, 23, 18, 0.14);
  font-size: 0.88rem;
  line-height: 1.42;
  word-break: break-word;
}

body.portal-body.portal-modal-open #portal-toasts,
body.portal-body.portal-modal-open .portal-notice-banner {
  opacity: 0;
  pointer-events: none;
}

body.portal-body .tabbar {
  bottom: var(--portal-tabbar-bottom-offset);
  gap: 0.2rem;
  min-height: 0;
  padding: 0.22rem 0.45rem calc(0.04rem + var(--portal-tabbar-bottom-inset));
  border-color: var(--portal-tabbar-border);
  background: var(--portal-tabbar-bg);
  box-shadow: var(--portal-tabbar-shadow);
}

body.portal-body .tabbar__link {
  min-width: 0;
  min-height: 2.52rem;
  padding: 0.1rem 0.2rem 0.12rem;
  justify-content: center;
  font-weight: 700;
  gap: 0.16rem;
  color: var(--portal-tabbar-link);
  border: 1px solid transparent;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

body.portal-body .tabbar__link.is-active,
body.portal-body .tabbar__link:hover {
  color: var(--portal-tabbar-link-active);
  background: var(--portal-tabbar-pill);
  border-color: var(--portal-tabbar-pill-border);
}

body.portal-body .tabbar__link .portal-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
}

body.portal-body .tabbar__link .portal-nav-icon svg {
  width: 100%;
  height: 100%;
}

body.portal-body .tabbar__text {
  max-width: 100%;
  overflow: visible;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

html[data-native-platform="ios"] body.portal-body .tabbar__link,
html[data-myca-native-platform="ios"] body.portal-body .tabbar__link {
  transform: translateY(-0.03rem);
}

html[data-native-platform="android"] body.portal-body .tabbar__link,
html[data-myca-native-platform="android"] body.portal-body .tabbar__link {
  transform: translateY(-0.02rem);
}

html[data-native-platform="ios"] body.portal-body .tabbar,
html[data-myca-native-platform="ios"] body.portal-body .tabbar,
body[data-native-platform="ios"].portal-body .tabbar,
body[data-myca-native-platform="ios"].portal-body .tabbar {
  bottom: var(--portal-tabbar-bottom-offset) !important;
  padding: 0.08rem 0.45rem 0 !important;
  min-height: 0 !important;
  max-height: none !important;
}

html[data-native-platform="android"] body.portal-body .tabbar,
html[data-myca-native-platform="android"] body.portal-body .tabbar,
body[data-native-platform="android"].portal-body .tabbar,
body[data-myca-native-platform="android"].portal-body .tabbar {
  bottom: var(--portal-tabbar-bottom-offset) !important;
  padding: 0.1rem 0.45rem 0 !important;
  min-height: 0 !important;
  max-height: none !important;
}

html[data-native-platform="ios"] body.portal-body .tabbar__link,
html[data-myca-native-platform="ios"] body.portal-body .tabbar__link,
body[data-native-platform="ios"].portal-body .tabbar__link,
body[data-myca-native-platform="ios"].portal-body .tabbar__link {
  padding: 0.06rem 0.2rem 0.08rem !important;
  transform: translateY(-0.03rem);
}

html[data-native-platform="android"] body.portal-body .tabbar__link,
html[data-myca-native-platform="android"] body.portal-body .tabbar__link,
body[data-native-platform="android"].portal-body .tabbar__link,
body[data-myca-native-platform="android"].portal-body .tabbar__link {
  padding: 0.08rem 0.2rem 0.1rem !important;
  transform: translateY(-0.02rem);
}

body.portal-body .sidebar__link .dot {
  top: 0.7rem;
  right: 0.85rem;
  left: auto;
}

body.portal-body .tabbar__link .dot {
  top: 0.4rem;
  right: 0.55rem;
  box-shadow: 0 0 0 2px var(--portal-tabbar-dot-ring);
}

body.portal-body .portal-inline-links .btn-link,
body.portal-body .kpi-card .btn-link,
body.portal-body .hero-card .btn-link {
  color: #9b6b35;
}

body.portal-body .btn-primary {
  background: #e89a45;
  border: 1px solid rgba(200, 116, 37, 0.18);
  box-shadow: 0 12px 26px rgba(232, 154, 69, 0.18);
}

body.portal-body .btn-primary:hover,
body.portal-body .btn-primary:focus-visible {
  background: #de903c;
  box-shadow: 0 14px 28px rgba(222, 144, 60, 0.2);
}

body.portal-body .list-item {
  gap: 1rem;
}

body.portal-body .list-item > :first-child {
  min-width: 0;
  flex: 1 1 auto;
}

body.portal-body .account-action-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.5rem;
  min-height: 2.85rem;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--portal-control-border);
  background: var(--portal-control-bg);
  color: var(--portal-control-text);
  box-shadow: var(--portal-control-inset);
  font: inherit;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

body.portal-body .account-action-control:hover,
body.portal-body .account-action-control:focus-visible {
  background: var(--portal-control-bg-hover);
  color: var(--portal-control-text);
  border-color: var(--portal-tabbar-pill-border);
}

body.portal-body select.account-action-control,
body.portal-body select#portal-theme-select.account-action-control {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.25rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--portal-control-chevron) 50%),
    linear-gradient(135deg, var(--portal-control-chevron) 50%, transparent 50%);
  background-position:
    calc(100% - 1rem) calc(50% - 0.12rem),
    calc(100% - 0.72rem) calc(50% - 0.12rem);
  background-size: 0.38rem 0.38rem, 0.38rem 0.38rem;
  background-repeat: no-repeat;
}

body.portal-body select#portal-theme-select.account-action-control {
  color: var(--portal-control-text);
  background-color: var(--portal-control-bg);
  font-size: 0.95rem;
  overflow: visible;
}

@media (max-width: 63.99rem) {
  body.portal-body .portal-layout {
    padding-bottom: var(--portal-tabbar-clearance);
  }

  body.portal-body .portal-notice-banner {
    bottom: var(--portal-banner-bottom);
    width: min(calc(100vw - 1.2rem), 28rem);
    padding: 0.78rem 0.85rem;
  }

  body.portal-body #portal-toasts.portal-toast-stack {
    bottom: var(--portal-toast-stack-bottom);
    width: min(calc(100vw - 1.2rem), 20rem);
  }

  body.portal-body .portal-page-head,
  body.portal-body .hero-card,
  body.portal-body .card,
  body.portal-body .panel,
  body.portal-body .kpi-card {
    padding: 1.15rem 1rem;
    border-radius: 24px;
  }

  body.portal-body .hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(18rem, 0.88fr);
    gap: 2rem;
    padding: clamp(1.4rem, 3vw, 2.4rem);
    align-items: stretch;
  }

  body.portal-body .portal-page-head {
    padding: 1.25rem;
  }

  body.portal-body .msg-head,
  body.portal-body .msg-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }
}

@media (max-width: 599px) {
  body.portal-body .heading-xl {
    font-size: clamp(1.54rem, 7.3vw, 2rem);
    line-height: 1;
  }

  body.portal-body .portal-notice-banner {
    align-items: stretch;
    gap: 0.65rem;
    width: min(calc(100vw - 1rem), 22rem);
  }

  body.portal-body #portal-toasts.portal-toast-stack {
    width: min(calc(100vw - 1rem), 16rem);
  }

  body.portal-body .portal-notice-banner__actions {
    width: 100%;
    justify-content: stretch;
  }

  body.portal-body .portal-notice-banner__btn {
    flex: 1 1 0;
  }

  body.portal-body .portal-notice-banner__text {
    font-size: 0.84rem;
    line-height: 1.38;
  }

  body.portal-body .portal-toast {
    padding: 0.75rem 0.82rem;
    font-size: 0.82rem;
    line-height: 1.36;
  }

  body.portal-body .portal-inline-links {
    gap: 0.6rem 1rem;
  }

  body.portal-body #tab-bar {
    width: 100%;
    justify-content: space-between;
  }

  body.portal-body #tab-bar button {
    min-width: 0;
    flex: 1 1 0;
  }

  body.portal-body .list-item {
    flex-direction: column;
    align-items: stretch;
  }

  body.portal-body .account-action-control {
    width: 100%;
  }

  body.portal-body .text-md,
  body.portal-body .portal-intro,
  body.portal-body .card-meta,
  body.portal-body .list-sub {
    font-size: 0.92rem;
    line-height: 1.54;
  }

  body.portal-body .heading-md,
  body.portal-body .card-title {
    font-size: 0.98rem;
    line-height: 1.2;
  }

  body.portal-body .kpi-card__title {
    font-size: 0.68rem;
    line-height: 1.34;
  }

  body.portal-body .kpi-card__value {
    font-size: clamp(1.08rem, 6vw, 1.34rem);
    line-height: 1.18;
  }

  body.portal-body .kpi-card .btn-primary,
  body.portal-body .kpi-card .btn-link {
    width: 100%;
    justify-content: center;
    align-self: stretch;
  }

  body.portal-body .kpi-card .btn-link,
  body.portal-body .hero-card .btn-link,
  body.portal-body .panel__header .btn-link {
    font-size: 0.84rem;
  }
  
  body.portal-body .hero-card {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }
}

@media (max-width: 30rem) {
  body.portal-body .hero-card,
  body.portal-body .card,
  body.portal-body .panel,
  body.portal-body .kpi-card {
    padding: 1rem 0.1rem;
    border-radius: 22px;
  }

  body.portal-body .kpi-card {
    gap: 0.68rem;
  }

  body.portal-body .kpi-card__title {
    font-size: 0.66rem;
    letter-spacing: 0.06em;
  }

  body.portal-body .kpi-card__value {
    font-size: clamp(1rem, 5.7vw, 1.24rem);
  }

  body.portal-body .kpi-card .btn-primary,
  body.portal-body .kpi-card .btn-link {
    min-height: 2.55rem;
    font-size: 0.82rem;
    line-height: 1.28;
  }
}

@media (max-width: 63.99rem) {
  body.portal-body .main {
    padding-bottom: calc(0.8rem + var(--portal-tabbar-bottom-offset)) !important;
  }
}

html[data-native-platform="android"] body.portal-body .tabbar,
html[data-myca-native-platform="android"] body.portal-body .tabbar,
body[data-native-platform="android"].portal-body .tabbar,
body[data-myca-native-platform="android"].portal-body .tabbar {
  isolation: isolate;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-native-platform="android"] body.portal-body .tabbar::before,
html[data-myca-native-platform="android"] body.portal-body .tabbar::before,
body[data-native-platform="android"].portal-body .tabbar::before,
body[data-myca-native-platform="android"].portal-body .tabbar::before {
  content: "";
  position: absolute;
  inset: 0 0 0 0;
  border-radius: 24px;
  border: 1px solid var(--portal-tabbar-border);
  background: var(--portal-tabbar-bg);
  box-shadow: var(--portal-tabbar-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  pointer-events: none;
  z-index: -1;
}
