/* =========================================================
   Portal do Cliente — Mobile
   ========================================================= */

:root {
  --tabbar-h: 72px;
  --mheader-h: 52px;
}

.mobile-app {
  min-height: 100vh;
  background: var(--bg-subtle);
  padding-bottom: var(--tabbar-h);
  position: relative;
  overflow-x: hidden;
  animation: mobileAppIn 0.35s var(--ease-out) both;
}
@keyframes mobileAppIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ------------ Status bar (iOS-like inside the page for mobile web) ------------ */
.mobile-statusbar {
  height: env(safe-area-inset-top, 0px);
  background: #fff;
}

/* ------------ Sticky header ------------ */
.m-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  height: var(--mheader-h);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
}
.m-header-brand {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0;
}
.m-header-brand .brand-mark { width: 24px; height: 24px; font-size: 11px; }
.m-header-titles { min-width: 0; }
.m-header-project {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.m-header-status {
  font-size: 10px;
  color: var(--fg-4);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1.2;
  margin-top: 1px;
}
.m-header-action {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--fg-2);
  position: relative;
}
.m-header-action:active { background: var(--bg-muted); }

/* ------------ Page content ------------ */
.m-page {
  padding: 14px 14px 18px;
  animation: mpageIn 0.34s var(--ease-out) both;
}
@keyframes mpageIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.m-title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 6px 0 2px;
  line-height: 1.1;
}
.m-subtitle {
  font-size: 12px;
  color: var(--fg-4);
  font-family: var(--font-mono);
  margin-bottom: 18px;
}

.m-section-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-4);
  font-weight: 500;
  margin: 22px 4px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.m-section-label a {
  font-family: var(--font-mono);
  color: var(--fg-2);
  font-size: 10px;
  display: inline-flex; align-items: center; gap: 4px;
}

/* ------------ Mobile card ------------ */
.m-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 10px;
}
.m-card-body { padding: 14px; }
.m-card-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.m-card-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-2);
}
.m-card-sub {
  font-size: 10.5px;
  color: var(--fg-4);
  font-family: var(--font-mono);
}

/* ------------ Mobile KPI (horizontal scroller) ------------ */
.m-kpi-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin: 0 -14px 14px;
  padding: 2px 14px 6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.m-kpi-scroll::-webkit-scrollbar { display: none; }
.m-kpi {
  flex-shrink: 0;
  width: 160px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}
.m-kpi-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-4);
  font-weight: 500;
}
.m-kpi-value {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.m-kpi-foot {
  margin-top: 10px;
  font-size: 10px;
  color: var(--fg-4);
  font-family: var(--font-mono);
}

/* ------------ Bottom tabbar ------------ */
.m-tabbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--tabbar-h);
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 40;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.m-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 0 10px;
  border: none;
  background: transparent;
  color: var(--fg-4);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease-out);
  position: relative;
}
.m-tab.active { color: var(--fg); }
.m-tab svg { transition: transform var(--dur) var(--ease-spring); }
.m-tab.active svg { transform: scale(1.06); }
.m-tab::before {
  content: "";
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%) scaleX(0);
  width: 24px; height: 2px;
  background: var(--fg);
  border-radius: 0 0 2px 2px;
  transition: transform var(--dur) var(--ease-spring);
}
.m-tab.active::before { transform: translateX(-50%) scaleX(1); }

/* ------------ Drawer / More sheet ------------ */
.m-sheet-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 50;
  backdrop-filter: blur(3px);
  /* opacity controlada inline pelo React (fade-in ao montar, fade-out ao fechar
     e segue o arraste). Sem CSS animation: ela travava o transform inline. */
}
.m-sheet {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 51;
  background: #fff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
  /* transform/transition 100% inline (abrir, arrastar, fechar) — ver MobileApp.jsx.
     Antes havia `animation: sheetUp ... both` aqui, mas o fill-mode `both` mantinha
     o transform travado e impedia a animação de descida + o arraste. */
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  will-change: transform;
  touch-action: none;
}
/* Zona de "puxar pra fechar" (handle + cabeçalho) — estilo iOS */
.m-sheet-grab { flex-shrink: 0; cursor: grab; }
.m-sheet-grab:active { cursor: grabbing; }
@keyframes sheetUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
@keyframes sheetDown {
  from { transform: translateY(0); }
  to   { transform: translateY(100%); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@keyframes searchIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes searchOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(12px); }
}
@keyframes slideDownFade {
  from { opacity: 0; transform: translateY(-6px); max-height: 0; }
  to   { opacity: 1; transform: translateY(0); max-height: 1200px; }
}
.m-sheet-handle {
  width: 36px; height: 4px;
  background: var(--border-strong);
  border-radius: 2px;
  margin: 8px auto;
}
.m-sheet-head {
  padding: 4px 18px 12px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.m-sheet-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.m-sheet-body {
  overflow-y: auto;
  flex: 1;
  padding: 4px 0 12px;
  -webkit-overflow-scrolling: touch;
}
.m-sheet-close {
  width: 30px; height: 30px;
  border: none;
  background: var(--bg-muted);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--fg-3);
}

/* ------------ List rows (sheet / drawer) ------------ */
.m-list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: 15px;
  color: var(--fg);
  transition: background 0.1s;
}
.m-list-row:active { background: var(--bg-muted); }
.m-list-row .icon-slot {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--bg-muted);
  display: grid; place-items: center;
  color: var(--fg-2);
  flex-shrink: 0;
}
.m-list-row .kbd-slot {
  margin-left: auto;
  color: var(--fg-4);
}

/* ------------ Pull to refresh ------------ */
.m-ptr {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10px;
  color: var(--fg-4);
  font-family: var(--font-mono);
  font-size: 10.5px;
  pointer-events: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.m-ptr-ring {
  width: 18px; height: 18px;
  border: 1.5px solid var(--border-strong);
  border-top-color: var(--fg);
  border-radius: 50%;
  margin-right: 8px;
  transition: transform 0.1s linear;
}
.m-ptr.spin .m-ptr-ring {
  animation: ptrSpin 0.8s linear infinite;
}
@keyframes ptrSpin {
  to { transform: rotate(360deg); }
}

/* ------------ Push notification toast ------------ */
.m-push {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  left: 10px; right: 10px;
  z-index: 80;
  background: rgba(250,250,250,0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  animation: pushIn 0.42s var(--ease-spring) both;
}
@keyframes pushIn {
  from { opacity: 0; transform: translateY(-120%); }
  to   { opacity: 1; transform: translateY(0); }
}
.m-push.out {
  animation: pushOut 0.32s var(--ease-out) both;
}
@keyframes pushOut {
  to { opacity: 0; transform: translateY(-120%); }
}
.m-push-ico {
  width: 30px; height: 30px;
  background: var(--fg);
  color: #fff;
  border-radius: 8px;
  display: grid; place-items: center;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}
.m-push-body { flex: 1; min-width: 0; }
.m-push-title-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 8px;
}
.m-push-app {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-4);
  font-family: var(--font-mono);
}
.m-push-time {
  font-size: 10px;
  color: var(--fg-4);
  font-family: var(--font-mono);
}
.m-push-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 2px;
}
.m-push-text {
  font-size: 12.5px;
  color: var(--fg-2);
  margin-top: 2px;
  line-height: 1.35;
}

/* ------------ Diary (mobile) ------------ */
.m-diary-row {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  align-items: center;
}
.m-diary-row:last-child { border-bottom: none; }
.m-diary-date {
  width: 52px;
  flex-shrink: 0;
  text-align: center;
  border-right: 1px solid var(--border);
  padding-right: 12px;
  font-family: var(--font-mono);
}
.m-diary-day { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.m-diary-mo  { font-size: 10px; color: var(--fg-4); text-transform: uppercase; margin-top: 3px; }
.m-diary-body { flex: 1; min-width: 0; }

/* ------------ Cam mobile ------------ */
.m-cam {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  background: #0A0A0A;
  color: #fff;
  cursor: pointer;
}

/* ------------ Camera full-screen landscape ------------ */
.m-cam-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.25s var(--ease-out) both;
}
.m-cam-rotate-hint {
  position: absolute;
  top: 14px; left: 14px;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.m-cam-rotate-hint svg {
  animation: rotateHint 2.4s ease-in-out infinite;
}
@keyframes rotateHint {
  0%, 100% { transform: rotate(0); }
  50% { transform: rotate(90deg); }
}
.m-cam-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  display: grid; place-items: center;
  backdrop-filter: blur(8px);
}
.m-cam-fullscreen-inner {
  width: 100%;
  height: 100%;
  background: #0A0A0A;
  position: relative;
  overflow: hidden;
}
.m-cam-fullscreen-inner .cam-stripes { background: repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0 2px, transparent 2px 4px); position: absolute; inset: 0; }

/* ------------ Bottom sheet (diary detail) ------------ */
.m-bsheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  top: 10%;
  z-index: 60;
  background: var(--bg-subtle);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -12px 40px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  animation: sheetUp 0.38s var(--ease-out) both;
  overflow: hidden;
}
.m-bsheet-body {
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 30px;
}

/* ------------ Financial mobile ------------ */
.m-installment {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
}
.m-installment:last-child { border-bottom: none; }
.m-inst-n {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--bg-muted);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-2);
  flex-shrink: 0;
}
.m-inst-n.paid { background: #f0fdf4; color: var(--green); border: 1px solid #dcfce7; }
.m-inst-n.upcoming { background: var(--fg); color: #fff; }
.m-inst-body { flex: 1; min-width: 0; }
.m-inst-label { font-size: 13px; font-weight: 500; color: var(--fg); }
.m-inst-date { font-size: 11px; color: var(--fg-4); font-family: var(--font-mono); margin-top: 1px; }
.m-inst-amount {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  text-align: right;
  flex-shrink: 0;
}

/* ------------ Gantt mobile: vertical phase list ------------ */
.m-phase {
  padding: 14px;
  border-bottom: 1px solid var(--border);
}
.m-phase:last-child { border-bottom: none; }
.m-phase-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 8px;
}
.m-phase-name { font-size: 13.5px; font-weight: 500; }
.m-phase-pct { font-family: var(--font-mono); font-size: 12px; color: var(--fg-2); }
.m-phase-meta { font-size: 10.5px; color: var(--fg-4); font-family: var(--font-mono); margin-top: 6px; display: flex; gap: 10px; }
.m-phase-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}
.m-phase-dot.done { background: var(--fg-3); }
.m-phase-dot.active { background: var(--fg); }
.m-phase-dot.future { background: var(--border-strong); }

/* ------------ Login mobile ------------ */
.m-login {
  min-height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: 40px 24px 24px;
  animation: mobileAppIn 0.4s var(--ease-out) both;
}
.m-login-brand {
  display: flex; align-items: center; gap: 10px; margin-bottom: 30px;
}
.m-login-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.m-login-title {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 6px;
  line-height: 1.05;
}
.m-login-sub {
  font-size: 14px;
  color: var(--fg-3);
  margin-bottom: 28px;
  max-width: 300px;
  line-height: 1.45;
}
.m-login-meta {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
}
.m-login-meta h5 {
  font-family: var(--font-sans);
  font-size: 10px;
  margin: 0 0 10px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.m-faceid-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  background: transparent;
  color: var(--fg-2);
  font-size: 13px;
  width: 100%;
  font-family: inherit;
}

/* ------------ Docs mobile tabs ------------ */
.m-tabs {
  display: flex;
  background: var(--bg-muted);
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 14px;
}
.m-tabs button {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 12px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--fg-3);
  transition: all var(--dur-fast) var(--ease-out);
}
.m-tabs button.on {
  background: #fff;
  color: var(--fg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.m-file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.m-file-row:last-child { border-bottom: none; }
.m-file-ico {
  width: 34px; height: 40px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--fg-4);
  display: grid; place-items: end center;
  padding-bottom: 4px;
  background: #fff;
  flex-shrink: 0;
  position: relative;
}
.m-file-ico::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 8px; height: 8px;
  background: var(--border);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}
.m-file-body { flex: 1; min-width: 0; }
.m-file-name { font-size: 13px; font-weight: 500; color: var(--fg); }
.m-file-meta { font-size: 10.5px; color: var(--fg-4); font-family: var(--font-mono); margin-top: 2px; }

/* ------------ Progress donut ------------ */
.m-donut {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ------------ Weather chip ------------ */
.m-weather-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #FAFAFA, #F3F3F3);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.m-weather-temp {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* ------------ Quick actions row ------------ */
.m-quick-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.m-quick {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--fg-2);
  font-family: inherit;
  transition: transform var(--dur-fast) var(--ease-out);
}
.m-quick:active { transform: scale(0.96); background: var(--bg-subtle); }
.m-quick .ico {
  width: 32px; height: 32px;
  background: var(--bg-muted);
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--fg);
}

/* ------------ Milestone mini ------------ */
.m-mile {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.m-mile:last-child { border-bottom: none; }
.m-mile-date {
  width: 42px;
  text-align: center;
  border-right: 1px solid var(--border);
  padding-right: 10px;
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.m-mile-d { font-size: 17px; font-weight: 500; line-height: 1; }
.m-mile-m { font-size: 9px; color: var(--fg-4); text-transform: uppercase; margin-top: 2px; }

/* ------------ Segmented control ------------ */
.m-seg {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.m-seg button {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background var(--dur-fast) var(--ease-out);
  border-right: 1px solid var(--border);
}
.m-seg button:last-child { border-right: none; }
.m-seg button.on { background: var(--fg); color: #fff; }

/* ------------ Viewport scoping: desktop-only rules hidden on mobile handled inline via React ------------ */
@media (max-width: 767px) {
  .desktop-only { display: none !important; }
}
@media (min-width: 768px) {
  .mobile-only { display: none !important; }
}

/* ------------ Notas fiscais (mobile) + boleto action ------------ */
.m-inst-action {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--fg-2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  cursor: pointer;
  margin-left: 4px;
  transition: background 120ms ease, color 120ms ease, transform 120ms ease;
}
.m-inst-action:active {
  background: var(--bg-muted);
  transform: scale(0.95);
}
.m-inst-action.primary {
  background: var(--fg);
  color: #fff;
  border-color: var(--fg);
}

.m-section-block {
  margin-bottom: 16px;
}
.m-section-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 4px 4px 8px;
}
.m-section-block-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--fg);
  text-transform: capitalize;
}
.m-section-block-meta {
  font-size: 10.5px;
  font-family: var(--font-mono);
  color: var(--fg-4);
  letter-spacing: 0.02em;
}
.m-nf-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  border: none;
  text-align: left;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  transition: background 120ms ease;
}
.m-nf-row:active { background: var(--bg-subtle); }
.m-nf-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--bg-muted);
  color: var(--fg-2);
}
.m-nf-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-nf-sub {
  font-size: 11px;
  color: var(--fg-4);
  display: flex;
  gap: 4px;
  margin-top: 3px;
  align-items: center;
  flex-wrap: wrap;
  font-family: var(--font-mono);
}
.m-nf-desc {
  font-size: 11.5px;
  color: var(--fg-3);
  margin-top: 4px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.m-nf-amount {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
  flex-shrink: 0;
  margin-top: 2px;
  white-space: nowrap;
}
