/* member.css — layout for the web member space (/me, /approve/<vouch>).
 * Colours, type, buttons and cards come from shodkk.css (the app's tokens);
 * this file only places things. */
.center-load { display: flex; justify-content: center; padding: 48px 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sub { display: block; color: var(--text-sec); font-size: 13px; line-height: 1.5; }

/* Avatars: the app's circle with an initial fallback. */
.avatar { width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto; background: var(--accent) center/cover no-repeat;
  color: #fff; font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.avatar.lg { width: 64px; height: 64px; font-size: 24px; }
.avatar.xl { width: 72px; height: 72px; font-size: 28px; }
.avatar.empty { background: var(--bone); color: var(--text-ter); border: 1px dashed var(--border); }

/* The three-step card: done ✓ / now (accent) / next (muted). */
.ms-steps { list-style: none; display: grid; gap: 10px; margin: 16px 0; }
.ms-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card-sm); }
.ms-steps li > div { flex: 1; min-width: 0; }
.ms-steps li b { display: block; font-size: 15px; }
.ms-steps .dot { width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto; margin-top: 1px;
  border: 1px solid var(--border); background: var(--bone); display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: var(--text-ter); }
.ms-steps li.done .dot { background: var(--success-bg); border-color: var(--success-border); color: var(--success); }
.ms-steps li.done .dot::after { content: '✓'; }
.ms-steps li.now { border-color: var(--accent-mid); background: var(--accent-pale); }
.ms-steps li.now .dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.ms-steps li.next { opacity: .7; }
.ms-steps li:not(.done) .dot::after { content: attr(data-n); }
.idform { margin-top: 12px; }
.idform .btn { margin-top: 12px; }
.photo-row { display: flex; gap: 14px; align-items: center; }
.photo-row .hint { margin-top: 6px; }

.cdown { font-family: inherit; font-variant-numeric: tabular-nums; font-size: 26px;
  font-weight: 800; letter-spacing: 1px; color: var(--text); margin: 4px 0; font-variant-numeric: tabular-nums; }
.badge-left { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: var(--r-chip); font-size: 12px;
  font-weight: 700; letter-spacing: .3px; color: var(--accent-dark); background: var(--accent-pale); border: 1px solid var(--accent-mid); }
.live { display: flex; align-items: center; gap: 8px; color: var(--text-sec); font-size: 12px; margin-top: 12px; }
/* /me waiting: what opens with the Yes (me.js renderUnlock). */
.unlock { margin-top: 14px; }
.unlock ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.unlock li::before { content: '🔓'; margin-right: 8px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); flex: 0 0 auto; }

/* "This week in your samaj": real numbers in a 2×2 grid. */
.pulse-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.pulse-grid .tile { background: var(--bg-sub); border: 1px solid var(--border); border-radius: var(--r-card-sm); padding: 12px; }
.pulse-grid .num { font-size: 22px; font-weight: 800; letter-spacing: -.5px; color: var(--text); }
.pulse-grid .cap { font-size: 12px; color: var(--text-sec); line-height: 1.35; }

/* Member card. */
.member-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; margin-top: 8px; }
.mc-name { font-size: 20px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.mc-line { font-size: 13px; color: var(--accent-dark); font-weight: 700; margin-top: 2px; }
.mc-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mc-share { grid-column: 1 / -1; justify-self: start; font-size: 14px; }
.app-done { margin-top: 12px; }
.app-done .btn { margin-top: 10px; }

/* Lists (students, books). */
.row { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 12px 14px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card-sm); }
.row + .row { margin-top: 10px; }
a.row.link-row { color: inherit; text-decoration: none; margin-top: 10px; align-items: center; }
.row .main { min-width: 0; flex: 1; }
.row .t { font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.row .m { font-size: 12px; color: var(--text-sec); margin-top: 2px; }
.row .act { flex: 0 1 auto; max-width: 48%; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.row .act .link { font: inherit; font-size: 12px; color: var(--accent-dark); background: none; border: 0;
  text-decoration: underline; cursor: pointer; padding: 0; }
.row .main .hint { margin-top: 6px; }
.row .act .btn { min-height: 40px; padding: 8px 14px; width: auto; font-size: 13px; }
.row .act .pill { margin-top: 4px; text-align: right; }
/* "They are waiting for your Yes" (walk 81): the button sits under the
   name and time left, as in the app's Invites row. */
.olakh-row { justify-content: flex-start; }
.olakh-row .btn { margin-top: 8px; min-height: 40px; padding: 8px 14px; font-size: 13px; }
section > .btn.outline { margin-top: 10px; }
.filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin: 8px 0 12px; }
.filters select.input, .filters input { padding: 10px 12px; font-size: 14px; }
.filters .place-list { grid-column: 1 / -1; margin-top: 0; }
.empty { color: var(--text-sec); font-size: 13px; padding: 12px 0; }

/* Invite card. */
.invite-count { font-weight: 700; }
.invite-link { margin: 10px 0 12px; padding: 10px 12px; background: var(--bg-sub); border: 1px solid var(--border);
  border-radius: var(--r-input); font-size: 14px; overflow-wrap: anywhere; user-select: all; }

/* "In the app" cards: locked, one line of value each. */
.lock { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px dashed var(--accent-mid);
  border-radius: var(--r-card-sm); background: var(--accent-pale); }
.lock + .lock { margin-top: 10px; }
.lock .ico { font-size: 20px; width: 28px; text-align: center; flex: 0 0 auto; }
.lock .main { flex: 1; min-width: 0; }
.lock b { display: block; font-size: 14px; }
.lock .sub { font-size: 12px; }
.lock .tag { font-size: 11px; font-weight: 700; color: var(--accent-dark); white-space: nowrap; }

/* The persistent "Get the full app" bar. */
.appbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--card);
  max-width: var(--phone, 480px); margin: 0 auto; /* the phone column on a laptop too */
  border-top: 1px solid var(--accent-mid); padding-bottom: env(safe-area-inset-bottom); }
.appbar .in { max-width: var(--phone, 480px); margin: 0 auto; padding: 10px var(--gutter); display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.appbar .in > div:first-child { min-width: 0; }
.appbar b { display: block; font-size: 14px; }
.appbar span { display: block; font-size: 12px; color: var(--text-sec); }
.appbar-links { display: flex; gap: 8px; flex: 0 0 auto; }
.appbar-links .btn { width: auto; min-height: 40px; padding: 8px 14px; font-size: 13px; margin: 0; }
body.has-appbar.bar-on .site-footer { padding-bottom: 76px; }

/* Approve page. */
.who-card { text-align: center; margin-top: 16px; }
.who-card .ph .match { color: var(--success); font-weight: 600; }
.who-card .avatar { margin: 0 auto 10px; width: 96px; height: 96px; font-size: 36px; }
.who-card .nm { font-size: 22px; font-weight: 800; overflow-wrap: anywhere; }
.who-card .meta { color: var(--text-sec); font-size: 14px; margin-top: 4px; }
.who-card .ph { font-family: inherit; font-variant-numeric: tabular-nums; font-size: 18px; font-weight: 700; margin-top: 8px; letter-spacing: 1px; }
.answer { margin-top: 16px; }

/* The code box on /me. */
#codeForm .btn { margin-top: 14px; }
