/* ── Money Magnets · brand kit v3 ────────────────────────────────────
   Three colors and nothing else: ink and lime come straight off the logo,
   navy is the only addition. Every grey, rule and wash below is one of
   those three at reduced alpha — there is no fourth hue.

   The two hard rules from the kit:
     · ink type on lime, never white — and never lime type on a light ground,
       it only reaches 2.1:1
     · white type on navy

   Legacy names (--green, --gold, --gold-bright…) are kept as aliases so the
   rest of this file and the portal keep working. They are mapped by ROLE, not
   by hue: --gold was the accent on light grounds, so it is navy;
   --gold-bright was the accent on dark grounds, so it is lime. */

:root {
  /* the three */
  --ink:  #1A1A1A;
  --lime: #89C32C;
  --navy: #1F3A6E;

  /* derived — ink and the accents at strength, not new colors */
  --paper:      #FFFFFF;
  --wash:       rgba(26, 26, 26, 0.03);
  --line:       rgba(26, 26, 26, 0.14);
  --line-strong:rgba(26, 26, 26, 0.24);
  --ink-soft:   rgba(26, 26, 26, 0.78);
  --ink-faint:  rgba(26, 26, 26, 0.66);
  --lime-wash:  rgba(137, 195, 44, 0.16);
  --navy-wash:  rgba(31, 58, 110, 0.10);

  /* role aliases the existing rules still reference */
  --bg:          #FFFFFF;
  --card:        #FFFFFF;
  --green:       var(--ink);     /* dark grounds and structure */
  --green-soft:  var(--navy);    /* the interactive/secondary dark */
  --gold:        var(--navy);    /* accent on a light ground — must be readable */
  --gold-bright: var(--lime);    /* accent on a dark ground */

  --shadow:      0 1px 2px rgba(26, 26, 26, 0.05), 0 4px 14px rgba(26, 26, 26, 0.06);
  --shadow-lift: 0 2px 4px rgba(26, 26, 26, 0.06), 0 10px 28px rgba(26, 26, 26, 0.10);
  --radius: 14px;

  /* Archivo is a grotesk, not a serif — the old --serif name would lie, so
     the display face is --display now and --serif is kept pointing at it. */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body:    "Karla", "Helvetica Neue", Arial, sans-serif;
  --serif: var(--display);
  --sans:  var(--body);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ── Hero ─────────────────────────────────────────────────────────── */

.hero {
  background:
    radial-gradient(1100px 420px at 50% -160px, rgba(137, 195, 44, 0.16), transparent 70%),
    var(--green);
  color: #FFFFFF;
  padding: 56px 24px 88px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-inner { max-width: 760px; margin: 0 auto; position: relative; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.badge-mark {
  width: 56px;
  height: auto;
  display: block;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(44px, 8vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: #FFFFFF;
}

.hero-sub {
  margin-top: 16px;
  font-size: clamp(15px, 2.2vw, 17px);
  color: rgba(255, 255, 255, 0.78);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub #member-total { color: var(--gold-bright); font-weight: 600; }

/* ── Group chooser (homepage) ─────────────────────────────────────── */

.chooser {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 860px;
  margin: -34px auto 0;
  position: relative;
  z-index: 1;
}

.group-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px 28px 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.group-card:hover,
.group-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: var(--line-strong);
}

.group-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.group-day {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.group-name {
  font-family: var(--display);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.15;
  margin-top: 8px;
  color: var(--green);
}

.group-sub {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.group-count {
  margin-top: 16px;
  padding: 5px 13px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.group-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--green-soft);
}

.group-go svg {
  width: 16px;
  height: 16px;
  transition: transform 0.18s ease;
}

.group-card:hover .group-go svg { transform: translateX(3px); }

.chooser-note {
  max-width: 640px;
  margin: 30px auto 0;
  text-align: center;
  font-size: 14px;
  color: var(--ink-faint);
}

/* ── Search ───────────────────────────────────────────────────────── */

.search-shell {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(var(--bg) 78%, rgba(255, 255, 255, 0));
  padding: 0 24px 10px;
}

.search-wrap {
  max-width: 680px;
  margin: -30px auto 0;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--ink-faint);
  pointer-events: none;
}

#search {
  width: 100%;
  height: 60px;
  padding: 0 56px;
  font-family: var(--body);
  font-size: 16px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: var(--shadow-lift);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

#search::placeholder { color: var(--ink-faint); }

#search:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(31, 58, 110, 0.18), var(--shadow-lift);
}

#search::-webkit-search-cancel-button { display: none; }

.clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--bg);
  color: var(--ink-soft);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.clear-btn:hover { background: var(--line); color: var(--ink); }
.clear-btn svg { width: 16px; height: 16px; }

.result-count {
  max-width: 680px;
  margin: 10px auto 0;
  text-align: center;
  font-size: 13px;
  color: var(--ink-faint);
  min-height: 20px;
}

.result-count strong { color: var(--gold); font-weight: 600; }

/* ── Grid & Cards ─────────────────────────────────────────────────── */

main { max-width: 1180px; margin: 0 auto; padding: 22px 24px 80px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  border-color: var(--line-strong);
}

.card-head { display: flex; gap: 14px; align-items: flex-start; }

.logo {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  color: #FFFFFF;
  background: var(--green);
  overflow: hidden;
  border: 1px solid var(--line);
}

.logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 6px; }
.logo img.photo { object-fit: cover; padding: 0; border-radius: 50%; }
.logo.has-img, .logo.has-photo { background: #fff; }
.logo.has-photo { border-radius: 50%; }

.card-title { min-width: 0; }

.biz-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.22;
  color: var(--ink);
}

.chip {
  display: inline-block;
  margin-top: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(31, 58, 110, 0.09);
  border: 1px solid rgba(31, 58, 110, 0.22);
  padding: 3px 10px;
  border-radius: 999px;
}

.blurb { font-size: 13.5px; color: var(--ink-soft); }

.rows { display: flex; flex-direction: column; border-top: 1px solid var(--line); }

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  min-height: 44px;
}

.row-ico { flex: none; width: 16px; height: 16px; color: var(--ink-faint); }

.row-val {
  flex: 1;
  min-width: 0;
  text-align: left;
  font-family: var(--body);
  font-size: 14px;
  color: var(--ink);
  background: none;
  border: none;
  padding: 4px 6px;
  margin: 0 -6px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s ease, color 0.15s ease;
}

.row-val:hover { background: rgba(31, 58, 110, 0.08); color: var(--gold); }
.row-val:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.row-val.copied { color: var(--green-soft); background: rgba(26, 26, 26, 0.07); }
.row-copy { text-decoration: none; }

.row-open {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: var(--ink-faint);
  transition: background 0.15s ease, color 0.15s ease;
}

.row-open:hover { background: var(--bg); color: var(--green-soft); }
.row-open svg { width: 15px; height: 15px; }

.member { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-soft); }
.member .row-ico { color: var(--gold); }
.member strong { color: var(--ink); font-weight: 600; }

.card-actions { margin-top: auto; display: flex; gap: 10px; }

.btn-copy {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  font-family: var(--body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--green);
  background: transparent;
  border: 1.5px solid var(--green);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-copy svg { width: 15px; height: 15px; }

.btn-copy:hover { background: var(--navy); color: #FFFFFF; }

.btn-copy.copied {
  background: var(--green);
  border-color: var(--green);
  color: var(--gold-bright);
}

/* ── Empty state ──────────────────────────────────────────────────── */

.empty {
  text-align: center;
  padding: 70px 24px;
  color: var(--ink-soft);
}

.empty svg { width: 44px; height: 44px; color: var(--line-strong); margin-bottom: 14px; }
.empty-title { font-family: var(--display); font-size: 21px; font-weight: 700; color: var(--ink); }
.empty-sub { margin-top: 6px; font-size: 14px; }

.btn-ghost {
  margin-top: 18px;
  padding: 10px 22px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  background: none;
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.btn-ghost:hover { background: var(--gold); color: #fff; }

/* ── Toast ────────────────────────────────────────────────────────── */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 100;
  max-width: calc(100vw - 48px);
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 16px; height: 16px; color: var(--gold-bright); flex: none; }

/* ── Footer ───────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--line);
  padding: 36px 24px 44px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
}

footer strong { color: var(--green); }
.foot-sub { margin-top: 6px; font-size: 12.5px; color: var(--ink-faint); font-style: italic; }

/* ── Responsive & a11y ────────────────────────────────────────────── */

@media (max-width: 420px) {
  .hero { padding: 44px 18px 80px; }
  main { padding: 22px 14px 60px; }
  .search-shell { padding: 0 14px 10px; }
  .grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ── Get the app ──────────────────────────────────────────────────── */

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding: 11px 22px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  background: var(--gold-bright);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}

.hero-cta:hover { background: #9BD63A; transform: translateY(-1px); }
.hero-cta svg { width: 15px; height: 15px; }

.appband {
  background:
    radial-gradient(900px 340px at 50% -140px, rgba(137, 195, 44, 0.14), transparent 70%),
    var(--green);
  color: #FFFFFF;
  padding: 60px 24px 64px;
  scroll-margin-top: 90px;
}

.appband-inner { max-width: 760px; margin: 0 auto; text-align: center; }

.appband h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.14;
  color: #FFFFFF;
  margin-top: 14px;
}

.appband p {
  margin: 14px auto 0;
  max-width: 560px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
}

.app-features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 26px 0 6px;
}

.app-features li {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--gold-bright);
  border: 1px solid rgba(137, 195, 44, 0.32);
  background: rgba(137, 195, 44, 0.08);
  border-radius: 999px;
  padding: 6px 14px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 208px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  text-decoration: none;
  text-align: left;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.badge:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(137, 195, 44, 0.6);
  transform: translateY(-1px);
}

.badge svg { width: 24px; height: 24px; flex: none; fill: currentColor; }
.badge-lines { display: flex; flex-direction: column; line-height: 1.25; }
.badge-small { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-bright); }
.badge-big { font-size: 15px; font-weight: 600; }

.badge.is-soon {
  opacity: 0.62;
  cursor: default;
  pointer-events: none;
}

.appband-note {
  margin-top: 22px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
}

.appband-note a { color: var(--gold-bright); }

/* ── Footer nav ───────────────────────────────────────────────────── */

.foot-nav {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  font-size: 13px;
}

.foot-nav a { color: var(--gold); text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }

/* ── Legal pages ──────────────────────────────────────────────────── */

.legal-head {
  background: var(--green);
  color: #FFFFFF;
  padding: 34px 24px 40px;
  text-align: center;
}

.legal-head .back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gold-bright);
  text-decoration: none;
  margin-bottom: 22px;
}

.legal-head .back:hover { text-decoration: underline; }
.legal-head .back svg { width: 14px; height: 14px; }

.legal-head h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 5.5vw, 44px);
  line-height: 1.1;
  color: #FFFFFF;
}

.legal-head .updated {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 44px 24px 80px;
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--ink-soft);
}

.legal h2 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin: 38px 0 12px;
}

.legal h2:first-child { margin-top: 0; }

.legal h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 22px 0 6px;
}

.legal p { margin-bottom: 14px; }
.legal ul { margin: 0 0 16px 20px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--gold); }
.legal strong { color: var(--ink); font-weight: 600; }

.legal .lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  padding-bottom: 6px;
}

.legal .callout {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 22px 0;
  font-size: 14.5px;
}

.legal .callout p:last-child { margin-bottom: 0; }

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 6px 0 20px;
  font-size: 14.5px;
}

.legal th, .legal td {
  text-align: left;
  vertical-align: top;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
}

.legal th {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  border-bottom-color: var(--line-strong);
}

.legal td:first-child { color: var(--ink); font-weight: 600; width: 34%; }

.legal .toc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 34px;
  box-shadow: var(--shadow);
}

.legal .toc ol { margin: 0; padding-left: 20px; font-size: 14.5px; }
.legal .toc li { margin-bottom: 5px; }

@media (max-width: 560px) {
  .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; }
  .legal thead { display: none; }
  .legal tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .legal td { border: none; padding: 2px 0; }
  .legal td:first-child { width: auto; }
}

/* ── Header login button (public directory) ───────────────────────── */

.hero-top {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Back to the group chooser. Quieter than the login pill beside it — it is a
   way out, not the thing you came for. */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn-back:hover {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.btn-back svg { width: 14px; height: 14px; }

.btn-login {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
  text-decoration: none;
  border: 1px solid rgba(137, 195, 44, 0.5);
  border-radius: 999px;
  background: rgba(137, 195, 44, 0.1);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.btn-login:hover { background: rgba(137, 195, 44, 0.24); border-color: var(--gold-bright); }
.btn-login svg { width: 14px; height: 14px; }

.foot-admin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.foot-admin:hover { color: var(--green); border-color: var(--green); background: #fff; }
.foot-admin svg { width: 13px; height: 13px; }

/* ── Sign-in ──────────────────────────────────────────────────────── */

.signin-body {
  background:
    radial-gradient(900px 500px at 50% -200px, rgba(137, 195, 44, 0.16), transparent 70%),
    var(--green);
  min-height: 100vh;
}

.signin {
  max-width: 420px;
  margin: 0 auto;
  padding: 40px 22px 60px;
  text-align: center;
}

.signin-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  margin-bottom: 28px;
}

.signin-back:hover { color: var(--gold-bright); }
.signin-back svg { width: 14px; height: 14px; }

.signin-card {
  background: var(--card);
  border-radius: 18px;
  padding: 34px 28px 28px;
  box-shadow: var(--shadow-lift);
  text-align: left;
}

.signin-mark { display: block; width: 58px; height: auto; margin: 0 auto 16px; }

.signin-card h1 {
  font-family: var(--display);
  font-size: 27px;
  font-weight: 700;
  text-align: center;
  color: var(--ink);
}

.signin-sub {
  margin: 7px 0 24px;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-faint);
}

.signin-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-faint);
}

.signin-note a { color: var(--gold); }

.signin-foot { margin-top: 22px; font-size: 12.5px; color: rgba(255, 255, 255, 0.55); }
.signin-foot a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.signin-foot a:hover { color: var(--gold-bright); }

/* ── Forms ────────────────────────────────────────────────────────── */

.field { display: block; margin-bottom: 16px; }

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.field-label .opt { font-weight: 400; color: var(--ink-faint); letter-spacing: 0; }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 11px 13px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  -webkit-appearance: none;
  appearance: none;
}

.field textarea { resize: vertical; line-height: 1.5; }
.field select { background-image: none; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(31, 58, 110, 0.16);
}

.field-help { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-faint); }
.field-short { max-width: 220px; }

.forgot { margin: -8px 0 16px; text-align: right; font-size: 13px; }
.forgot a { color: var(--navy); font-weight: 600; text-decoration: none; }
.forgot a:hover { text-decoration: underline; }
.forgot-again { margin: 16px 0 0; text-align: center; }
#code { font-size: 26px; font-weight: 700; letter-spacing: 0.4em; text-align: center; }

.field-secret { position: relative; display: block; }
.field-secret input { padding-right: 46px; }

.eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: var(--ink-faint);
  cursor: pointer;
  border-radius: 8px;
}

.eye:hover { background: var(--bg); color: var(--ink); }
.eye.on { color: var(--gold); }
.eye svg { width: 18px; height: 18px; }

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.check input { margin-top: 2px; width: 17px; height: 17px; accent-color: var(--green); flex: none; }

.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

.form-error, .form-ok {
  font-size: 13px;
  line-height: 1.5;
  border-radius: 9px;
  padding: 10px 13px;
  margin-bottom: 14px;
}

.form-error { color: #8C2F2F; background: rgba(214, 69, 69, 0.09); border: 1px solid rgba(214, 69, 69, 0.28); }
.form-ok { color: var(--green); background: rgba(26, 26, 26, 0.07); border: 1px solid rgba(26, 26, 26, 0.2); }

.btn-solid, .btn-outline, .btn-quiet {
  font-family: var(--body);
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 10px;
  padding: 12px 22px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-solid { width: 100%; color: #FFFFFF; background: var(--navy); }
.btn-solid:hover { background: #162B54; }
.btn-solid:disabled { opacity: 0.6; cursor: default; }

.btn-outline { color: var(--navy); background: none; border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #FFFFFF; }

.btn-quiet { color: var(--ink-soft); background: none; border-color: var(--line-strong); padding: 8px 15px; font-size: 13px; }
.btn-quiet:hover { color: var(--navy); border-color: var(--navy); }

/* ── Portal ───────────────────────────────────────────────────────── */

.portal-body { background: var(--bg); }

.portal-loading {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--ink-faint);
  font-size: 14px;
}

.portal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 22px;
  background: var(--green);
  color: #FFFFFF;
}

.portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #FFFFFF;
  text-decoration: none;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
}

.portal-brand img { width: 30px; height: auto; display: block; }

.portal-who { display: flex; align-items: center; gap: 12px; font-size: 13px; color: rgba(255, 255, 255, 0.8); }
.portal-who .btn-quiet { color: rgba(255, 255, 255, 0.85); border-color: rgba(255, 255, 255, 0.35); }
.portal-who .btn-quiet:hover { color: var(--green); background: var(--gold-bright); border-color: var(--gold-bright); }

/* The tab strip stays on ink rather than picking up the navy, because
   the active tab is lime and the kit is explicit that the two accents never
   share a block — they meet on the ink. The hairline is white at 10% over
   ink, which is a derived value, not a fourth colour. */
.portal-tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 0 12px;
  scrollbar-width: none;
}

.portal-tabs::-webkit-scrollbar { display: none; }

.portal-tabs a {
  flex: none;
  padding: 13px 15px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.portal-tabs a:hover { color: #FFFFFF; }
.portal-tabs a.on { color: var(--gold-bright); border-bottom-color: var(--gold-bright); }

.portal-main { max-width: 980px; margin: 0 auto; padding: 30px 22px 70px; }

.view-head { margin-bottom: 20px; }

.view-head h1 {
  font-family: var(--display);
  font-size: clamp(26px, 4.5vw, 34px);
  font-weight: 700;
  color: var(--ink);
}

.view-sub { margin-top: 5px; font-size: 14.5px; color: var(--ink-soft); }

.portal-search { margin-bottom: 8px; }

.portal-search input {
  width: 100%;
  height: 48px;
  padding: 0 18px;
  font-family: var(--body);
  font-size: 15px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  outline: none;
}

.portal-search input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(31, 58, 110, 0.16); }

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.panel-title { font-family: var(--display); font-size: 19px; font-weight: 700; margin-bottom: 16px; color: var(--ink); }

.legal-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13.5px; }
.legal-links a { color: var(--gold); text-decoration: none; }
.legal-links a:hover { text-decoration: underline; }

.card.is-off { opacity: 0.55; }

.tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(31, 58, 110, 0.35);
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 4px;
  vertical-align: 1px;
}

.tag-off { color: var(--ink-faint); border-color: var(--line-strong); }
.tag-wait { color: var(--navy); border-color: rgba(31, 58, 110, 0.35); background: rgba(31, 58, 110, 0.08); }

.row-val { text-decoration: none; display: block; }

/* Segmented control */
/* ── Schedule ─────────────────────────────────────────────────────── */

.cal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.cal-month {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  min-width: 190px;
}

.cal-add { width: auto; margin-left: auto; padding: 9px 18px; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.cal-dow {
  background: var(--wash);
  padding: 8px 6px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.cal-cell {
  background: #fff;
  min-height: 96px;
  padding: 6px 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: background 0.14s ease;
}

.cal-cell:hover { background: var(--navy-wash); }
.cal-cell:focus-visible { outline: 2px solid var(--navy); outline-offset: -2px; }
.cal-cell.is-empty { background: var(--wash); cursor: default; }
.cal-cell.is-empty:hover { background: var(--wash); }

.cal-num { font-size: 12px; font-weight: 700; color: var(--ink-faint); }
.cal-cell.is-today .cal-num {
  color: #fff;
  background: var(--navy);
  border-radius: 999px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* A meeting is the group's business, so the pill is lime with ink on it. */
.cal-pill {
  font-family: var(--body);
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  background: var(--lime);
  border: 0;
  border-radius: 6px;
  padding: 4px 6px;
  cursor: pointer;
}

.cal-pill.is-off {
  background: var(--wash);
  color: var(--ink-faint);
  text-decoration: line-through;
}

.speakers { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }

.speaker-row { display: flex; align-items: center; gap: 8px; }
.speaker-row .speaker-pick { flex: 1; }
.speaker-row .chip-btn { flex: none; line-height: 1; padding: 8px 12px; }

.cal-next-title { margin: 30px 0 12px; }

@media (max-width: 640px) {
  /* A seven-column month is unreadable on a phone, so the grid becomes the
     list that was underneath it anyway. */
  .cal-grid { display: none; }
  .cal-next-title { margin-top: 18px; }
  .cal-add { margin-left: 0; width: 100%; }
}

/* ── Reports ──────────────────────────────────────────────────────── */

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.stat-val {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--green);
}

.stat-lab {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* A wide table scrolls inside its own box rather than the page. */
.table-wrap { overflow-x: auto; }

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  white-space: nowrap;
}

.report-table th,
.report-table td {
  padding: 9px 12px;
  text-align: right;
  border-bottom: 1px solid var(--line);
}

.report-table .cell-text { text-align: left; }
.report-table th:first-child,
.report-table td:first-child {
  text-align: left;
  white-space: normal;
  min-width: 160px;
}

.report-table th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.report-table tbody tr:last-child td { border-bottom: 0; }

.seg { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

.seg button {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.seg button:hover { border-color: var(--gold); color: var(--gold); }
.seg button.on { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }

/* Count on the left, First name / Company toggle on the right (portal directory) */
.dir-order { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.dir-order .result-count { margin: 0; text-align: left; max-width: none; }
.dir-order .seg { margin-bottom: 0; }
.dir-order .seg button { padding: 6px 13px; font-size: 12.5px; }

.muted-line { font-size: 14px; color: var(--ink-faint); padding: 18px 2px; }

/* Activity feed */
.feed-row {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 9px;
  box-shadow: var(--shadow);
}

.feed-mark {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--green);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
}

.feed-body { flex: 1; min-width: 0; font-size: 14px; line-height: 1.5; }
.feed-note { margin-top: 4px; font-size: 13px; color: var(--ink-soft); font-style: italic; }
.cell-sub { display: block; font-size: 12px; color: var(--ink-soft); font-weight: 400; }
.feed-contact { margin-top: 2px; font-size: 13px; }
.feed-contact a { color: var(--green); text-decoration: none; font-weight: 600; }
.feed-contact a:hover { text-decoration: underline; }
.feed-contact .dot { color: var(--ink-faint); padding: 0 7px; }
.field-group-label {
  margin: 4px 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.feed-when { flex: none; font-size: 12px; color: var(--ink-faint); padding-top: 2px; }

/* Leaderboard */
.board-total {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}

.board-row {
  display: grid;
  grid-template-columns: 34px 1fr 54px 54px;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px 15px;
  margin-bottom: 7px;
  font-size: 14.5px;
}

.board-row.is-me { border-color: var(--gold); background: rgba(137, 195, 44, 0.07); }
.board-rank { font-family: var(--display); font-weight: 700; color: var(--gold); }
.board-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.board-given { text-align: right; font-weight: 700; color: var(--green); }
.board-got { text-align: right; color: var(--ink-faint); font-size: 13px; }

/* Admin rows */
.adder summary {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--green);
  cursor: pointer;
}

.adder[open] summary { margin-bottom: 18px; }

.admin-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  margin-bottom: 9px;
  box-shadow: var(--shadow);
}

.admin-row.is-off { opacity: 0.6; }

.admin-mark {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
}

.admin-who { flex: 1; min-width: 190px; font-size: 14.5px; }
.admin-who span:last-child { display: block; font-size: 12.5px; color: var(--ink-faint); margin-top: 2px; }
.admin-who .admin-meta { display: block; font-size: 12.5px; color: var(--ink-faint); margin-top: 2px; }
.admin-who .admin-code {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--ink);
}
.admin-acts { display: flex; flex-wrap: wrap; gap: 6px; }

.chip-btn {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.chip-btn:hover { color: var(--navy); border-color: var(--navy); background: #fff; }
.chip-btn.is-danger:hover { color: #fff; background: #B33B3B; border-color: #B33B3B; }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(13, 31, 25, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
}

.modal-card {
  background: #fff;
  border-radius: 16px;
  padding: 26px 24px 22px;
  width: 100%;
  max-width: 430px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lift);
}

.modal-card h2 { font-family: var(--display); font-size: 21px; font-weight: 700; margin-bottom: 12px; color: var(--ink); }
.modal-card p { font-size: 14px; line-height: 1.55; margin-bottom: 14px; color: var(--ink-soft); }
.modal-card .muted-line { padding: 0; font-size: 12.5px; }

.cred {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  margin-bottom: 9px;
}

.cred-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); width: 100%; }
.cred-value { flex: 1; font-size: 15px; font-weight: 700; color: var(--ink); word-break: break-all; }

.modal-acts { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.modal-acts .btn-solid { width: auto; }

.portal-foot {
  border-top: 1px solid var(--line);
  padding: 26px 22px 40px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-faint);
}

.portal-foot a { color: var(--gold); text-decoration: none; }
.portal-foot a:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .two-up { grid-template-columns: 1fr; }
  .hero-top { top: 12px; right: 12px; }
  .portal-main { padding: 24px 14px 60px; }
  .admin-acts { width: 100%; }
}

/* 1-to-1s */
.oto-acts { display: flex; gap: 10px; margin: 6px 0 18px; }
.oto-acts .btn-outline { width: auto; }
.oto-row { cursor: pointer; align-items: center; }
.oto-row:hover { border-color: var(--navy); }
.oto-meter {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-soft);
  background: conic-gradient(var(--navy) calc(var(--done) * 1%), var(--line) 0);
}
.oto-meter::before {
  content: attr(data-label);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
}
.oto-meter.is-done { background: var(--green); }
.oto-meter.is-done::before { content: "\2713"; color: var(--green); }
.oto-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.oto-head .feed-mark { width: 44px; height: 44px; font-size: 15px; }
.oto-head h3 { font-family: var(--display); font-size: 18px; margin: 0; }
.oto-head p { margin: 0; font-size: 13px; color: var(--ink-faint); }
.sheet-section { margin: 18px 0 6px; }
.sheet-section h4 {
  font-family: var(--display);
  font-size: 15px;
  color: var(--navy);
  margin: 0 0 2px;
}
.sheet-section .lead { font-size: 12.5px; font-style: italic; color: var(--ink-faint); margin: 0 0 10px; }
.sheet-read dt { font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-faint); margin-top: 10px; }
.sheet-read dd { margin: 2px 0 0; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; }
.oto-history { margin-top: 10px; }
.oto-history .feed-row { padding: 11px 14px; }
.oto-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.modal-card.is-wide { max-width: 720px; }

/* ── Photo + logo on My listing ───────────────────────────────────── */

.images { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.image-slot { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.image-slot .field-label { align-self: flex-start; }
.image-slot .field-help { margin-top: 0; }
.image-preview {
  width: 96px; height: 96px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  font-family: var(--display); font-weight: 700; font-size: 30px; color: var(--navy);
}
.image-preview.is-round { border-radius: 50%; }
.image-preview img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.image-preview.is-round img { object-fit: cover; padding: 0; }
.image-preview .placeholder { color: var(--ink-faint); font-size: 34px; }
.image-preview.is-busy { opacity: 0.45; }
.image-acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: center; }
.btn-file { position: relative; overflow: hidden; padding: 8px 15px; font-size: 13px; cursor: pointer; }
.btn-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.btn-text { background: none; border: none; font-family: var(--body); font-size: 13px; cursor: pointer; padding: 8px 6px; }
.btn-danger { color: #C2410C; }
.btn-danger:hover { text-decoration: underline; }
@media (max-width: 520px) { .images { grid-template-columns: 1fr; } }

/* ── Setup codes (admin) ──────────────────────────────────────────── */

.codes-acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.codes-acts .btn-outline, .codes-acts .btn-quiet { width: auto; padding: 9px 16px; font-size: 13.5px; }
.codes-acts .btn-outline:disabled { opacity: 0.5; cursor: default; background: none; color: var(--navy); }
.codes-all { margin: 0 0 0 auto; font-size: 13px; }
.codes-table { border-top: 1px solid var(--line); }
.code-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.code-who { min-width: 0; display: flex; flex-direction: column; }
.code-who strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-who span { font-size: 12.5px; color: var(--ink-faint); }
.code-who em.ok { font-style: normal; color: var(--green-soft, #4a7a12); font-weight: 600; }
.code-val { font: 700 15px ui-monospace, Menlo, monospace; letter-spacing: 1.5px; color: var(--navy); background: rgba(31,58,110,.07); border: 1px dashed rgba(31,58,110,.35); border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.code-val.copied { background: var(--navy); color: #fff; }
.code-none { font-size: 12.5px; color: var(--ink-faint); }
@media (max-width: 560px) { .codes-all { margin-left: 0; } .code-row { grid-template-columns: 1fr auto; } .code-row .btn-text { grid-column: 1 / -1; justify-self: start; padding-left: 0; } }
