/**
 * /features: small .ph-* helpers for the static phone screens in features.html
 * (the screen palette is light-only, like the app). Pairs with the .ui-* pieces in
 * css/site.css and css/features.css.
 */
.ph-m0 { margin: 0 !important; }
.ph-mb6 { margin-bottom: 6px !important; }
.ph-mb8 { margin-bottom: 8px !important; }
.ph-mt14 { margin-top: 14px !important; }
.ph-w40 { width: 40%; }
.ph-w43 { width: 43%; }
.ph-w50 { width: 50%; }
.ph-w70 { width: 70%; }
.ph-w80 { width: 80%; }
.ph-w85 { width: 85%; }
.ph-gone { display: none !important; }
.ph-hide { opacity: 0; visibility: hidden; }
.ph-grow { flex: 1; }
.ph-small { margin-left: auto; font-size: 11px; }
.ph-strong { margin: 0 0 6px; font-weight: 700; }
.ph-sub { display: block; color: var(--ui-muted); font-size: 10.5px; }
.ph-name { font-size: 17px; }
.ph-dark { background: #0b1120; color: #fff; }
.ph-danger { color: #b91c1c; }
.ph-btn-danger { background: #b91c1c !important; }
.ph-tile2 { grid-template-columns: 38px 1fr; margin-bottom: 4px; }
.ph-tapspot { position: absolute; left: 50%; top: 42%; width: 1px; height: 1px; }
.ph-addrow { margin: 4px 2px; color: #4f35d9; font-size: 11.5px; font-weight: 700; }
.ph-count { margin: 0 2px 6px; color: var(--ui-muted); font-size: 11px; }
.ph-pill {
  margin-left: auto; padding: 2px 8px; border-radius: 999px;
  background: #eef2ff; color: #2e3192; font-size: 10.5px; font-weight: 800;
}
.ph-link { display: flex; align-items: center; gap: 6px; margin: 10px 2px 0; color: #2e3192; font-weight: 700; }
.ph-mail { padding: 9px 10px; font-size: 11.5px; color: #334155; }
.ph-mail p { margin: 0 0 6px; }
.ph-mail p:last-child { margin: 0; }

/* status segment with spans (mirrors .ui-seg button) */
.ui-seg > span {
  display: grid; place-items: center; min-height: 34px; border-radius: 9px;
  font-size: 11px; font-weight: 800; color: #475569;
}
.ui-seg > span[aria-pressed='true'][data-status='hot'] { background: var(--st-hot); color: #fff; }
.ui-seg > span[aria-pressed='true'][data-status='warm'] { background: var(--st-warm); color: #fff; }
.ui-seg > span[aria-pressed='true'][data-status='cold'] { background: var(--st-cold); color: #fff; }
.ui-seg > span[aria-pressed='true'][data-status='done'] { background: var(--st-done); color: #fff; }

/* dashboard bars */
.ph-bars p { display: flex; justify-content: space-between; margin: 6px 2px 0; font-size: 12px; }
.ph-bars b { font-weight: 800; }

/* drawer rows (mirrors .ui-drawer button) */
.ph-drow {
  display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: center;
  min-height: 46px; padding: 4px 8px; border-radius: 10px;
}
.ph-drow.is-on { background: #eef2ff; }
.ph-drow small { display: block; color: var(--ui-muted); font-size: 10.5px; }

/* exhibition picker on the camera */
.ph-vf-high { top: 16%; }
.ph-exsheet { bottom: 100px; left: 10px; right: 10px; border-radius: 16px; color: var(--ui-text); }
.ph-exsheet::before { display: none; }
.ph-exsheet .ph-dd { top: 104px; }

/* card photos on the edit screen */
.ph-photos { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; margin-bottom: 8px; }
.ph-photos > span { position: relative; display: block; height: 54px; border-radius: 8px; background: #334155; }
.ph-photos small { position: absolute; left: 6px; bottom: 3px; color: #fff; font-size: 9.5px; }
.ph-photos .ph-swap {
  display: grid; place-items: center; padding: 0 8px; background: #eef2ff; color: #2e3192;
  font-size: 10px; font-weight: 700;
}

/* member picker (transfer) */
.ph-pick {
  display: grid; grid-template-columns: 32px 1fr auto; gap: 8px; align-items: center;
  margin-bottom: 6px; padding: 6px 8px; border: 1px solid var(--ui-border); border-radius: 10px;
}
.ph-pick.is-on { border-color: #6a4df5; background: #f5f3ff; }
.ph-pick small { display: block; color: var(--ui-muted); font-size: 10.5px; }
.ph-pick .ui-icon { color: #6a4df5; }

/* login history */
.ph-log { margin: 0; padding: 0; list-style: none; }
.ph-log li { display: grid; gap: 1px; padding: 8px 2px; border-bottom: 1px solid var(--ui-border); }
.ph-log li:last-child { border-bottom: 0; }
.ph-log b { font-size: 12px; }
.ph-log span, .ph-log small { color: var(--ui-muted); font-size: 11px; }

/* pricing page in the phone browser */
.ph-seg {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-bottom: 10px; padding: 3px;
  border-radius: 10px; background: #e2e8f0;
}
.ph-seg span { padding: 6px 0; border-radius: 8px; text-align: center; font-size: 11px; font-weight: 700; color: #475569; }
.ph-seg span[aria-pressed='true'] { background: #fff; color: #2e3192; box-shadow: 0 1px 3px rgba(11, 17, 32, 0.15); }
.ph-plan { margin-bottom: 8px; padding: 10px 12px; }
.ph-plan--pro { border-color: #6a4df5; box-shadow: 0 0 0 1px #6a4df5; }

/* Card Credits warning card */
.ph-notice {
  position: absolute; left: 10px; right: 10px; bottom: 16px; z-index: 5; padding: 10px 12px;
  border-radius: 14px; background: #fff; border: 1px solid #fcd34d;
  box-shadow: 0 16px 30px -14px rgba(11, 17, 32, 0.45);
}
.ph-notice .ph-meter > span { background: linear-gradient(90deg, #b45309, #f59e0b); }
.ui-transfer > div:only-child { margin-inline: auto; text-align: center; }
