/*
 * ALS Memberships — the showcase blocks, with motion.
 *
 * Layouts follow the approved design: a dashboard inside a laptop, a real map
 * with an agent list, a referral network with professional portraits, and a
 * phone plus browser showing the business card and a property site.
 *
 * The earlier version of these blocks was an empty navy box with a small circle
 * in it. An agent judging the product is judging it on appearance, so an empty
 * box is worse than no box: it advertises the feature and then shows nothing.
 *
 * Motion is present but restrained. Anything that moves forever is tiring to
 * look at, so looping motion is limited to the network pulses and the map pins,
 * and everything else is a one-shot reveal or a hover response. The whole file
 * collapses under prefers-reduced-motion.
 */

/* ============================================================== showcase */

/* The shared .m-art rule in memberships.css adds a border, a background and a
   min-height for the old placeholder boxes. The rebuilt blocks carry their own
   chrome, so those are cleared here to stop a border being drawn around a
   laptop or a map that already has one. */
.m-art--laptop,
.m-art--mapwrap,
.m-art--net,
.m-art--tools2 {
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: none;
  overflow: visible;
}
.m-art--laptop { position: relative; }
.m-art--mapwrap { position: relative; }
.m-art--net { position: relative; }
.m-art--tools2 { position: relative; }

.m-art__note {
  margin: 12px 0 0;
  color: var(--m-dim);
  font-size: 10.5px;
  line-height: 1.4;
  text-align: center;
}

.m-show {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(20px, 2.6vw, 34px);
  align-items: start;
  justify-content: center;
}
@media (max-width: 900px) {
  .m-show { grid-template-columns: 1fr; justify-items: center; }
}
.m-show__col {
  display: grid;
  gap: 12px;
  justify-items: center;
  max-width: 100%;
}
.m-show__cap {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  max-width: 34ch;
  text-align: left;
  color: var(--m-muted);
  font-size: 11.5px;
  line-height: 1.5;
}
.m-show__cap .m-ic { color: var(--m-teal); font-size: 15px; margin-top: 1px; }

/* ========================================================== business card */

.mc {
  position: relative;
  width: 288px;
  flex: 0 0 auto;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(168deg, #1b52dd 0%, #1238a6 46%, #0a2270 100%);
  box-shadow:
    0 34px 66px -26px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(255, 255, 255, 0.07) inset;
  color: #fff;
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.25, 1), box-shadow 0.4s ease;
}
.mc::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 36%, rgba(255, 255, 255, 0.16) 50%, transparent 64%);
  transform: translateX(-130%);
  pointer-events: none;
}
.mc:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow:
    0 46px 78px -26px rgba(0, 0, 0, 1),
    0 0 48px -10px rgba(86, 221, 208, 0.42);
}
.mc:hover::after { animation: m-sheen 1.05s ease; }
@keyframes m-sheen { to { transform: translateX(130%); } }

.mc__top { position: relative; padding: 26px 22px 20px; text-align: center; }
.mc__glow {
  position: absolute;
  left: 50%; top: 4px;
  transform: translateX(-50%);
  width: 168px; height: 168px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(86, 221, 208, 0.36), transparent 66%);
  filter: blur(12px);
  pointer-events: none;
}
.mc__photo {
  position: relative;
  width: 108px; height: 108px;
  margin: 0 auto 14px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.85);
  background: #12306e;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.25, 1);
}
.mc:hover .mc__photo { transform: scale(1.07); }
.mc__name {
  position: relative;
  margin: 0 0 3px;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.024em;
  line-height: 1.14;
}
.mc__role {
  position: relative;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #7cf0e5;
}
.mc__brokerage {
  position: relative;
  margin: 3px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.mc__social { display: flex; justify-content: center; gap: 9px; padding: 0 22px 18px; }
.mc__social a {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.mc__social a:hover {
  background: var(--m-teal);
  color: var(--m-ink);
  transform: translateY(-3px) scale(1.08);
}

.mc__body { background: #fff; padding: 17px 22px 15px; color: #0f1b2e; }
.mc__row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 9px 0;
  border-bottom: 1px solid #eef2f7;
}
.mc__row:last-of-type { border-bottom: 0; }
.mc__row .m-ic { width: 16px; height: 16px; color: #1b52dd; margin-top: 2px; }
.mc__rowTxt { min-width: 0; }
.mc__rowTxt b {
  display: block;
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mc__rowTxt span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #8a9ab0;
}
.mc__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(86, 221, 208, 0.16);
  border: 1px solid rgba(86, 221, 208, 0.5);
  color: #0e7d72;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.mc__badge .m-ic { width: 12px; height: 12px; }

.mc__bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #0a1c52;
}
.mc__bar span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 3px 13px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}
.mc__bar span:hover { background: rgba(86, 221, 208, 0.18); color: #7cf0e5; }
.mc__bar .m-ic { width: 15px; height: 15px; }

/* ================================================= the phone and the browser */

.m-devices {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 18px;
  align-items: end;
  justify-items: center;
}
@media (max-width: 640px) { .m-devices { grid-template-columns: 1fr; } }

/* the phone */
.m-phone {
  position: relative;
  width: 168px;
  padding: 9px 9px 11px;
  border-radius: 26px;
  background: linear-gradient(160deg, #1b2740, #0a1220);
  box-shadow: 0 26px 52px -20px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.07) inset;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.25, 1);
}
.m-phone:hover { transform: translateY(-12px) rotate(-1.6deg); }
.m-phone__notch {
  width: 54px; height: 6px;
  margin: 0 auto 8px;
  border-radius: 999px;
  background: #050b16;
}
.m-phone__screen {
  position: relative;
  border-radius: 19px;
  overflow: hidden;
  background: #0a1densely;
  background: #0a1830;
  aspect-ratio: 9 / 17.5;
  display: flex;
  flex-direction: column;
}
.m-phone__card { padding: 14px 12px 12px; text-align: center; }
.m-phone__photo {
  width: 62px; height: 62px;
  margin: 0 auto 9px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--m-teal);
  background: #16273f;
}
.m-phone__name { font-size: 12.5px; font-weight: 800; color: #fff; }
.m-phone__role { font-size: 9.5px; font-weight: 600; color: var(--m-muted); }
.m-phone__qr {
  width: 62px; height: 62px;
  margin: 11px auto 0;
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, #56ddd0 0 4px, transparent 4px 8px),
    repeating-linear-gradient(0deg, #56ddd0 0 4px, transparent 4px 8px);
  opacity: 0.9;
}
.m-phone__save {
  display: block;
  margin: 11px 12px 12px;
  padding: 9px;
  border-radius: 8px;
  background: var(--m-teal);
  color: var(--m-ink);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

/* the browser window */
.m-browser {
  position: relative;
  width: 100%;
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid var(--m-line);
  background: #0a162c;
  box-shadow: 0 26px 52px -22px rgba(0, 0, 0, 0.95);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.25, 1), border-color 0.3s ease;
}
.m-browser:hover {
  transform: translateY(-8px);
  border-color: rgba(86, 221, 208, 0.4);
}
.m-browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  background: #0d1c35;
  border-bottom: 1px solid var(--m-line);
}
.m-browser__bar i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2a3f61;
}
.m-browser__bar i:first-child { background: var(--m-teal); }
.m-browser__url {
  margin-left: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #0a162c;
  color: var(--m-dim);
  font-size: 9.5px;
  font-weight: 600;
}
.m-browser__view { position: relative; aspect-ratio: 16 / 10.5; overflow: hidden; }
.m-browser__view img { width: 100%; height: 100%; object-fit: cover; }
.m-browser__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 10, 22, 0.5) 0%, transparent 34%, rgba(4, 10, 22, 0.86) 100%);
}
.m-browser__addr {
  position: absolute;
  left: 12px; bottom: 11px;
  color: #fff;
}
.m-browser__addr b {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}
.m-browser__addr span { font-size: 10px; color: rgba(255, 255, 255, 0.82); }
.m-browser__thumbs {
  position: absolute;
  right: 11px; bottom: 11px;
  display: flex;
  gap: 5px;
}
.m-browser__thumbs img {
  width: 46px; height: 34px;
  border-radius: 5px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.24);
  transition: transform 0.22s ease;
}
.m-browser:hover .m-browser__thumbs img { transform: scale(1.08); }

/* the tour tool panel beside the browser */
.m-tourpanel {
  margin-top: 12px;
  border-radius: 11px;
  border: 1px solid var(--m-line);
  background: var(--m-panel);
  overflow: hidden;
}
.m-tourpanel__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  background: linear-gradient(100deg, rgba(86, 221, 208, 0.14), transparent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.m-tourpanel__head .m-ic { color: var(--m-teal); font-size: 15px; }
.m-tourpanel ul { display: grid; gap: 1px; background: var(--m-line); }
.m-tourpanel li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  background: var(--m-panel);
  color: var(--m-text);
  font-size: 11.5px;
  font-weight: 600;
  transition: background 0.16s ease, color 0.16s ease;
}
.m-tourpanel li::before {
  content: "";
  width: 14px; height: 14px;
  flex: 0 0 auto;
  border-radius: 4px;
  border: 1px solid rgba(86, 221, 208, 0.5);
  background: rgba(86, 221, 208, 0.14);
  transition: background 0.18s ease;
}
.m-tourpanel li:hover { background: #0e1e3c; color: #fff; }
.m-tourpanel li:hover::before { background: var(--m-teal); }

/* ============================================== the property site preview */

.psx {
  width: 100%;
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid var(--m-line);
  background: #071021;
}
.psx__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: #0b1830;
  border-bottom: 1px solid var(--m-line);
}
.psx__logo {
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.psx__links {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--m-muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.psx__links i {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--m-dim);
}
.psx__hero { position: relative; }
.psx__heroImg {
  display: block;
  width: 100%;
  height: 152px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.25, 1);
}
.psx:hover .psx__heroImg { transform: scale(1.05); }
.psx__heroBody {
  position: absolute;
  inset: 0 0 auto 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 12px;
}
.psx__openHouse {
  padding: 7px 11px;
  border-radius: 8px;
  background: linear-gradient(140deg, #f0803c, #d4562a);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.9);
}
.psx__openHouse b { display: block; font-size: 10px; font-weight: 800; }
.psx__openHouse span { font-size: 7.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.94; }
.psx__addr { margin-left: auto; text-align: right; }
.psx__addr h4 {
  margin: 0;
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: -0.018em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}
.psx__addr p { margin: 1px 0 0; font-size: 8.5px; color: rgba(255, 255, 255, 0.84); }
.psx__price { font-size: 13px !important; font-weight: 800; color: #fff !important; }
.psx__facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--m-line);
}
.psx__fact {
  display: grid;
  gap: 1px;
  justify-items: center;
  padding: 8px 4px;
  background: #071021;
  text-align: center;
}
.psx__fact .m-ic { width: 14px; height: 14px; color: var(--m-teal); }
.psx__fact b { color: #fff; font-size: 11px; font-weight: 800; }
.psx__fact span {
  color: var(--m-dim);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.psx__mid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 10px;
  padding: 11px 12px;
}
@media (max-width: 520px) { .psx__mid { grid-template-columns: 1fr; } }
.psx__copy h5 {
  margin: 0 0 5px;
  color: var(--m-teal);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.psx__copy p { margin: 0 0 5px; color: var(--m-muted); font-size: 9px; line-height: 1.5; }
.psx__specs { display: grid; gap: 1px; background: var(--m-line); border-radius: 7px; overflow: hidden; align-self: start; }
.psx__specs > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 9px;
  background: #0a162c;
}
.psx__specs dt {
  color: var(--m-dim);
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.psx__specs dd { margin: 0; color: #fff; font-size: 9px; font-weight: 700; text-align: right; }
.psx__specs dd.is-yes { color: var(--m-teal); }
.psx__agent {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  background: #0a162c;
  border-top: 1px solid var(--m-line);
}
.psx__agent img {
  width: 30px; height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--m-teal);
  background: #16273f;
}
.psx__agent b { display: block; color: #fff; font-size: 10px; font-weight: 700; }
.psx__agent span { font-size: 8.5px; color: var(--m-dim); }
.psx__cta {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  margin-left: auto;
  padding: 6px 11px !important;
  border-radius: 7px !important;
  background: var(--m-teal) !important;
  color: var(--m-ink) !important;
  font-size: 9px !important;
  font-weight: 800 !important;
}
.psx__cta .m-ic { width: 12px; height: 12px; }

/* ================================================== the dashboard, laptop */

.m-laptop { position: relative; width: 100%; }
.m-laptop__screen {
  position: relative;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  border: 1px solid var(--m-line);
  border-bottom: 0;
  background: #0b1830;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.95);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.25, 1);
}
.m-laptop:hover .m-laptop__screen { transform: perspective(1400px) rotateX(3deg) translateY(-4px); }
.m-laptop__base {
  height: 13px;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, #1b2740, #0a1220);
  box-shadow: 0 14px 26px -14px rgba(0, 0, 0, 0.9);
}
.m-laptop__base::after {
  content: "";
  display: block;
  width: 88px; height: 4px;
  margin: 0 auto;
  border-radius: 0 0 6px 6px;
  background: #050b16;
}

.m-dash { display: grid; grid-template-columns: 116px minmax(0, 1fr); }
@media (max-width: 640px) { .m-dash { grid-template-columns: 92px minmax(0, 1fr); } }
.m-dash__side { background: #081428; border-right: 1px solid var(--m-line); padding: 12px 8px; }
.m-dash__brand {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.m-dash__brand i {
  width: 15px; height: 15px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--m-teal), #2f7de0);
}
.m-dash__nav { display: grid; gap: 2px; }
.m-dash__nav span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px;
  border-radius: 5px;
  color: var(--m-dim);
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease;
}
.m-dash__nav span:hover { background: rgba(86, 221, 208, 0.1); color: var(--m-text); }
.m-dash__nav span.is-on { background: rgba(86, 221, 208, 0.16); color: #fff; }
.m-dash__nav i {
  width: 10px; height: 10px;
  flex: 0 0 auto;
  border-radius: 3px;
  background: currentColor;
  opacity: 0.55;
}
.m-dash__nav span.is-on i { opacity: 1; }

.m-dash__main { padding: 12px; min-width: 0; }
.m-dash__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.m-dash__head b { color: #fff; font-size: 12px; font-weight: 800; letter-spacing: -0.015em; }
.m-dash__acct { display: flex; align-items: center; gap: 5px; }
.m-dash__acct img { width: 17px; height: 17px; border-radius: 50%; object-fit: cover; }
.m-dash__acct span { color: var(--m-dim); font-size: 8px; font-weight: 600; }

.m-dash__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.m-dash__stat {
  padding: 9px 8px;
  border-radius: 8px;
  border: 1px solid var(--m-line);
  background: #0a162c;
}
.m-dash__stat b {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.024em;
}
.m-dash__stat b i {
  width: 12px; height: 12px;
  border-radius: 3px;
  background: rgba(86, 221, 208, 0.24);
}
.m-dash__stat span {
  color: var(--m-dim);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.m-dash__cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; }
@media (max-width: 640px) { .m-dash__cols { grid-template-columns: 1fr; } }
.m-dash__box {
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid var(--m-line);
  background: #0a162c;
}
.m-dash__box h4 {
  margin: 0 0 7px;
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
}
.m-dash__row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(42, 63, 97, 0.5);
  transition: background 0.16s ease;
}
.m-dash__row:last-child { border-bottom: 0; }
.m-dash__row:hover { background: rgba(86, 221, 208, 0.06); }
.m-dash__row img {
  width: 20px; height: 20px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  background: #16273f;
}
.m-dash__rowTxt { min-width: 0; flex: 1 1 auto; }
.m-dash__rowTxt b {
  display: block;
  color: var(--m-text);
  font-size: 8.5px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.m-dash__rowTxt span { color: var(--m-dim); font-size: 7.5px; }
.m-dash__when { color: var(--m-dim); font-size: 7px; font-weight: 600; white-space: nowrap; }
.m-dash__link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(42, 63, 97, 0.5);
  color: var(--m-text);
  font-size: 8.5px;
  font-weight: 600;
}
.m-dash__link:last-child { border-bottom: 0; }
.m-dash__link .m-ic { width: 12px; height: 12px; color: var(--m-teal); }
.m-dash__link em { margin-left: auto; color: var(--m-dim); font-style: normal; }

/* ============================================================== the network */

/* Three grid columns: left people, the hub, right people. The portrait and its
   label are one grid row, so a label can never sit on a photograph and neither
   can leave the block. Nothing is positioned by percentage. */
.m-net {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(10px, 1.6vw, 20px);
  align-items: center;
  padding: clamp(14px, 2vw, 24px) 0;
}
.m-net__col {
  display: grid;
  gap: clamp(10px, 1.4vw, 18px);
  min-width: 0;
}

.m-net__node {
  display: grid;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(9, 20, 40, 0.55);
  animation: m-float 5.6s ease-in-out infinite;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.m-net__node:hover {
  border-color: rgba(86, 221, 208, 0.4);
  background: rgba(14, 30, 60, 0.85);
}
.m-net__node--l { grid-template-columns: minmax(0, 1fr) 44px; }
.m-net__node--l .m-net__faceWrap { order: 2; }
.m-net__node--l .m-net__label { text-align: right; }
.m-net__node--r { grid-template-columns: 44px minmax(0, 1fr); }

/* The dashboard and map-list portraits are styled by descendant selector today.
   These explicit classes are here so a missing class shows up as a small broken
   image rather than a full-size square, which is what happened once. */
.m-dash__face,
.m-dash__acctFace,
.m-map__face {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: #16273f;
}
.m-dash__face { width: 20px; height: 20px; }
.m-dash__acctFace { width: 17px; height: 17px; }
.m-map__face { width: 26px; height: 26px; }

/* The wrapper carries the size, so the image inside cannot be stretched or
   squared off by the grid. */
.m-net__faceWrap {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}
.m-net__faceWrap::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(86, 221, 208, 0.4);
  animation: m-pulse 3.6s ease-out infinite;
  pointer-events: none;
}
.m-net__face {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(86, 221, 208, 0.6);
  background: #16273f;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.92);
}

.m-net__label { min-width: 0; }
.m-net__label b {
  display: block;
  color: var(--m-teal);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.3;
}
.m-net__label span {
  display: block;
  color: var(--m-muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.m-net__centre {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(88px, 11vw, 124px);
  height: clamp(88px, 11vw, 124px);
}
.m-net__halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(86, 221, 208, 0.22), transparent 68%);
  animation: m-breathe 4.4s ease-in-out infinite;
}
.m-net__hub {
  position: relative;
  display: grid;
  place-items: center;
  width: 68%;
  height: 68%;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #17457c, #06162f 72%);
  border: 1.5px solid var(--m-teal);
  box-shadow: 0 0 0 8px rgba(86, 221, 208, 0.06), 0 0 44px rgba(86, 221, 208, 0.32);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

@keyframes m-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes m-breathe {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.08); }
}
@keyframes m-pulse {
  0% { opacity: 0.75; transform: scale(0.86); }
  70%, 100% { opacity: 0; transform: scale(1.2); }
}

/* ==================================================================== map */

.m-mapwrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 176px;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--m-line);
  background: var(--m-panel);
}
@media (max-width: 620px) { .m-mapwrap { grid-template-columns: 1fr; } }
.m-mapwrap__search { grid-column: 1 / -1; display: flex; gap: 7px; }
.m-mapwrap__search span {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--m-line);
  background: #0a162c;
  color: var(--m-dim);
  font-size: 11px;
  font-weight: 500;
}
.m-mapwrap__search .m-ic { color: var(--m-teal); font-size: 15px; }
/* The real map. Leaflet owns the tiles and the pan and zoom; only the marker
   styling and the frame are ours. */
.m-map {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 300px;
  border-radius: 10px;
  overflow: hidden;
  background: #0b1830;
  border: 1px solid var(--m-line);
}
.m-map.is-live { background: #0e1420; }
.m-map .leaflet-container { background: #0e1420; font-family: inherit; }
.m-map__fallback {
  margin: 0;
  padding: 18px;
  color: var(--m-muted);
  font-size: 12.5px;
  line-height: 1.55;
}

/* Teal marker with a slow pulse, matching the rest of the page. */
.m-leaflet-pin span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--m-teal);
  border: 2px solid #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.7);
}
.m-leaflet-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: rgba(86, 221, 208, 0.42);
  animation: m-pin 2.9s ease-out infinite;
  pointer-events: none;
}
.m-map .leaflet-popup-content-wrapper {
  background: #0a162c;
  color: #c2d2e6;
  border: 1px solid var(--m-line);
  border-radius: 10px;
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.95);
}
.m-map .leaflet-popup-content b { color: #fff; }
.m-map .leaflet-popup-tip { background: #0a162c; border: 1px solid var(--m-line); }
.m-map .leaflet-control-attribution {
  background: rgba(10, 22, 44, 0.86) !important;
  color: #6d80a0 !important;
  font-size: 9px;
  padding: 1px 6px;
}
.m-map .leaflet-control-attribution a { color: #56ddd0 !important; }
.m-map .leaflet-control-zoom a {
  background: #0a162c !important;
  color: #c2d2e6 !important;
  border-color: #22374f !important;
}
.m-map .leaflet-control-zoom a:hover { background: #0e1e3c !important; color: #fff !important; }

.m-map__list { display: grid; gap: 1px; background: var(--m-line); border-radius: 9px; overflow: hidden; align-self: start; }
.m-map__agent {
  appearance: none;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 0;
  background: #0a162c;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.16s ease;
}
.m-map__agent:hover { background: #0e1e3c; }
.m-map__agent img {
  width: 26px; height: 26px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  background: #16273f;
}
.m-map__agentTxt { min-width: 0; flex: 1 1 auto; }
.m-map__agentTxt b {
  display: block;
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.m-map__agentTxt span { display: block; color: var(--m-dim); font-size: 7.5px; }
.m-map__stars { color: #f5a623; font-size: 7.5px; letter-spacing: 0.5px; }
.m-map__badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--m-teal);
  color: var(--m-ink);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@keyframes m-pin {
  0% { opacity: 0.85; transform: scale(0.55); }
  70%, 100% { opacity: 0; transform: scale(2.1); }
}

/* ============================================================== the reveal */

/* Reveals.
   The observer is the nice path, but it is not the only path: if it never fires
   the page would sit at opacity 0 and look broken, which is worse than having no
   animation. So .m-rise only hides itself once scripting confirms the observer is
   live, and the script reveals everything unconditionally on a short timer as
   well. An animation may fail; the content may not. */
.m-rise {
  opacity: 1;
  transform: none;
}
.m-rise.is-armed {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.25, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.25, 1);
}
.m-rise.is-armed.is-in { opacity: 1; transform: translateY(0); }

/* Numbers count up once, on reveal, so the dashboard does not read as a
   static picture. */
.m-count { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .m-show *, .m-laptop *, .m-net *, .m-map *, .m-art *, .m-rise {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .m-rise { opacity: 1; transform: none; }
}
