:root {
  --fg-bg: #f7f2f0;
  --fg-primary: #0f766e;
  --fg-primary-hover: #0d645d;
  --fg-ink: #0f172a;
  --fg-muted: #4b5563;
  --fg-disabled: #9ca3a0;
  --fg-divider: #e5e7e5;
  --fg-white: #ffffff;
  --fg-shadow-sm: 0 2px 6px rgba(17, 24, 39, 0.08);
}

.fg-header,
.fg-header *,
.fg-menu,
.fg-menu * {
  box-sizing: border-box;
}

.fg-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--fg-bg);
}

.fg-header__inner {
  display: flex;
  box-sizing: border-box;
  width: 100%;
  max-width: 375px;
  height: 56px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 8px 16px;
}

.fg-logo {
  display: inline-flex;
  align-items: center;
}

.fg-logo img {
  display: block;
  width: 55px;
  height: 18px;
  object-fit: contain;
}

.fg-iconbtn {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.fg-iconbtn img,
.fg-iconbtn svg {
  display: block;
  width: 24px;
  height: 24px;
}

.fg-iconbtn svg path {
  stroke: var(--fg-disabled);
}

.fg-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  overflow: auto;
  background: var(--fg-bg);
}

.fg-menu.open,
.fg-menu.is-open {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 16px;
}

.fg-menu .fg-header {
  position: static;
  width: min(100%, 343px);
  background: transparent;
}

.fg-menu .fg-header__inner {
  width: 100%;
  max-width: 343px;
  height: 40px;
  margin: 0;
  padding: 0;
}

.fg-menu__body {
  display: flex;
  width: min(100%, 343px);
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 16px 0 0;
}

.fg-row {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  color: var(--fg-ink);
  font: 500 18px/28px Manrope, Inter, system-ui, sans-serif;
  text-decoration: none;
}

.fg-row--active {
  color: var(--fg-primary-hover);
  font-weight: 600;
}

.fg-row-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 16px;
}

.fg-nav-icon,
.fg-chevron {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.fg-divider {
  width: 100%;
  height: 1px;
  background: var(--fg-divider);
}

.fg-sub {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 16px 0;
}

.fg-sub a {
  display: flex;
  min-height: 44px;
  align-items: center;
  color: var(--fg-muted);
  font: 400 14px/20px Manrope, Inter, system-ui, sans-serif;
  text-decoration: none;
}

.fg-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: auto;
  padding: 16px 0;
}

.fg-btn {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: 9999px;
  font: 600 16px/24px Manrope, Inter, system-ui, sans-serif;
  letter-spacing: 0;
  text-decoration: none;
}

.fg-btn--primary {
  border: 0;
  background: var(--fg-primary);
  box-shadow: var(--fg-shadow-sm);
  color: var(--fg-white);
}

.fg-btn--secondary {
  border: 1px solid var(--fg-primary);
  background: transparent;
  color: var(--fg-primary-hover);
}

html.nav-open,
body.nav-open {
  overflow: hidden;
}
