/* ===========================================================
   MANAGE & VERIFY AT SCALE (manage.html)
   All classes prefixed mg- to avoid collisions.
   =========================================================== */

/* --- hero --- */
.mg-head { padding: clamp(40px, 6vw, 76px) 0 clamp(20px, 3vw, 32px); text-align: center; }
.mg-head h1 { font-size: clamp(30px, 4.4vw, 50px); letter-spacing: -0.03em; margin: 14px auto 0; max-width: 20ch; }
.mg-lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--text); max-width: 62ch; margin: 16px auto 0; line-height: 1.55; }

/* --- shared block scaffolding --- */
.mg-block { padding: clamp(48px, 7vw, 88px) 0; }
.mg-block + .mg-block { border-top: 1px solid var(--line); }
.mg-block-head { max-width: 640px; margin-bottom: 32px; }
.mg-block-head .mg-step { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-strong); display: inline-flex; align-items: center; gap: 10px; }
.mg-block-head .mg-step::before { content: ""; width: 26px; height: 2px; background: var(--accent); display: inline-block; }
.mg-block-head h2 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.025em; margin-top: 14px; }
.mg-block-desc { font-size: clamp(16px, 1.3vw, 18px); color: var(--text); margin-top: 14px; max-width: 56ch; line-height: 1.55; }

/* --- 1 · code status card --- */
.mg-code-card { display: flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; max-width: 720px; }
.mg-code-left { flex: 1; padding: 26px 28px; display: flex; flex-direction: column; gap: 18px; }
.mg-code-row { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.mg-code-label { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mg-code-val { font-size: 19px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.mg-seats { display: flex; gap: 22px; flex-wrap: wrap; }
.mg-seat-item { display: flex; flex-direction: column; gap: 2px; }
.mg-seat-num { font-family: var(--font-head); font-weight: 800; font-size: 28px; color: var(--ink); letter-spacing: -0.02em; line-height: 1; }
.mg-seat-num.accent { color: var(--accent-strong); }
.mg-seat-k { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.mg-seat-bar-wrap { width: 100%; max-width: 340px; }
.mg-seat-bar { height: 8px; border-radius: 999px; background: var(--bg-soft-2); position: relative; overflow: hidden; }
.mg-seat-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--accent); }
.mg-code-right { width: 200px; background: var(--bg-soft); border-left: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 26px 22px; }
.mg-invite-btn { width: 100%; }

/* --- 2 · team dashboard table --- */
.mg-sample-tag { display: inline-block; margin-bottom: 16px; }
.mg-table-wrap { overflow-x: auto; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); }
.mg-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 820px; }
.mg-table thead th { text-align: left; padding: 14px 16px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--bg-soft); border-bottom: 2px solid var(--line-strong); white-space: nowrap; }
.mg-table thead th.mg-th-dim { text-align: center; min-width: 58px; }
.mg-table tbody td { padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: middle; }
.mg-table tbody tr:last-child td { border-bottom: none; }
.mg-table tbody td.mg-td-dim { text-align: center; font-family: var(--mono); font-size: 13.5px; font-weight: 600; }
.mg-table tbody td.mg-td-dim.empty { color: var(--faint); }
.mg-table .mg-member-name { font-weight: 600; }
.mg-status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.mg-status-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.mg-status-dot.completed { background: var(--ok); }
.mg-status-dot.progress { background: #d4930d; }
.mg-status-dot.notstarted { background: var(--faint); }
.mg-td-level { font-weight: 600; color: var(--accent-strong); white-space: nowrap; }
.mg-td-overall { font-family: var(--mono); font-weight: 700; font-size: 15px; }

/* --- 3 · cohort radar --- */
.mg-cohort-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.mg-cohort-copy { display: flex; flex-direction: column; gap: 14px; }
.mg-cohort-stats { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; border-top: 1px solid var(--line); }
.mg-cs-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mg-cs-dim { display: flex; align-items: center; gap: 10px; }
.mg-cs-n { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--accent-strong); width: 24px; }
.mg-cs-name { font-size: 14.5px; color: var(--ink); font-weight: 600; }
.mg-cs-val { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--ink); }
.mg-cohort-figure { display: flex; flex-direction: column; align-items: center; }
.mg-cohort-figure .hex-figure { max-width: 400px; width: 100%; }

/* --- 4 · verify your own people --- */
.mg-verify-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.mg-verify-demo { border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; }
.mg-vd-top { background: var(--bg-soft); padding: 16px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.mg-vd-top-title { font-size: 13px; font-weight: 700; color: var(--ink); }
.mg-vd-rows { padding: 4px 0; }
.mg-vd-row { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 13px 22px; border-bottom: 1px solid var(--line); }
.mg-vd-row:last-child { border-bottom: none; }
.mg-vd-name { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.mg-vd-level { font-size: 13px; color: var(--muted); }
.mg-vd-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.mg-vd-badge.ok { color: #1f7a45; background: color-mix(in oklab, #1f9d57, #fff 86%); }
.mg-vd-badge svg { width: 13px; height: 13px; }
.mg-public-note { margin-top: 18px; font-size: 14px; color: var(--muted); line-height: 1.55; }
.mg-public-note a { color: var(--accent-strong); font-weight: 600; }

/* --- bottom CTA --- */
.mg-cta { background: var(--bg-ink); color: #aeb7c6; text-align: center; padding: clamp(56px, 8vw, 100px) 0; }
.mg-cta h2 { color: #fff; font-size: clamp(28px, 3.8vw, 46px); letter-spacing: -0.03em; max-width: 20ch; margin: 0 auto; }
.mg-cta p { margin: 16px auto 0; font-size: 17px; color: #9aa3b1; max-width: 48ch; }
.mg-cta-actions { margin-top: 32px; display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; }
.mg-cta .btn-outline { color: #fff; border-color: rgba(255,255,255,.28); }
.mg-cta .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.mg-cta-note { margin-top: 20px; font-size: 13px; color: #6f7a8c; font-style: italic; }

/* --- responsive --- */
@media (max-width: 900px) {
  .mg-code-card { flex-direction: column; }
  .mg-code-right { width: 100%; border-left: none; border-top: 1px solid var(--line); flex-direction: row; justify-content: flex-start; padding: 18px 28px; }
  .mg-cohort-grid { grid-template-columns: 1fr; }
  .mg-cohort-figure { order: -1; }
  .mg-verify-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .mg-seats { gap: 16px; }
  .mg-seat-num { font-size: 24px; }
}
