/* Phone money screens on the new layout. The shell (.v12-pm) exists only
   while the phone layout is on, so the desktop and classic layouts stay put.
   Folded sections, one primary action, search first, cards, big taps. */

body.hub-v12:not(.field-face) .v12-pm {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  color: var(--hub-ink);
  box-sizing: border-box;
}

body.hub-v12:not(.field-face) .v12-pm * { box-sizing: border-box; }

body.hub-v12:not(.field-face) .v12-pm-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--hub-line);
  border-radius: 14px;
  color: var(--hub-ink-muted);
}
body.hub-v12:not(.field-face) .v12-pm-search input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--hub-ink);
  font-size: 16px;
  box-shadow: none;
}
body.hub-v12:not(.field-face) .v12-pm-search input:focus { outline: none; }

body.hub-v12:not(.field-face) .v12-pm-rule {
  margin: 0;
  padding: 10px 12px;
  background: var(--hub-navy-l);
  border: 1px solid var(--hub-navy-l);
  border-radius: 12px;
  color: var(--hub-navy);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 650;
}

body.hub-v12:not(.field-face) .v12-pm-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}
body.hub-v12:not(.field-face) .v12-pm-chips button {
  flex: none;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--hub-line);
  border-radius: 999px;
  background: #fff;
  color: var(--hub-ink);
  font-weight: 700;
  white-space: nowrap;
}
body.hub-v12:not(.field-face) .v12-pm-chips button.on {
  background: var(--hub-ink);
  border-color: var(--hub-ink);
  color: #fff;
}

body.hub-v12:not(.field-face) .v12-pm-fold {
  background: #fff;
  border: 1px solid var(--hub-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(20, 30, 50, .05), 0 4px 14px rgba(20, 30, 50, .05);
}
body.hub-v12:not(.field-face) .v12-pm-fold[hidden] { display: none !important; }
body.hub-v12:not(.field-face) .v12-pm-sum {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 64px;
  padding: 12px 14px;
  border: 0;
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
body.hub-v12:not(.field-face) .v12-pm-sum-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
body.hub-v12:not(.field-face) .v12-pm-sum b {
  font-size: 16px;
  line-height: 1.25;
}
body.hub-v12:not(.field-face) .v12-pm-sum-main span {
  color: var(--hub-ink-muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.hub-v12:not(.field-face) .v12-pm-count {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--hub-canvas);
  color: var(--hub-ink);
  font-style: normal;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
body.hub-v12:not(.field-face) .v12-pm-sum::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--hub-ink-muted);
  border-bottom: 2px solid var(--hub-ink-muted);
  transform: rotate(45deg);
  flex: none;
  margin-right: 4px;
}
body.hub-v12:not(.field-face) .v12-pm-fold.open .v12-pm-sum::after {
  transform: rotate(-135deg);
  margin-top: 6px;
}
body.hub-v12:not(.field-face) .v12-pm-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 10px 12px;
  min-width: 0;
}
body.hub-v12:not(.field-face) .v12-pm-body[hidden] { display: none !important; }

body.hub-v12:not(.field-face) .v12-pm-back {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--hub-line);
  border-radius: 12px;
  background: #fff;
  color: var(--hub-ink);
  font-weight: 750;
}
body.hub-v12:not(.field-face) .v12-pm:not(.v12-pm-focus) > .v12-pm-back { display: none !important; }

body.hub-v12:not(.field-face) .v12-pm:not(.v12-pm-focus) .hb-detail { display: none !important; }
body.hub-v12:not(.field-face) .v12-pm.v12-pm-focus > .v12-pm-folds,
body.hub-v12:not(.field-face) .v12-pm.v12-pm-focus > .v12-pm-chips,
body.hub-v12:not(.field-face) .v12-pm.v12-pm-focus > .v12-pm-search,
body.hub-v12:not(.field-face) .v12-pm.v12-pm-focus .hb-list,
body.hub-v12:not(.field-face) .v12-pm.v12-pm-focus .hb-batch { display: none !important; }

body.hub-v12:not(.field-face) .v12-pm .hb-split { grid-template-columns: minmax(0, 1fr) !important; }
body.hub-v12:not(.field-face) .v12-pm .hb-card {
  min-height: 72px;
  border-radius: 14px;
}
body.hub-v12:not(.field-face) .v12-pm .hb-card-pick {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body.hub-v12:not(.field-face) .v12-pm .hb-card-amt { font-size: 1.25rem; }
body.hub-v12:not(.field-face) .v12-pm .hb-pill,
body.hub-v12:not(.field-face) .v12-pm .fp-chip,
body.hub-v12:not(.field-face) .v12-pm .status-chip,
body.hub-v12:not(.field-face) .v12-pm .br-chip,
body.hub-v12:not(.field-face) .v12-pm .v12-pm-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}
body.hub-v12:not(.field-face) .v12-pm .v12-pm-chip {
  background: var(--hub-canvas);
  color: var(--hub-ink);
}
body.hub-v12:not(.field-face) .v12-pm .v12-pm-chip-wait {
  background: var(--hub-navy-l);
  color: var(--hub-navy);
}

body.hub-v12:not(.field-face) .v12-pm-hit-off { display: none !important; }

body.hub-v12:not(.field-face) .v12-pm table.v12-cardtable td.v12-pm-quiet { display: none !important; }
body.hub-v12:not(.field-face) .v12-pm table.v12-cardtable tr.v12-pm-open td.v12-pm-quiet { display: block !important; }
body.hub-v12:not(.field-face) .v12-pm table.v12-cardtable tr[hidden],
body.hub-v12:not(.field-face) .v12-pm table.v12-cardtable tr.br-dense-more:not(.v12-pm-open) { display: none !important; }
body.hub-v12:not(.field-face) .v12-pm .v12-pm-more {
  min-height: 44px;
  margin-top: 6px;
  padding: 0 12px;
  border: 1px solid var(--hub-line);
  border-radius: 10px;
  background: #fff;
  font-weight: 700;
}

body.hub-v12:not(.field-face) .v12-pm-sticky {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--hub-line);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(20, 30, 50, .12);
}
body.hub-v12:not(.field-face) .v12-pm-sticky .v12-pm-primary {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--hub-action);
  color: #fff;
  font-size: 16px;
  font-weight: 750;
}
body.hub-v12:not(.field-face) .v12-pm-sticky .v12-wait,
body.hub-v12:not(.field-face) .v12-pm-sticky #fp-selected {
  margin: 0;
  color: var(--hub-navy);
  font-size: 13px;
  font-weight: 650;
}
body.hub-v12:not(.field-face) .v12-pm-hasprimary { padding-bottom: 88px; }

body.hub-v12:not(.field-face) .v12-pm .hb-payrange:empty { display: none; }
body.hub-v12:not(.field-face) .v12-pm h2 { font-size: 22px; letter-spacing: -.3px; }
body.hub-v12:not(.field-face) .v12-pm-blocked {
  margin: 12px 0;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--hub-line);
  border-radius: 14px;
}
body.hub-v12:not(.field-face) .v12-pm-blocked h2 { margin: 0 0 6px; font-size: 20px; }
body.hub-v12:not(.field-face) .v12-pm-blocked p { margin: 0; color: var(--hub-ink-muted); }
