/* ==========================================================================
   Select Network — component layer
   Loaded LAST, after style.css, pyramid.css and meeting-planner.css.

   Part A styles the raw browser controls that made the portal look dated:
   the grey dropdown, the mm/dd/yyyy box, and "Choose File  No file chosen".
   These are plain element selectors, so every screen gets them at once.

   Part B adds new components under the `sn-` prefix. They change nothing
   until a screen is rebuilt to use them.
   ========================================================================== */

/* ====================  PART A — real form controls  ===================== */

/* ---- dropdown ---------------------------------------------------------
   Removes the operating system arrow and draws our own chevron.          */
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  min-height: var(--sn-control-height-sm);
  padding: var(--sn-space-2) var(--sn-space-6) var(--sn-space-2) var(--sn-space-3);
  border: 1px solid var(--sn-line);
  border-radius: var(--sn-radius-sm);
  background-color: var(--sn-surface);
  background-image: var(--sn-chevron);
  background-repeat: no-repeat;
  background-position: right var(--sn-space-3) center;
  background-size: 15px 15px;
  color: var(--sn-text);
  font: inherit;
  font-size: var(--sn-text-sm);
  line-height: 1.3;
  cursor: pointer;
  transition: border-color var(--sn-motion), box-shadow var(--sn-motion);
}
select:hover:not(:disabled) { border-color: var(--sn-line-strong); }
select:focus-visible {
  outline: var(--sn-focus-ring);
  outline-offset: var(--sn-focus-offset);
  border-color: var(--sn-brand);
}
select:disabled { opacity: .55; cursor: not-allowed; background-color: var(--sn-surface-sunken); }
/* Inside a labelled field the control is taller, to match text inputs. */
.field select { min-height: var(--sn-control-height); }
/* Some older rules set `background:` as a shorthand, which erases the chevron.
   These selectors put it back. The complex board is left out on purpose:
   .burgundy-network, .select-complex, .property-board, .select-jump,
   .board-navigation and .complex-size-picker keep their own look. */
.field select,
.structure-controls select,
.launch-event select,
.placement-picker-controls select,
.customer-service-picker select,
.data-table select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: var(--sn-chevron);
  background-repeat: no-repeat;
  background-position: right var(--sn-space-3) center;
  background-size: 15px 15px;
  padding-right: var(--sn-space-6);
  border-radius: var(--sn-radius-sm);
}

/* A dropdown on a dark panel keeps its own light background. */
select option { color: var(--sn-text); background: var(--sn-surface); }

/* ---- date and time ---------------------------------------------------- */
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"] {
  min-height: var(--sn-control-height);
  padding: var(--sn-space-3);
  border: 1px solid var(--sn-line);
  border-radius: var(--sn-radius-sm);
  background: var(--sn-surface);
  color: var(--sn-text);
  font: inherit;
  font-size: var(--sn-text-sm);
  font-variant-numeric: tabular-nums;
  transition: border-color var(--sn-motion);
}
input[type="date"]:hover,
input[type="time"]:hover { border-color: var(--sn-line-strong); }
input[type="date"]:focus-visible,
input[type="time"]:focus-visible {
  outline: var(--sn-focus-ring);
  outline-offset: var(--sn-focus-offset);
  border-color: var(--sn-brand);
}
/* The little calendar button the browser adds. */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  opacity: .5;
  cursor: pointer;
  border-radius: var(--sn-radius-sm);
  padding: 2px;
  transition: opacity var(--sn-motion);
}
input[type="date"]:hover::-webkit-calendar-picker-indicator,
input[type="time"]:hover::-webkit-calendar-picker-indicator { opacity: 1; }

/* ---- file upload -------------------------------------------------------
   Hides "Choose File  No file chosen" and draws a proper button.         */
input[type="file"] {
  font-size: var(--sn-text-sm);
  color: var(--sn-text-muted);
  max-width: 100%;
}
input[type="file"]::file-selector-button {
  margin-right: var(--sn-space-3);
  padding: var(--sn-space-2) var(--sn-space-4);
  min-height: var(--sn-control-height-sm);
  border: 1px solid var(--sn-brand);
  border-radius: var(--sn-radius-sm);
  background: var(--sn-brand);
  color: var(--sn-brand-ink);
  font: inherit;
  font-size: var(--sn-text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--sn-motion);
}
input[type="file"]::file-selector-button:hover { background: var(--sn-brand-strong); }

/* ---- range and progress ------------------------------------------------ */
progress { accent-color: var(--sn-brand); }
input[type="range"] { accent-color: var(--sn-brand); }

/* ====================  PART B — new components  ========================= */

/* ---- card -------------------------------------------------------------- */
.sn-card {
  background: var(--sn-surface);
  border: 1px solid var(--sn-line);
  border-radius: var(--sn-radius-lg);
  box-shadow: var(--sn-shadow-1);
  overflow: hidden;
}
.sn-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sn-space-4);
  padding: var(--sn-space-5);
  border-bottom: 1px solid var(--sn-line);
}
.sn-card__title { font-size: var(--sn-text-lg); font-weight: 600; margin: 0; }
.sn-card__body { padding: var(--sn-space-5); }

/* ---- buttons — exactly three kinds -------------------------------------- */
.sn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sn-space-2);
  min-height: var(--sn-control-height);
  padding: 0 var(--sn-space-4);
  border-radius: var(--sn-radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-size: var(--sn-text-sm);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--sn-motion), border-color var(--sn-motion);
}
.sn-btn:focus-visible { outline: var(--sn-focus-ring); outline-offset: var(--sn-focus-offset); }
.sn-btn:disabled { opacity: .5; cursor: not-allowed; }
.sn-btn svg { width: 16px; height: 16px; }

.sn-btn--primary { background: var(--sn-brand); border-color: var(--sn-brand); color: var(--sn-brand-ink); }
.sn-btn--primary:hover:not(:disabled) { background: var(--sn-brand-strong); border-color: var(--sn-brand-strong); }

.sn-btn--quiet { background: var(--sn-surface); border-color: var(--sn-line); color: var(--sn-text); }
.sn-btn--quiet:hover:not(:disabled) { background: var(--sn-surface-hover); border-color: var(--sn-line-strong); }

.sn-btn--text { background: none; border-color: transparent; color: var(--sn-brand); padding: 0 var(--sn-space-1); min-height: 28px; }
.sn-btn--text:hover:not(:disabled) { text-decoration: underline; }

/* ---- status chip -------------------------------------------------------- */
.sn-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sn-space-2);
  padding: var(--sn-space-1) var(--sn-space-3);
  border-radius: var(--sn-radius-pill);
  font-size: var(--sn-text-2xs);
  font-weight: 600;
  letter-spacing: .2px;
  white-space: nowrap;
  background: var(--sn-surface-sunken);
  color: var(--sn-text-muted);
}
.sn-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sn-chip--ok     { background: var(--sn-ok-tint);     color: var(--sn-ok); }
.sn-chip--warn   { background: var(--sn-warn-tint);   color: var(--sn-warn); }
.sn-chip--danger { background: var(--sn-danger-tint); color: var(--sn-danger); }
.sn-chip--info   { background: var(--sn-info-tint);   color: var(--sn-info); }
.sn-chip--brand  { background: var(--sn-brand-tint);  color: var(--sn-brand); }

/* ---- stat tile ---------------------------------------------------------- */
.sn-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--sn-space-4); }
.sn-stat {
  background: var(--sn-surface);
  border: 1px solid var(--sn-line);
  border-radius: var(--sn-radius-md);
  padding: var(--sn-space-4);
  display: grid;
  gap: var(--sn-space-1);
}
.sn-stat__value { font-size: var(--sn-text-3xl); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.sn-stat__label { font-size: var(--sn-text-xs); color: var(--sn-text-muted); }
.sn-stat__meter { height: 4px; border-radius: 2px; background: var(--sn-surface-sunken); margin-top: var(--sn-space-2); overflow: hidden; }
.sn-stat__meter > i { display: block; height: 100%; background: var(--sn-brand); }

/* ---- table -------------------------------------------------------------- */
.sn-table-wrap { overflow: auto; max-height: 70vh; }
.sn-table { width: 100%; border-collapse: collapse; text-align: left; font-size: var(--sn-text-sm); }
.sn-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--sn-surface-sunken);
  padding: var(--sn-space-3) var(--sn-space-4);
  font-size: var(--sn-text-2xs);
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--sn-text-muted);
  border-bottom: 1px solid var(--sn-line);
}
.sn-table td { padding: var(--sn-space-4); border-bottom: 1px solid var(--sn-line); }
.sn-table tbody tr:nth-child(even) td { background: var(--sn-surface-hover); }
.sn-table tbody tr:hover td { background: var(--sn-brand-tint); }
.sn-table tbody tr:last-child td { border-bottom: 0; }

/* ---- record panel (slides in from the right) ----------------------------- */
.sn-panel {
  position: fixed;
  inset-block: 0;
  right: 0;
  width: min(520px, 100%);
  background: var(--sn-surface);
  border-left: 1px solid var(--sn-line);
  box-shadow: var(--sn-shadow-3);
  display: flex;
  flex-direction: column;
  z-index: 40;
  transform: translateX(100%);
  transition: transform var(--sn-motion);
}
.sn-panel[open], .sn-panel.is-open { transform: translateX(0); }
.sn-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sn-space-4);
  padding: var(--sn-space-5);
  border-bottom: 1px solid var(--sn-line);
}
.sn-panel__body { padding: var(--sn-space-5); overflow: auto; flex: 1; }

/* ---- empty state --------------------------------------------------------- */
.sn-empty { padding: var(--sn-space-7) var(--sn-space-5); text-align: center; display: grid; gap: var(--sn-space-3); justify-items: center; }
.sn-empty[hidden] { display: none; }
.sn-empty svg { width: 28px; height: 28px; color: var(--sn-text-faint); }
.sn-empty p { font-size: var(--sn-text-sm); max-width: 38ch; margin: 0; }

/* ---- field --------------------------------------------------------------- */
.sn-field { display: grid; gap: var(--sn-space-2); font-size: var(--sn-text-sm); }
.sn-field > span { font-weight: 600; }
.sn-field__hint { font-size: var(--sn-text-xs); color: var(--sn-text-muted); }
.sn-field input[type="text"],
.sn-field input[type="email"],
.sn-field input[type="tel"],
.sn-field input[type="search"],
.sn-field textarea {
  min-height: var(--sn-control-height);
  padding: var(--sn-space-3);
  border: 1px solid var(--sn-line);
  border-radius: var(--sn-radius-sm);
  background: var(--sn-surface);
  color: var(--sn-text);
  font: inherit;
  font-size: var(--sn-text-sm);
}
.sn-field textarea { min-height: 96px; resize: vertical; }

/* ====================  Prospects page (rebuilt)  ======================== */

.sn-prospects { display: grid; gap: var(--sn-space-5); }

/* ---- page header: one title, actions on the right ---------------------- */
.sn-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sn-space-5);
  flex-wrap: wrap;
}
.sn-page-head h1 { font-size: var(--sn-text-3xl); letter-spacing: -1px; margin: 0; }
.sn-page-head p { font-size: var(--sn-text-md); color: var(--sn-text-muted); margin: var(--sn-space-2) 0 0; }
.sn-page-head__actions { display: flex; gap: var(--sn-space-2); flex-wrap: wrap; }
.sn-page-note { font-size: var(--sn-text-xs); color: var(--sn-text-muted); margin: 0; }

/* The hub keeps its tabs on this page, but not a second title or search. */
.workspace-hub.hub-tabs-only {
  background: var(--sn-surface);
  border: 1px solid var(--sn-line);
  border-radius: var(--sn-radius-md);
  box-shadow: var(--sn-shadow-1);
  padding: var(--sn-space-2);
  margin-bottom: var(--sn-space-5);
}
.workspace-hub.hub-tabs-only .hub-tabs { padding: 0; }

/* ---- search box --------------------------------------------------------- */
.sn-search { position: relative; flex: 1; min-width: 180px; max-width: 420px; }
.sn-search svg { position: absolute; left: var(--sn-space-3); top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--sn-text-faint); }
.sn-search input {
  width: 100%;
  min-height: var(--sn-control-height);
  padding: 0 var(--sn-space-3) 0 var(--sn-space-7);
  border: 1px solid var(--sn-line);
  border-radius: var(--sn-radius-sm);
  background: var(--sn-surface);
  font: inherit;
  font-size: var(--sn-text-sm);
  color: var(--sn-text);
}
.sn-search input:focus-visible { outline: var(--sn-focus-ring); outline-offset: var(--sn-focus-offset); border-color: var(--sn-brand); }
.sn-card__head-actions { display: flex; gap: var(--sn-space-3); align-items: center; }

/* ---- one record per row -------------------------------------------------- */
.sn-records { display: grid; }
.sn-record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 130px auto;
  align-items: center;
  gap: var(--sn-space-4);
  padding: var(--sn-space-3) var(--sn-space-5);
  border-bottom: 1px solid var(--sn-line);
}
.sn-record:last-child { border-bottom: 0; }
.sn-record:hover { background: var(--sn-surface-hover); }
.sn-record[hidden] { display: none; }

/* The whole name block is the click target. */
.sn-record__open {
  display: flex;
  align-items: center;
  gap: var(--sn-space-3);
  min-width: 0;
  padding: var(--sn-space-2) 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.sn-record__open:focus-visible { outline: var(--sn-focus-ring); outline-offset: var(--sn-focus-offset); border-radius: var(--sn-radius-sm); }
.sn-record__who { display: grid; gap: 2px; min-width: 0; }
.sn-record__who strong { font-size: var(--sn-text-md); font-weight: 600; }
.sn-record__who small { font-size: var(--sn-text-xs); color: var(--sn-text-muted); }
.sn-record__open:hover .sn-record__who strong { color: var(--sn-brand); }

.sn-record__due { font-size: var(--sn-text-sm); color: var(--sn-text-muted); font-variant-numeric: tabular-nums; }
.sn-record__due.is-due { color: var(--sn-danger); font-weight: 600; }

.sn-record__actions { display: flex; align-items: center; gap: var(--sn-space-2); justify-self: end; }

/* ---- the extra actions, folded away --------------------------------------- */
.sn-more { position: relative; }
.sn-more > summary {
  list-style: none;
  cursor: pointer;
  min-height: var(--sn-control-height);
  display: inline-flex;
  align-items: center;
  padding: 0 var(--sn-space-3);
  border: 1px solid var(--sn-line);
  border-radius: var(--sn-radius-sm);
  font-size: var(--sn-text-sm);
  font-weight: 600;
  color: var(--sn-text-muted);
  background: var(--sn-surface);
}
.sn-more > summary::-webkit-details-marker { display: none; }
.sn-more > summary:hover { border-color: var(--sn-line-strong); color: var(--sn-text); }
.sn-more[open] > summary { border-color: var(--sn-brand); color: var(--sn-brand); }
.sn-more__menu {
  position: absolute;
  right: 0;
  top: calc(100% + var(--sn-space-1));
  z-index: 20;
  min-width: 230px;
  display: grid;
  gap: var(--sn-space-1);
  padding: var(--sn-space-2);
  background: var(--sn-surface);
  border: 1px solid var(--sn-line);
  border-radius: var(--sn-radius-md);
  box-shadow: var(--sn-shadow-2);
}
.sn-more__menu .sn-btn--text,
.sn-more__menu a,
.sn-more__menu button { justify-content: flex-start; text-align: left; width: 100%; }
.sn-more__menu .prospect-share-actions { display: grid; gap: var(--sn-space-1); }
.sn-more__menu .delete-prospect { color: var(--sn-danger); }

/* ---- narrow screens -------------------------------------------------------- */
@media (max-width: 860px) {
  .sn-record { grid-template-columns: 1fr auto; row-gap: var(--sn-space-2); }
  .sn-record__open { grid-column: 1 / -1; }
  .sn-record__due { justify-self: end; }
  .sn-record__actions { grid-column: 1 / -1; justify-self: stretch; }
  .sn-more { margin-left: auto; }
}

/* The "More" menu has to escape the card, so this card does not clip.
   The last row keeps the card's rounded bottom corners. */
.sn-prospects .sn-card { overflow: visible; }
.sn-prospects .sn-record:last-of-type { border-end-start-radius: var(--sn-radius-lg); border-end-end-radius: var(--sn-radius-lg); }
/* Near the bottom of a short list the menu opens upward instead. */
.sn-records .sn-record:last-of-type .sn-more__menu,
.sn-records .sn-record:nth-last-of-type(2) .sn-more__menu { top: auto; bottom: calc(100% + var(--sn-space-1)); }

/* ==============  Complex board — glow and readability  =================
   Joshua asked for the look of the "breathing" board proposal:
   glowing and organised, with all 258 positions plus the host = 259.

   The board's structure, sizes and hover behaviour are NOT changed.
   Only the gold edge light and the way names wrap.
   ====================================================================== */

/* ---- 1. The gold edge breathes brighter -------------------------------
   The board already had a 6-second breath at .17 → .66 opacity.
   The proposal breathes at .22 → .78 and adds an inner gold light. */
.burgundy-network .select-position::after {
  border-color: #f5cc81;
  box-shadow: inset 0 0 3px #d79f49;
  animation-name: sn-storefront-breath;
}
@keyframes sn-storefront-breath { 0%, 100% { opacity: .22 } 50% { opacity: .82 } }

/* The host card in the left rail breathes too, a little slower. */
.burgundy-network .select-board aside .select-position::after {
  border-color: #ffdf9e;
  box-shadow: inset 0 0 6px #e0ad52, 0 0 10px #c8932f55;
  animation-duration: 7s;
}

/* A filled position glows warmer than an empty one, so the eye finds people. */
.burgundy-network .select-position.occupied::after {
  border-color: #ffe4a8;
  box-shadow: inset 0 0 5px #e5b45c, 0 0 8px #d09a3a44;
}

/* ---- 2. Names stop breaking mid-word -----------------------------------
   "Open storefront" was breaking into "Open / store / front" on three
   lines, which is what made Level 2 look cramped. */
.burgundy-network .select-caption b {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: balance;
}
.burgundy-network .select-caption small { overflow-wrap: normal; }

/* ---- 3. The board itself carries a soft light --------------------------- */
.burgundy-network .select-band { box-shadow: inset 0 0 40px #0000002e; }
.burgundy-network .band-1 .select-position.occupied { box-shadow: 0 0 14px #c9953466; }

/* People who ask for less motion keep a steady edge. */
@media (prefers-reduced-motion: reduce) {
  .burgundy-network .select-position::after { animation: none !important; opacity: .55; }
}

/* ==================  The investor journey  ============================
   Every screen answers one question: what do I do next?
   The next step is the loudest thing on the page. Finished steps go quiet.
   ====================================================================== */

.sn-journey-page { display: grid; gap: var(--sn-space-5); }

.sn-journey {
  background: linear-gradient(135deg, #5c182f, #7d2544 60%, #4a1226);
  color: #fff4e2;
  border: 1px solid #b58136;
  border-radius: var(--sn-radius-lg);
  padding: var(--sn-space-5);
  box-shadow: var(--sn-shadow-2);
  display: grid;
  gap: var(--sn-space-4);
}
.sn-journey__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sn-space-5); flex-wrap: wrap; }
.sn-journey__eyebrow { font-size: var(--sn-text-2xs); letter-spacing: 2px; font-weight: 700; color: #f0c177; }
.sn-journey__head h2 { font-size: var(--sn-text-2xl); line-height: var(--sn-leading-tight); margin: var(--sn-space-2) 0 0; max-width: 32ch; }

/* ---- the progress bar --------------------------------------------------- */
.sn-journey__bar { position: relative; height: 26px; border-radius: var(--sn-radius-pill); background: #3a0f1e; overflow: hidden; border: 1px solid #8a5a2a; }
.sn-journey__bar > i {
  display: block; height: 100%;
  background: linear-gradient(90deg, #b58136, #f0c177 70%, #ffe7b4);
  box-shadow: 0 0 14px #e5b45c88;
  transition: width .8s cubic-bezier(.22,.9,.3,1);
}
.sn-journey__bar > span {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: var(--sn-text-xs); font-weight: 700; letter-spacing: .4px;
  color: #fff6e6; text-shadow: 0 1px 2px #00000099;
}

/* ---- the steps ----------------------------------------------------------- */
.sn-journey__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sn-space-2); }
.sn-journey__steps li {
  display: flex; align-items: center; gap: var(--sn-space-3);
  padding: var(--sn-space-3);
  border-radius: var(--sn-radius-md);
  border: 1px solid transparent;
  transition: background var(--sn-motion), border-color var(--sn-motion);
}
.sn-journey__mark {
  flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: var(--sn-text-xs); font-weight: 700;
  border: 1px solid #a9763a; background: #3a0f1e; color: #f0c177;
}
.sn-journey__mark svg { width: 15px; height: 15px; }
.sn-journey__text { display: grid; gap: 2px; min-width: 0; }
.sn-journey__text strong { font-size: var(--sn-text-md); }
.sn-journey__text small { font-size: var(--sn-text-xs); color: #e4c6a8; }
.sn-journey__steps .sn-btn { margin-left: auto; flex-shrink: 0; }

/* finished — quiet */
.sn-journey__steps li.is-done { opacity: .62; }
.sn-journey__steps li.is-done .sn-journey__mark { background: #b58136; color: #3a0f1e; border-color: #ffe7b4; }

/* the step to do now — loud, and it breathes */
.sn-journey__steps li.is-now {
  background: #ffffff14;
  border-color: #f0c177;
  box-shadow: 0 0 0 1px #f0c17733, 0 6px 20px #00000040;
}
.sn-journey__steps li.is-now .sn-journey__mark {
  background: #f0c177; color: #45121f; border-color: #fff1d4;
  animation: sn-step-pulse 2.4s ease-in-out infinite;
}
@keyframes sn-step-pulse {
  0%, 100% { box-shadow: 0 0 0 0 #f0c17766; }
  50%      { box-shadow: 0 0 0 9px #f0c17700; }
}
.sn-journey__steps li.is-waiting { opacity: .78; }

.sn-journey.is-complete { border-color: #ffe7b4; box-shadow: 0 0 26px #c9953455, var(--sn-shadow-2); }

/* ---- the 48-hour clock ---------------------------------------------------- */
.sn-clock {
  display: grid; gap: 2px; justify-items: end; text-align: right;
  padding: var(--sn-space-2) var(--sn-space-4);
  border-radius: var(--sn-radius-md);
  border: 1px solid #a9763a; background: #3a0f1e;
}
.sn-clock b { font-size: var(--sn-text-xl); font-variant-numeric: tabular-nums; color: #ffe7b4; line-height: 1; }
.sn-clock small { font-size: var(--sn-text-2xs); color: #e4c6a8; }
.sn-clock.is-soon   { border-color: #d79f49; background: #4a2410; }
.sn-clock.is-soon b { color: #ffd98a; }
.sn-clock.is-urgent { border-color: #c45c4a; background: #4a1414; animation: sn-clock-throb 1.6s ease-in-out infinite; }
.sn-clock.is-urgent b { color: #ffbcae; }
.sn-clock.is-over   { border-color: #c45c4a; background: #5a1616; color: #ffd4cc; font-weight: 700; padding: var(--sn-space-3) var(--sn-space-4); }
@keyframes sn-clock-throb { 0%, 100% { box-shadow: 0 0 0 0 #c45c4a66 } 50% { box-shadow: 0 0 0 8px #c45c4a00 } }

/* ---- what each step means ------------------------------------------------- */
.sn-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--sn-space-4); }
.sn-rules article { display: grid; gap: var(--sn-space-1); }
.sn-rules strong { font-size: var(--sn-text-md); }
.sn-rules p { font-size: var(--sn-text-sm); color: var(--sn-text-muted); margin: 0; }
.sn-tank-note .sn-card__body { display: grid; gap: var(--sn-space-2); }
.sn-tank-note p { margin: 0; font-size: var(--sn-text-sm); color: var(--sn-text-muted); }

/* The tank is styled as a game board further down this file. */

@media (prefers-reduced-motion: reduce) {
  .sn-journey__steps li.is-now .sn-journey__mark,
  .sn-clock.is-urgent { animation: none; }
  .sn-journey__bar > i { transition: none; }
}

/* ===== The holding tank as a game board =================================== */
/* A dark arena with a slow-drifting field behind it, so the cards read as
   pieces in play rather than rows in a table. */

.sn-field {
  position: relative;
  isolation: isolate;
  padding: clamp(16px, 3vw, 32px);
  border-radius: var(--sn-radius-lg, 18px);
  background:
    radial-gradient(120% 90% at 12% 0%, #5c173347 0%, transparent 60%),
    radial-gradient(110% 80% at 88% 10%, #3c103052 0%, transparent 62%),
    linear-gradient(170deg, #2b0a1b73 0%, #1a05118c 100%),
    url('/assets/burgundy-board/board-field.webp') center / cover no-repeat,
    #1a0511;
  box-shadow: inset 0 1px 0 #ffffff14, 0 18px 46px -24px #00000080;
  overflow: hidden;
}
/* The field itself: faint points of light that drift and breathe. */
.sn-field__dust {
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  background-repeat: no-repeat;
  background-image:
    radial-gradient(2px 2px at 12% 22%, #ffe9c2 0, transparent 60%),
    radial-gradient(2px 2px at 78% 14%, #ffd79a 0, transparent 60%),
    radial-gradient(1.5px 1.5px at 34% 72%, #fff3dd 0, transparent 60%),
    radial-gradient(2.5px 2.5px at 62% 58%, #ffcf85 0, transparent 60%),
    radial-gradient(1.5px 1.5px at 90% 76%, #fff 0, transparent 60%),
    radial-gradient(2px 2px at 24% 48%, #ffd79a 0, transparent 60%),
    radial-gradient(1.5px 1.5px at 50% 30%, #fff6e6 0, transparent 60%),
    radial-gradient(2px 2px at 8% 84%, #ffcf85 0, transparent 60%),
    radial-gradient(40% 30% at 50% 50%, #b5813633 0, transparent 70%);
  animation: sn-field-drift 28s ease-in-out infinite alternate;
}
@keyframes sn-field-drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1);    opacity: .35 }
  to   { transform: translate3d( 2%,  2%, 0) scale(1.07); opacity: .62 }
}

.sn-field .sn-tank {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(12px, 1.6vw, 18px);
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.sn-field .sn-empty {
  position: relative;
  z-index: 1;
  color: #f6e4d2;
}
.sn-field .sn-empty h2 { color: #fff }

/* ---- A card is a playing piece ----------------------------------------- */
.sn-tank-card {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 10px;
  padding: 16px 16px 12px;
  border: 1px solid #ffffff1f;
  border-radius: 16px;
  background: linear-gradient(165deg, #ffffff16 0%, #ffffff08 42%, #00000026 100%);
  box-shadow: 0 1px 0 #ffffff26 inset, 0 16px 34px -22px #000000a6;
  color: #f7e8d8;
  backdrop-filter: blur(6px);
  transition: transform var(--sn-motion, .25s) ease, box-shadow var(--sn-motion, .25s) ease;
}
.sn-tank-card:hover { transform: translateY(-3px) }
/* The glow sits behind the card and takes its colour from the state. */
.sn-tank-card__glow {
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(90% 70% at 50% 0%, var(--sn-glow, #ffffff26) 0, transparent 70%);
  opacity: .85;
  animation: sn-card-breath 6s ease-in-out infinite;
}
@keyframes sn-card-breath { 0%, 100% { opacity: .45 } 50% { opacity: .95 } }

.sn-tank-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sn-tank-who { display: grid; gap: 2px; min-width: 0 }
/* The name is the piece. It glows white so it reads first. */
.sn-tank-who strong {
  font-size: 1.08rem;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 0 14px #ffffff5c, 0 0 2px #ffffff8a;
  letter-spacing: .01em;
}
.sn-tank-who small { color: #ffd9a8; font-size: .76rem; letter-spacing: .04em }
.sn-tag {
  justify-self: start;
  margin-bottom: 2px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #fff;
  color: #4a1226;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ---- The countdown ring ------------------------------------------------- */
.sn-ring {
  position: relative;
  flex: none;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
}
.sn-ring svg { width: 64px; height: 64px; transform: rotate(-90deg) }
.sn-ring circle { fill: none; stroke-width: 5; stroke-linecap: round }
.sn-ring__track { stroke: #ffffff1f }
.sn-ring__live {
  stroke: #ffffff;
  filter: drop-shadow(0 0 6px #ffffffcc) drop-shadow(0 0 14px #ffffff66);
  transition: stroke-dashoffset 1s linear, stroke var(--sn-motion, .3s) ease;
  animation: sn-ring-pulse 3.6s ease-in-out infinite;
}
@keyframes sn-ring-pulse { 0%, 100% { opacity: .82 } 50% { opacity: 1 } }
.sn-ring__text {
  position: absolute;
  display: grid;
  justify-items: center;
  line-height: 1;
}
.sn-ring__text b { font-size: .95rem; color: #fff; text-shadow: 0 0 10px #ffffff80 }
.sn-ring__text small { font-size: .6rem; color: #ffffffa8; letter-spacing: .06em }

.sn-ring.is-soon .sn-ring__live { stroke: #ffd591; filter: drop-shadow(0 0 7px #ffd591cc) }
.sn-ring.is-urgent .sn-ring__live {
  stroke: #ff9d6e;
  filter: drop-shadow(0 0 9px #ff9d6edd);
  animation-duration: 1.5s;
}
.sn-ring.is-over .sn-ring__live { stroke: #ff7d6a; filter: drop-shadow(0 0 10px #ff7d6ae6) }
.sn-ring.is-over .sn-ring__text b { color: #ffd9d1 }

/* State colours for the card glow and edge. */
.sn-tank-card           { --sn-glow: #ffffff33 }
.sn-tank-card.is-soon   { --sn-glow: #ffd59142; border-color: #ffd59147 }
.sn-tank-card.is-urgent { --sn-glow: #ff9d6e4d; border-color: #ff9d6e5c }
.sn-tank-card.is-over   { --sn-glow: #ff7d6a52; border-color: #ff7d6a66 }
.sn-tank-card.is-gold   { --sn-glow: #f5cc8159; border-color: #f5cc8166 }
.sn-tank-card.is-mine   { border-color: #ffffff6b; box-shadow: 0 0 0 1px #ffffff33, 0 18px 40px -22px #000c }

.sn-tank-next { margin: 0; color: #fdeeda; font-size: .93rem; line-height: 1.45 }
.sn-tank-reason { margin: 0; color: #ffc9b8; font-size: .8rem }

/* ---- Five gems: the whole journey at a glance --------------------------- */
.sn-pips {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}
.sn-pip { display: grid; justify-items: center; gap: 4px; text-align: center }
.sn-pip__gem {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #ffffff2e;
  border-radius: 9px;
  background: #ffffff0f;
  color: #ffffff8a;
  font-size: .66rem;
  font-weight: 700;
  transform: rotate(45deg);
  transition: all var(--sn-motion, .25s) ease;
}
.sn-pip__gem > * { transform: rotate(-45deg) }
.sn-pip__gem svg { width: 13px; height: 13px }
.sn-pip em {
  font-style: normal;
  font-size: .58rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #ffffff6e;
}
.sn-pip.is-lit .sn-pip__gem {
  border-color: #f7d9a0;
  background: linear-gradient(145deg, #f8dcab, #c48f3f);
  color: #45200c;
  box-shadow: 0 0 12px #f5cc8199, 0 0 26px #f5cc8140;
}
.sn-pip.is-lit em { color: #ffe3b4 }
.sn-pip.is-now .sn-pip__gem {
  border-color: #fff;
  background: #ffffff26;
  color: #fff;
  box-shadow: 0 0 10px #ffffff8c;
  animation: sn-gem-pulse 1.9s ease-in-out infinite;
}
.sn-pip.is-now em { color: #fff }
@keyframes sn-gem-pulse {
  0%, 100% { box-shadow: 0 0 8px #ffffff6b;  transform: rotate(45deg) scale(1) }
  50%      { box-shadow: 0 0 20px #ffffffd6; transform: rotate(45deg) scale(1.1) }
}

/* ---- The progress bar --------------------------------------------------- */
.sn-tank-bar {
  height: 6px;
  border-radius: 999px;
  background: #ffffff1a;
  overflow: hidden;
}
.sn-tank-bar > i {
  display: block;
  height: 100%;
  width: var(--sn-pct, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #f8dcab, #fff);
  box-shadow: 0 0 10px #ffe7bd99;
  transition: width .6s ease;
}

.sn-tank-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #ffffff14;
}
.sn-tank-card > footer small { color: #ffffff8a; font-size: .72rem }
.sn-tank-card > footer .sn-btn--text { color: #ffe3b4; padding: 2px 4px }
.sn-tank-card > footer .sn-btn--text:hover { color: #fff; text-shadow: 0 0 10px #ffffff80 }

/* ---- The member's own tank block --------------------------------------- */
.sn-tank-section { display: grid; gap: 12px; margin-block: 8px }
.sn-tank-section__head h2 { margin: 0 0 2px; font-size: 1.15rem }
.sn-tank-section__head p { margin: 0; color: var(--sn-text-soft, #6d5a5f); font-size: .9rem }
.sn-tank-section .sn-tank { grid-template-columns: minmax(280px, 460px) }

/* ---- Landing on a square from a tank card ------------------------------ */
.select-position.sn-found {
  outline: 2px solid #fff;
  outline-offset: 2px;
  animation: sn-found-flash 2.6s ease-out 1;
}
@keyframes sn-found-flash {
  0%   { box-shadow: 0 0 0 0 #ffffffe6, 0 0 26px 10px #f5cc81cc }
  70%  { box-shadow: 0 0 0 14px #ffffff00, 0 0 18px 4px #f5cc8166 }
  100% { box-shadow: 0 0 0 0 #ffffff00, 0 0 0 0 #f5cc8100 }
}

@media (prefers-reduced-motion: reduce) {
  .sn-field__dust,
  .sn-tank-card__glow,
  .sn-ring__live,
  .sn-pip.is-now .sn-pip__gem,
  .select-position.sn-found { animation: none }
  .sn-tank-card:hover { transform: none }
}

/* A card that has run out of time, or has won, says so in words. */
.sn-tank-flag {
  margin: 0;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #fff;
  background: #ff7d6a2e;
  border: 1px solid #ff7d6a66;
  text-shadow: 0 0 10px #ffffff5c;
}
.sn-tank-flag.is-gold {
  color: #45200c;
  background: linear-gradient(145deg, #f8dcab, #d9a85a);
  border-color: #f7d9a0;
  box-shadow: 0 0 16px #f5cc8166;
  text-shadow: none;
}

/* ===== Rank coins ========================================================= */
/* Gold, Platinum and Diamond each get a coin, so a rank is seen, not read. */
.sn-coin { display: block; flex: none; }
.sn-coin--gold     { filter: drop-shadow(0 0 5px #f5cc8199) }
.sn-coin--platinum { filter: drop-shadow(0 0 5px #d8dde4a6) }
.sn-coin--diamond  { filter: drop-shadow(0 0 6px #9ed2ffb3) }

.burgundy-network .board-rank {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px 1px 2px;
  border-radius: 999px;
  background: #1d0710cc;
  border: 1px solid #ffffff2e;
  color: #ffe9c6;
  font: 700 10px Georgia, serif;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.burgundy-network .board-rank .sn-coin { width: 16px; height: 16px }
.burgundy-network .board-rank.rank-gold     { border-color: #f5cc8199; color: #ffe3ac }
.burgundy-network .board-rank.rank-platinum { border-color: #d8dde499; color: #eef1f5 }
.burgundy-network .board-rank.rank-diamond  { border-color: #9ed2ff99; color: #dcefff }
/* On the smallest cards the word is dropped, but the coin stays. */
.burgundy-network.fit-network .band-3 .board-rank { display: inline-flex; padding: 0; background: none; border: 0 }
.burgundy-network.fit-network .band-3 .board-rank b { display: none }
.burgundy-network.fit-network .band-3 .board-rank .sn-coin { width: 13px; height: 13px }

/* ===== The journey track ================================================= */
/* Five stations on a board. Your token sits on the one you are at. */

.sn-journey { position: relative; isolation: isolate; overflow: hidden; }
/* A slow living glow behind the whole journey. */
.sn-journey__sky {
  position: absolute;
  inset: -30%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 42% at 20% 20%, #f5cc8126 0, transparent 70%),
    radial-gradient(34% 38% at 82% 70%, #ffffff1f 0, transparent 70%);
  animation: sn-sky-drift 22s ease-in-out infinite alternate;
}
@keyframes sn-sky-drift {
  from { transform: translate3d(-3%, 2%, 0) scale(1) }
  to   { transform: translate3d( 3%, -2%, 0) scale(1.12) }
}
.sn-journey > *:not(.sn-journey__sky) { position: relative; z-index: 1 }

.sn-track { position: relative; margin: 18px 0 14px; padding: 0 6px }
/* The road the token travels along. */
.sn-track__road {
  position: absolute;
  left: 6px; right: 6px; top: 21px;
  height: 6px;
  border-radius: 999px;
  background: #ffffff1c;
  overflow: hidden;
}
.sn-track__road > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c8912f, #f8dcab 60%, #fff);
  box-shadow: 0 0 12px #ffe7bdaa;
  transition: width .8s cubic-bezier(.4, 0, .2, 1);
}
.sn-track__stations {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sn-station { display: grid; justify-items: center; gap: 6px; text-align: center }
.sn-station__dot {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #ffffff2e;
  background: radial-gradient(70% 70% at 35% 28%, #ffffff1f, #00000038);
  color: #ffffffa6;
  font-size: .82rem;
  font-weight: 700;
  transition: all var(--sn-motion, .3s) ease;
}
.sn-station__dot svg { width: 18px; height: 18px }
.sn-station__label {
  font-size: .62rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #ffffff7a;
  line-height: 1.25;
}
.sn-station.is-done .sn-station__dot {
  border-color: #f7d9a0;
  background: linear-gradient(145deg, #f8dcab, #c8912f);
  color: #45200c;
  box-shadow: 0 0 16px #f5cc8199;
}
.sn-station.is-done .sn-station__label { color: #ffe3b4 }
/* The station you are standing on: white, breathing, with a token above it. */
.sn-station.is-now .sn-station__dot {
  border-color: #fff;
  background: radial-gradient(70% 70% at 35% 28%, #ffffff4d, #ffffff14);
  color: #fff;
  box-shadow: 0 0 0 4px #ffffff1f, 0 0 22px #ffffffb3;
  animation: sn-station-breath 2.1s ease-in-out infinite;
}
.sn-station.is-now .sn-station__label { color: #fff }
@keyframes sn-station-breath {
  0%, 100% { box-shadow: 0 0 0 3px #ffffff14, 0 0 16px #ffffff8a; transform: scale(1) }
  50%      { box-shadow: 0 0 0 7px #ffffff0f, 0 0 30px #ffffffe6; transform: scale(1.07) }
}
.sn-station__you {
  margin-top: -2px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #fff;
  color: #4a1226;
  font-size: .56rem;
  font-weight: 800;
  letter-spacing: .12em;
  animation: sn-you-hop 2.1s ease-in-out infinite;
}
@keyframes sn-you-hop {
  0%, 100% { transform: translateY(0) }
  50%      { transform: translateY(-3px) }
}
.sn-journey.is-complete .sn-station:last-child .sn-station__dot {
  border-color: #f7d9a0;
  box-shadow: 0 0 26px #f5cc81cc;
  animation: sn-station-breath 3s ease-in-out infinite;
}

@media (max-width: 560px) {
  .sn-station__dot { width: 38px; height: 38px }
  .sn-station__label { font-size: .54rem }
  .sn-track__road { top: 16px }
}
@media (prefers-reduced-motion: reduce) {
  .sn-journey__sky,
  .sn-station.is-now .sn-station__dot,
  .sn-station__you,
  .sn-journey.is-complete .sn-station:last-child .sn-station__dot { animation: none }
}

/* The Gold coin fills its station instead of shrinking to an icon. */
.sn-station__dot .sn-coin { width: 34px; height: 34px }
.sn-station.is-waiting .sn-station__dot .sn-coin { opacity: .45; filter: grayscale(.7) }

/* ---- Cards for people the clock pushed off the board -------------------- */
.sn-tank-card.is-dropped { --sn-glow: #9ed2ff3d; border-color: #9ed2ff52 }
.sn-tag--out { background: #9ed2ff; color: #0e2c45 }
.sn-tank-card.is-dropped .sn-tank-flag {
  background: #9ed2ff26;
  border-color: #9ed2ff5c;
  text-transform: none;
  letter-spacing: .02em;
  font-weight: 600;
}
.sn-tank-card.is-dropped > footer { justify-content: flex-end }
.sn-tank-card.is-dropped .sn-btn--primary {
  background: #fff;
  color: #4a1226;
  border: 0;
  font-weight: 700;
}
.sn-tank-card.is-dropped .sn-btn--primary:hover { box-shadow: 0 0 18px #ffffff80 }
/* Four tiles now, so let them wrap rather than squeeze. */
.sn-journey-page .sn-stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) }

/* ---- The rank-up moment ------------------------------------------------- */
/* The coin lands, spins once, then keeps a slow shine. */
.select-award .sn-coin {
  margin: 0 auto 10px;
  animation: sn-award-land .9s cubic-bezier(.2, .8, .2, 1) 1, sn-award-shine 3.4s ease-in-out .9s infinite;
}
@keyframes sn-award-land {
  0%   { transform: scale(.2) rotate(-220deg); opacity: 0 }
  60%  { transform: scale(1.18) rotate(10deg); opacity: 1 }
  100% { transform: scale(1) rotate(0) }
}
@keyframes sn-award-shine {
  0%, 100% { filter: drop-shadow(0 0 8px #f5cc8180) }
  50%      { filter: drop-shadow(0 0 22px #f5cc81e6) }
}
.select-award .award-next {
  margin-top: 6px;
  font-size: .86rem;
  opacity: .82;
}
@media (prefers-reduced-motion: reduce) {
  .select-award .sn-coin { animation: none }
}

/* Counts sitting beside a page title. */
.sn-stats--inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: var(--sn-space-3, 12px);
  min-width: min(100%, 420px);
}
.sn-stats--inline .sn-stat { padding: var(--sn-space-3, 12px) }
.sn-stats--inline .sn-stat__value { font-size: 1.4rem }

/* Saturdays and Sundays: the office is shut, so the square says so. */
.office-grid .office-shut {
  opacity: .42;
  cursor: not-allowed;
  background-image: repeating-linear-gradient(135deg, #00000008 0 6px, transparent 6px 12px);
}
.office-grid .office-shut small {
  font-size: .6rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ===== The board, made to play like the proposal ========================= */
/* Structure, sizes, hover and click are untouched. This is paint and light. */

.burgundy-network { position: relative; isolation: isolate; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Living gold dust over the whole board ----------------------------- */
.sn-board-dust {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  mix-blend-mode: screen; opacity: .55; overflow: hidden;
}
.sn-board-dust::before, .sn-board-dust::after {
  content: ""; position: absolute; inset: -40%;
  background-repeat: repeat;
  background-image:
    radial-gradient(1.6px 1.6px at 10% 20%, #ffe7b0 0, transparent 60%),
    radial-gradient(1.2px 1.2px at 30% 70%, #fff3d6 0, transparent 60%),
    radial-gradient(2px 2px at 55% 35%, #ffd27a 0, transparent 60%),
    radial-gradient(1.4px 1.4px at 75% 80%, #fff 0, transparent 60%),
    radial-gradient(1.8px 1.8px at 88% 15%, #ffdc95 0, transparent 60%);
  background-size: 340px 340px;
  animation: sn-dust-rise 46s linear infinite;
}
.sn-board-dust::after { background-size: 520px 520px; opacity: .6; animation-duration: 72s; animation-direction: reverse; }
@keyframes sn-dust-rise { from { transform: translate3d(0, 0, 0) } to { transform: translate3d(-8%, -18%, 0) } }

/* ---- Stats bar ---------------------------------------------------------- */
.sn-board-stats {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px;
  padding: 8px 10px;
  background: linear-gradient(90deg, #22071099, #3d0c1c99, #22071099), var(--oxblood);
  border-top: 1px solid #c9a15a66; border-bottom: 1px solid #c9a15a66;
}
.sn-bstat {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  padding: 7px 12px; border-radius: 12px;
  border: 2px solid #d9ac5c; background: linear-gradient(160deg, #4d1426, #2a0a15);
  box-shadow: inset 0 1px 0 #ffffff22, 0 0 14px #f5cc8133;
  color: #ffe9bf;
}
.sn-bstat > :first-child { grid-row: 1 / span 2; }
.sn-bstat b { font: 700 1.35rem/1 Georgia, serif; color: #fff; text-shadow: 0 0 10px #ffd99a88; }
.sn-bstat b small { font-size: .75rem; color: #ffdca0; margin-left: 2px; }
.sn-bstat span:last-child { font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: #f3d7a4; }
.sn-bstat__icon {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff2c4, #c8912f 60%, #6d4410); color: #3b1d06; font-weight: 800;
}
.sn-bstat--platinum { border-color: #cfd5dd; box-shadow: inset 0 1px 0 #ffffff22, 0 0 14px #d8dde433; }
.sn-bstat--diamond  { border-color: #8cc4f2; box-shadow: inset 0 1px 0 #ffffff22, 0 0 16px #9ed2ff44; }
@media (max-width: 900px) { .sn-board-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sn-board-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- Search inside the board ------------------------------------------- */
.sn-board-find { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.sn-board-find input {
  min-width: min(260px, 40vw); height: 34px; padding: 0 14px; border-radius: 999px;
  border: 2px solid #d9ac5c; background: #1e0710; color: #fff3dc;
  box-shadow: inset 0 0 10px #00000066, 0 0 10px #f5cc8122;
}
.sn-board-find input::placeholder { color: #d8b98a; }
.sn-board-find button {
  height: 34px; padding: 0 14px; border-radius: 999px; border: 0; font-weight: 700;
  background: var(--foil); color: #351607; cursor: pointer;
}

/* ---- Rank on every card ------------------------------------------------ */
.burgundy-network .sn-rank-word {
  display: inline-block; font-style: normal; font: 800 9px/1.4 system-ui; letter-spacing: .09em;
  text-transform: uppercase; padding: 0 7px; border-radius: 999px; margin-top: 2px;
  background: var(--foil); color: #3a1b08;
}
.burgundy-network .rank-platinum .sn-rank-word { background: linear-gradient(180deg, #fff, #c5cbd3 45%, #8d949e 60%, #eef1f4); color: #262a30; }
.burgundy-network .rank-diamond  .sn-rank-word { background: linear-gradient(180deg, #eaf7ff, #8cc4f2 45%, #3a74ad 62%, #cfeaff); color: #0c2a45; }
.burgundy-network .select-caption { display: flex; flex-direction: column; align-items: center; }
.burgundy-network .band-2 .select-caption { align-items: flex-start; }
.burgundy-network.fit-network .band-3:not(.is-grouped) .sn-rank-word { display: none; }

/* Level 1: framed portraits that glow in the colour of their rank. */
.burgundy-network .band-1 .select-position { transition: transform .25s ease, box-shadow .25s ease; }
.burgundy-network .band-1 .select-position:hover { transform: translateY(-2px); }
.burgundy-network .band-1 .select-position.rank-gold {
  box-shadow: 0 0 0 1px #ffd77a, 0 0 18px #f5cc8188; animation: sn-gold-breath 5s ease-in-out infinite;
}
.burgundy-network .band-1 .select-position.rank-platinum {
  border-image: none; border: 4px solid #dfe4ea;
  background: linear-gradient(160deg, #6a6f78, #2f2b33 60%, #4a4f57);
  box-shadow: 0 0 0 1px #fff, 0 0 18px #d8dde488; animation: sn-plat-breath 5s ease-in-out infinite;
}
.burgundy-network .band-1 .select-position.rank-diamond {
  border-image: none; border: 4px solid #8fd0ff;
  background: linear-gradient(160deg, #1d4a7a, #13233f 60%, #2a5e95);
  box-shadow: 0 0 0 1px #d8f0ff, 0 0 22px #6fb8ff99; animation: sn-diamond-breath 4.4s ease-in-out infinite;
}
@keyframes sn-gold-breath    { 0%,100% { box-shadow: 0 0 0 1px #ffd77a, 0 0 10px #f5cc8166 } 50% { box-shadow: 0 0 0 1px #ffe7a8, 0 0 26px #f5cc81cc } }
@keyframes sn-plat-breath    { 0%,100% { box-shadow: 0 0 0 1px #fff, 0 0 10px #d8dde466 } 50% { box-shadow: 0 0 0 1px #fff, 0 0 26px #eef2f7cc } }
@keyframes sn-diamond-breath { 0%,100% { box-shadow: 0 0 0 1px #d8f0ff, 0 0 12px #6fb8ff77 } 50% { box-shadow: 0 0 0 1px #fff, 0 0 30px #8fd0ffee } }

/* A slow sheen sweeps across the Level 1 cards, like light on foil. */
.burgundy-network .band-1 .select-position { overflow: hidden; }
.burgundy-network .band-1 .select-position::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  background: linear-gradient(105deg, transparent 35%, #ffffff40 48%, #fff5d855 50%, transparent 62%);
  transform: translateX(-120%);
  animation: sn-sheen 7s ease-in-out infinite;
}
.burgundy-network .band-1 .select-family:nth-child(2) .select-position::before { animation-delay: .5s }
.burgundy-network .band-1 .select-family:nth-child(3) .select-position::before { animation-delay: 1s }
.burgundy-network .band-1 .select-family:nth-child(4) .select-position::before { animation-delay: 1.5s }
.burgundy-network .band-1 .select-family:nth-child(5) .select-position::before { animation-delay: 2s }
.burgundy-network .band-1 .select-family:nth-child(6) .select-position::before { animation-delay: 2.5s }
@keyframes sn-sheen { 0%, 70% { transform: translateX(-120%) } 100% { transform: translateX(120%) } }

/* Level 1 avatars become gold-ringed medallions. */
.burgundy-network .band-1 .select-position .person-avatar {
  border: 2px solid #ffe2a0; box-shadow: 0 0 0 2px #6d3f12, 0 0 12px #f5cc8188;
}
.burgundy-network .band-1 .rank-diamond .person-avatar { border-color: #cdeeff; box-shadow: 0 0 0 2px #1f4a78, 0 0 12px #8fd0ffaa; }
.burgundy-network .band-1 .rank-platinum .person-avatar { border-color: #fff; box-shadow: 0 0 0 2px #50555e, 0 0 12px #eef2f7aa; }
.burgundy-network .band-1 .select-caption b { color: #fff; text-shadow: 0 1px 2px #000a, 0 0 10px #ffe7b066; }

/* Level 2: cream cards with a rank stripe on the left. */
.burgundy-network .band-2 .select-position.occupied { box-shadow: inset 4px 0 0 #c8912f; }
.burgundy-network .band-2 .select-position.rank-platinum { box-shadow: inset 4px 0 0 #9aa1ab; }
.burgundy-network .band-2 .select-position.rank-diamond  { box-shadow: inset 4px 0 0 #3a86d1; }
.burgundy-network .band-2 .select-position:hover { filter: brightness(1.06); box-shadow: inset 4px 0 0 #c8912f, 0 0 12px #f5cc8188; }

/* The coin with the service number reads clearly on every card. */
.burgundy-network .service-coin { filter: drop-shadow(0 0 4px #f5cc81aa); }
.burgundy-network.fit-network .band-1 .service-coin { transform: scale(1.25); transform-origin: bottom right; }

/* ---- Level 3 groups ----------------------------------------------------- */
.sn-l3-body { min-width: 0; display: grid; gap: 6px; }
.sn-l3-tabs {
  display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 6px; scroll-snap-type: x proximity;
  scrollbar-width: thin; scrollbar-color: #c9a15a transparent;
}
.sn-l3-tabs button {
  flex: none; scroll-snap-align: start; display: grid; justify-items: center; gap: 1px;
  min-width: 118px; padding: 5px 10px; border-radius: 10px; cursor: pointer;
  border: 2px solid #b98e4c; color: #3a1a0c;
  background: linear-gradient(180deg, #fbefd6, #e8cd98);
  transition: transform .2s ease, box-shadow .2s ease;
}
.sn-l3-tabs button b { font: 700 12px Georgia, serif; }
.sn-l3-tabs button small { font-size: 10px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sn-l3-tabs button:hover { transform: translateY(-1px); box-shadow: 0 0 12px #f5cc8188; }
.sn-l3-tabs button[aria-pressed="true"] {
  background: linear-gradient(180deg, #5c1730, #2c0815); color: #ffe9bf; border-color: #ffd77a;
  box-shadow: 0 0 0 1px #ffe7a8, 0 0 16px #f5cc81aa;
}

/* Grouped: one sponsor and their six, shown big. All 216 stay in the page. */
.burgundy-network .band-3.is-grouped .select-families { grid-template-columns: minmax(0, 1fr); }
.burgundy-network .band-3.is-grouped .select-family:not(:has(.third-family.is-active)) { display: none; }
.burgundy-network .band-3.is-grouped .third-family { display: none; }
.burgundy-network .band-3.is-grouped .third-family.is-active {
  display: grid; grid-template-columns: minmax(150px, 1.2fr) repeat(6, minmax(0, 1fr)); gap: 8px; padding: 6px;
  animation: sn-group-open .35s ease-out;
}
@keyframes sn-group-open { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
.burgundy-network .band-3.is-grouped .upline-label {
  display: grid; place-content: center; text-align: center; padding: 10px; border-radius: 12px;
  border: 3px ridge #e4b965; background: linear-gradient(160deg, #5c1730, #2a0814);
  color: #fff; font: 700 15px Georgia, serif; box-shadow: 0 0 16px #f5cc8155;
}
.burgundy-network .band-3.is-grouped .upline-label small {
  display: block; font: 600 10px system-ui; letter-spacing: .08em; text-transform: uppercase; color: #ffd99a; margin-bottom: 4px;
}
.burgundy-network.fit-network .band-3.is-grouped .select-family { grid-template-columns: minmax(0, 1fr); }
.burgundy-network.fit-network .band-3.is-grouped .select-position {
  height: auto; min-height: 84px; padding: 8px 6px; border-radius: 10px; flex-direction: column; justify-content: center;
  background: linear-gradient(115deg, #fae7be, #fff6e4 48%, #e8c48b); color: #381a13; border: 2px ridge #d3a752;
}
.burgundy-network.fit-network .band-3.is-grouped .select-caption { display: flex; }
.burgundy-network.fit-network .band-3.is-grouped .select-caption b { font-size: 12px; }
.burgundy-network.fit-network .band-3.is-grouped .vacancy-mark { display: inline-grid; }
.burgundy-network.fit-network .band-3.is-grouped .select-position :is(.person-avatar, .example-gold) { width: 34px; height: 34px; }
.burgundy-network.fit-network .band-3.is-grouped .occupied .storefront-mark { display: block; }
.burgundy-network.fit-network .band-3.is-grouped .board-rank b { display: inline; }
@media (max-width: 760px) {
  .burgundy-network .band-3.is-grouped .third-family.is-active { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .burgundy-network .band-3.is-grouped .upline-label { grid-column: 1 / -1; }
}

/* ---- Leader column overview ------------------------------------------- */
.burgundy-network .board-capacity .sn-overview-title {
  display: block; text-align: center; padding: 6px 4px 8px;
  font: 700 15px Georgia, serif; letter-spacing: .06em; text-transform: uppercase; color: #ffe2a1;
  text-shadow: 0 0 10px #f5cc8166;
}
.burgundy-network .board-capacity > div { position: relative; flex-wrap: wrap; }
.burgundy-network .board-capacity dd b { color: #fff; font-size: 1.05em; }
.burgundy-network .board-capacity .sn-cap-bar {
  flex-basis: 100%; height: 4px; margin-top: 4px; border-radius: 999px; background: #ffffff1c; position: relative; overflow: hidden;
}
.burgundy-network .board-capacity .sn-cap-bar::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: var(--sn-fill, 0%);
  background: linear-gradient(90deg, #c8912f, #ffe7b0); box-shadow: 0 0 8px #ffe7b0aa;
}
.burgundy-network .board-capacity .sn-cap-total { font-size: 1.15em; color: #fff; }
.burgundy-network .board-capacity .sn-cap-total small { display: block; font: 500 10px system-ui; color: #e9cf9e; }

/* Full screen: everything at a glance, no group view, all 259 visible. */
.burgundy-network:fullscreen .sn-l3-tabs { display: none; }

@media (prefers-reduced-motion: reduce) {
  .sn-board-dust::before, .sn-board-dust::after,
  .burgundy-network .band-1 .select-position,
  .burgundy-network .band-1 .select-position::before,
  .burgundy-network .band-3.is-grouped .third-family.is-active { animation: none; }
}

/* ===== Living backgrounds (Higgsfield loops) ============================= */
.sn-living { position: fixed; z-index: -1; pointer-events: none; display: none; background: #3c080f; overflow: hidden; }
.sn-living video { width: 100%; height: 100%; object-fit: cover; display: block; }
body[data-living="side"] .sn-living {
  display: block; left: 0; top: 0; bottom: 0; width: 254px;
}
body[data-living="side"] .sn-living video { position: absolute; left: 0; bottom: 0; height: 54%; object-position: 18% 50%; }
body[data-living="side"] .shell .sidebar { background: transparent; }
@media (max-width: 1100px) { body[data-living="side"] .sn-living { width: 220px; } }
body[data-living="full"] .sn-living { display: block; inset: 0; }
body[data-living="full"] .pyramid-welcome { background: transparent; }

/* The board leather breathes behind the cards. */
.burgundy-network .sn-board-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: -1; pointer-events: none; opacity: .9;
}
@media (prefers-reduced-motion: reduce) { .burgundy-network .sn-board-video { display: none; } }

/* ===== Play Mode ========================================================= */
/* A game frame around the same real data. Burgundy leather, gold foil, light. */
.pm-shell {
  --pm-gold: #f2c867; --pm-gold-2: #ffe7a8; --pm-gold-3: #a8741f; --pm-ink: #2a0611;
  --pm-foil: linear-gradient(180deg, #fff1c2, #f2c867 40%, #b9812a 62%, #ffe39a);
  --pm-panel: linear-gradient(160deg, #5a1228ee, #2c0713f2);
  min-height: 100dvh; color: #fff3dc; position: relative; isolation: isolate;
  background: radial-gradient(120% 80% at 50% 0%, #5c1027, #2a0611 60%, #18030a);
  padding: 10px clamp(8px, 1.4vw, 20px) 18px; display: grid; gap: 10px; align-content: start;
  font-family: Georgia, 'Times New Roman', serif;
}
.pm-shell svg:not(.pm-embed svg):not(.complex-hover-card svg):not(.pm-notices svg) { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pm-shell .sn-coin { stroke: none; }

/* Top bar */
.pm-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pm-brand img { height: 70px; width: auto; display: block; filter: drop-shadow(0 0 10px #f2c86766); }
.pm-title { display: grid; line-height: 1.1; margin-right: auto; }
.pm-title strong { font-size: 1.25rem; color: var(--pm-gold-2); text-shadow: 0 0 12px #f2c86766; }
.pm-title small { color: #e8cfa3; font-size: .8rem; }
.pm-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.pm-chip {
  display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center;
  padding: 6px 14px; border-radius: 14px; border: 2px solid var(--pm-gold); background: var(--pm-panel);
  box-shadow: inset 0 1px 0 #ffffff22, 0 0 14px #f2c86733;
}
.pm-chip svg { grid-row: 1 / span 2; color: var(--pm-gold); width: 1.5em; height: 1.5em; }
.pm-chip b { font-size: 1.15rem; color: #fff; line-height: 1; }
.pm-chip span { font: 600 .68rem system-ui; letter-spacing: .03em; color: #f0d9ad; }

/* The switch */
.pm-switch { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 700 .8rem system-ui; color: inherit; white-space: nowrap; }
.pm-switch__track { width: 46px; height: 24px; border-radius: 999px; background: #8a7b70; border: 2px solid #c9a15a; position: relative; transition: background .25s; box-sizing: border-box; }
.pm-switch__track i { position: absolute; top: 1px; left: 1px; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #e9d7ae); box-shadow: 0 1px 3px #0008; transition: transform .25s cubic-bezier(.3,1.4,.5,1); }
.pm-switch.is-on .pm-switch__track { background: linear-gradient(90deg, #b9812a, #f2c867); box-shadow: 0 0 14px #f2c867aa; }
.pm-switch.is-on .pm-switch__track i { transform: translateX(22px); }
.pm-switch.is-on .pm-switch__label { color: var(--pm-gold-2); }
.staff-topnav .pm-switch, .top-actions .pm-switch { padding: 6px 10px; border-radius: 999px; border: 1px solid #c9a15a88; background: #fff8e9; color: #5d1a25; }

/* Tabs */
.pm-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.pm-tabs::-webkit-scrollbar { display: none; }
.pm-tabs a, .pm-rail__nav a, .pm-quick a {
  display: inline-flex; align-items: center; gap: 8px; flex: none; text-decoration: none; color: #ffe9bf;
  padding: 9px 16px; border-radius: 12px; border: 2px solid #c9a15a; background: var(--pm-panel);
  font-size: .95rem; transition: transform .2s, box-shadow .2s, background .2s;
}
.pm-tabs a:hover, .pm-rail__nav a:hover, .pm-quick a:hover { transform: translateY(-2px); box-shadow: 0 0 16px #f2c86788; }
.pm-tabs a.is-on, .pm-rail__nav a.is-on { background: var(--pm-foil); color: var(--pm-ink); border-color: #fff1c2; box-shadow: 0 0 18px #f2c867aa; font-weight: 700; }

/* Frame */
.pm-frame { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 12px; align-items: start; }
.pm-rail { position: sticky; top: 10px; display: grid; gap: 12px; padding: 14px 10px; border-radius: 16px; border: 2px solid var(--pm-gold); background: var(--pm-panel); box-shadow: 0 0 20px #f2c86722; }
.pm-me { display: grid; justify-items: center; gap: 6px; text-align: center; }
.pm-me .avatar, .pm-me .person-avatar { width: 92px; height: 92px; font-size: 1.6rem; }
.pm-me > :first-child { border-radius: 50%; box-shadow: 0 0 0 3px var(--pm-gold), 0 0 0 6px #6d4410, 0 0 22px #f2c867aa; animation: pm-breathe 4s ease-in-out infinite; }
.pm-me strong { padding: 4px 14px; border-radius: 999px; background: var(--pm-foil); color: var(--pm-ink); font-size: .95rem; }
.pm-me small { color: #e8cfa3; font: 600 .72rem system-ui; }
.pm-complex { display: grid; gap: 4px; font: 600 .7rem system-ui; color: #e8cfa3; text-transform: uppercase; letter-spacing: .06em; }
.pm-complex select { padding: 8px 10px; border-radius: 10px; border: 2px solid var(--pm-gold); background: #1e0710; color: #fff3dc; font: 600 .9rem Georgia, serif; }
.pm-rail__nav { display: grid; gap: 6px; }
.pm-rail__nav a { border-width: 1px; border-color: transparent; background: transparent; padding: 8px 10px; }
.pm-shell #main.pm-main { padding: 0; max-width: none; margin: 0; width: auto; }
.pm-main { min-width: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; outline: none; }
.pm-main > * { grid-column: 1 / -1; }
.pm-main > .pm-card:not(.pm-card--wide) { grid-column: auto; }

/* Cards and tiles */
.pm-card { padding: 16px 18px; border-radius: 16px; border: 2px solid var(--pm-gold); background: var(--pm-panel); box-shadow: inset 0 1px 0 #ffffff1c, 0 0 22px #f2c86722; display: grid; gap: 12px; align-content: start; animation: pm-rise .45s ease-out both; }
.pm-card h2 { margin: 0; font-size: 1.35rem; color: var(--pm-gold-2); font-weight: 500; text-shadow: 0 0 12px #f2c86755; }
.pm-card__sub { margin: -6px 0 0; color: #ecd7b0; font: 500 .85rem system-ui; }
.pm-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.pm-tile { position: relative; overflow: hidden; display: grid; gap: 2px; justify-items: center; text-align: center; padding: 12px 8px; border-radius: 14px; border: 2px solid #d9ac5c; background: linear-gradient(160deg, #4d1426, #24060f); box-shadow: inset 0 0 18px #00000055, 0 0 12px #f2c86722; }
.pm-tile b { font-size: 1.9rem; line-height: 1; color: #fff; text-shadow: 0 0 14px #ffd99a88; }
.pm-tile span { font: 600 .72rem system-ui; letter-spacing: .04em; text-transform: uppercase; color: #f3d7a4; }
.pm-tile--hot { border-color: #ff9a5c; box-shadow: 0 0 16px #ff7a3c66; }
.pm-tile--bar i, .pm-bar i { display: block; height: 8px; width: 100%; border-radius: 999px; background: #ffffff1c; position: relative; overflow: hidden; }
.pm-tile--bar i::after, .pm-bar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--pm-fill, 0%); border-radius: inherit; background: linear-gradient(90deg, #6fd36f, #d6ff8a); box-shadow: 0 0 10px #a6ff8a; animation: pm-grow 1.2s ease-out both; }
.pm-bar i::after { background: linear-gradient(90deg, #c8912f, #ffe7b0); box-shadow: 0 0 10px #ffe7b0aa; }
@keyframes pm-grow { from { width: 0 } }
@keyframes pm-rise { from { opacity: 0; transform: translateY(10px) scale(.985) } }
@keyframes pm-breathe { 50% { box-shadow: 0 0 0 3px var(--pm-gold-2), 0 0 0 6px #6d4410, 0 0 36px #ffe7a8 } }

/* Hub map */
.pm-home { display: grid; gap: 12px; }
.pm-map { position: relative; border-radius: 18px; overflow: hidden; border: 3px solid var(--pm-gold); box-shadow: 0 0 34px #f2c86744, inset 0 0 60px #00000088; aspect-ratio: 16 / 9; background: #1a0410; container-type: inline-size; }
.pm-map__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-map__sparkle { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background-image: radial-gradient(2px 2px at 12% 30%, #fff 0, transparent 60%), radial-gradient(2px 2px at 34% 62%, #ffe7a8 0, transparent 60%), radial-gradient(2.5px 2.5px at 58% 22%, #fff 0, transparent 60%), radial-gradient(2px 2px at 76% 70%, #ffd77a 0, transparent 60%), radial-gradient(2px 2px at 90% 36%, #fff 0, transparent 60%);
  background-size: 260px 260px; animation: pm-twinkle 3.2s ease-in-out infinite alternate, sn-dust-rise 50s linear infinite; }
.pm-map__mist { position: absolute; left: 36%; right: 40%; bottom: 14%; height: 30%; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, #9fe3ff55, transparent); filter: blur(6px); animation: pm-mist 3.5s ease-in-out infinite; }
@keyframes pm-twinkle { from { opacity: .35 } to { opacity: 1 } }
@keyframes pm-mist { 50% { transform: scale(1.18); opacity: .6 } }

/* A door: a floating glowing sign over a building */
.pm-door { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); text-decoration: none; z-index: 3; animation: pm-float 4.5s ease-in-out infinite; animation-delay: calc(var(--pm-i) * -.55s); }
.pm-door__sign { position: relative; display: inline-flex; align-items: center; gap: .5em; padding: .45em 1.1em; border-radius: 999px; white-space: nowrap;
  font-size: clamp(11px, 1.75cqw, 26px); color: #fff3dc; border: .14em solid var(--pm-gold);
  background: linear-gradient(180deg, #6a1730f5, #2a0611f5); box-shadow: 0 .3em .9em #000a, 0 0 1.1em #f2c867aa, inset 0 1px 0 #ffffff33; transition: transform .25s cubic-bezier(.3,1.5,.5,1), box-shadow .25s; overflow: hidden; }
.pm-door__sign::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, #fff6 50%, transparent 65%); transform: translateX(-130%); animation: sn-sheen 5s ease-in-out infinite; animation-delay: calc(var(--pm-i) * .6s); }
.pm-door__sign svg { color: var(--pm-gold); }
.pm-door__sign b { font-weight: 500; }
.pm-door__sign em { font: 700 .7em system-ui; background: #ff7a3c; color: #fff; border-radius: 999px; padding: .1em .55em; animation: pm-pulse 1.4s ease-in-out infinite; }
.pm-door__sign small { font: 600 .55em system-ui; color: var(--pm-gold-2); }
.pm-door__ring { position: absolute; left: 50%; top: 50%; width: 120%; aspect-ratio: 1; transform: translate(-50%, -50%) scale(.4); border-radius: 50%; border: 2px solid #ffe7a8; opacity: 0; pointer-events: none; }
.pm-door:hover .pm-door__sign, .pm-door:focus-visible .pm-door__sign { transform: scale(1.14); box-shadow: 0 .4em 1.2em #000c, 0 0 2em #ffe7a8; }
.pm-door:hover .pm-door__ring, .pm-door:focus-visible .pm-door__ring { animation: pm-ring 1s ease-out infinite; }
.pm-door--hub .pm-door__sign { font-size: clamp(14px, 2.6cqw, 40px); flex-direction: column; gap: .1em; border-radius: 1em; padding: .35em 1.2em; }
@keyframes pm-float { 50% { transform: translate(-50%, calc(-50% - 7px)) } }
@keyframes pm-ring { to { transform: translate(-50%, -50%) scale(1.5); opacity: 0 } from { opacity: .9 } }
@keyframes pm-pulse { 50% { transform: scale(1.18) } }
.pm-door--analytics { --x: 16%; --y: 25%; } .pm-door--events { --x: 47%; --y: 22%; } .pm-door--leaders { --x: 80%; --y: 25%; }
.pm-door--tank { --x: 12%; --y: 50%; } .pm-door--hub { --x: 47%; --y: 40%; } .pm-door--journey { --x: 83%; --y: 50%; }
.pm-door--board { --x: 13%; --y: 79%; } .pm-door--referrals { --x: 82%; --y: 79%; }

/* Arrows that run along the streets toward the fountain */
.pm-arrow { position: absolute; left: var(--x); top: var(--y); display: flex; gap: .15em; transform: translate(-50%, -50%) rotate(var(--r, 0deg)); font-size: clamp(8px, 1.5cqw, 22px); pointer-events: none; z-index: 2; }
.pm-arrow b { width: .9em; height: .9em; border-top: .28em solid #ffe7a8; border-right: .28em solid #ffe7a8; transform: rotate(45deg); filter: drop-shadow(0 0 .35em #ffb62e); opacity: .15; animation: pm-run 1.2s linear infinite; }
.pm-arrow b:nth-child(2) { animation-delay: .2s } .pm-arrow b:nth-child(3) { animation-delay: .4s }
@keyframes pm-run { 0%, 100% { opacity: .15 } 40% { opacity: 1 } }
.pm-arrow--1 { --x: 26%; --y: 31%; --r: 40deg }  .pm-arrow--2 { --x: 66%; --y: 31%; --r: 140deg }
.pm-arrow--3 { --x: 25%; --y: 55%; --r: 65deg }  .pm-arrow--4 { --x: 68%; --y: 55%; --r: 115deg }
.pm-arrow--5 { --x: 30%; --y: 84%; --r: -70deg } .pm-arrow--6 { --x: 64%; --y: 84%; --r: -110deg }
.pm-arrow--7 { --x: 33%; --y: 68%; --r: 80deg }  .pm-arrow--8 { --x: 61%; --y: 68%; --r: 100deg }

/* Coins that float up from the fountain and shine */
.pm-floatcoin { position: absolute; left: var(--x); bottom: 8%; z-index: 2; pointer-events: none; opacity: 0; animation: pm-coin var(--d, 6s) ease-in infinite; animation-delay: var(--w, 0s); filter: drop-shadow(0 0 8px #ffd77a); }
.pm-floatcoin svg { width: clamp(16px, 2.6cqw, 36px); height: auto; animation: pm-spin 2.2s linear infinite; }
@keyframes pm-coin { 0% { transform: translateY(0) scale(.5); opacity: 0 } 15% { opacity: 1 } 100% { transform: translateY(-34cqw) scale(1.25); opacity: 0 } }
@keyframes pm-spin { 50% { transform: scaleX(.15) } }
.pm-floatcoin--1 { --x: 46%; --d: 6s; --w: 0s } .pm-floatcoin--2 { --x: 52%; --d: 7s; --w: 1.2s } .pm-floatcoin--3 { --x: 49%; --d: 5.5s; --w: 2.4s }
.pm-floatcoin--4 { --x: 44%; --d: 8s; --w: 3.1s } .pm-floatcoin--5 { --x: 55%; --d: 6.5s; --w: 4s } .pm-floatcoin--6 { --x: 50%; --d: 7.5s; --w: 5s } .pm-floatcoin--7 { --x: 47%; --d: 9s; --w: 6s }

/* Quick actions, lists */
.pm-quick { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 16px; border: 2px solid var(--pm-gold); background: var(--pm-panel); }
.pm-quick > span { font-size: 1.3rem; color: var(--pm-gold-2); margin-right: 8px; }
.pm-quick a { flex: 1 1 130px; justify-content: center; }
.pm-quick a svg { color: var(--pm-gold); }
.pm-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pm-list li { display: grid; grid-template-columns: auto auto 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; border: 1px solid #c9a15a66; background: #ffffff0d; }
.pm-list:not(.pm-list--rank) li { grid-template-columns: auto 1fr auto; }
.pm-list strong { display: block; font-weight: 500; color: #fff; }
.pm-list small { font: 500 .78rem system-ui; color: #e8cfa3; }
.pm-list em { font: 700 .78rem system-ui; color: var(--pm-gold-2); white-space: nowrap; }
.pm-list em.is-hot { color: #ffb38a; text-shadow: 0 0 10px #ff7a3c; }
.pm-face { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 700 .8rem system-ui; color: var(--pm-ink); background: radial-gradient(circle at 35% 30%, #fff6dd, #e8c98a); box-shadow: 0 0 0 2px var(--pm-gold), 0 0 10px #f2c86766; }
.pm-medal { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 800 .8rem system-ui; color: #3a1b08; background: var(--pm-foil); }
.pm-medal--2 { background: linear-gradient(180deg, #fff, #b9bec6); } .pm-medal--3 { background: linear-gradient(180deg, #ffd0a0, #b0703a); }
.pm-link { color: var(--pm-gold-2); font: 600 .85rem system-ui; text-decoration: none; justify-self: start; }
.pm-link:hover { text-decoration: underline; }
.pm-empty { padding: 18px; border-radius: 12px; border: 1px dashed #c9a15a88; text-align: center; }
.pm-empty h3 { margin: 0 0 4px; color: var(--pm-gold-2); font-weight: 500; } .pm-empty p { margin: 0; font: 500 .85rem system-ui; color: #e8cfa3; }
.pm-shell .board-rank { color: #fff; }

/* Journey stations */
.pm-stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; position: relative; }
.pm-stages::before { content: ""; position: absolute; left: 8%; right: 8%; top: 36px; height: 6px; border-radius: 999px; background: linear-gradient(90deg, #c8912f, #ffe7b0, #c8912f); background-size: 200% 100%; animation: pm-trail 3s linear infinite; box-shadow: 0 0 14px #f2c867aa; }
@keyframes pm-trail { to { background-position: -200% 0 } }
.pm-stage { position: relative; display: grid; justify-items: center; text-align: center; gap: 6px; }
.pm-stage__dot { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 1.7rem; color: var(--pm-gold-2); background: radial-gradient(circle at 35% 30%, #7a1c38, #2a0611); border: 4px solid var(--pm-gold); box-shadow: 0 0 22px #f2c867aa; animation: pm-breathe-dot 3.5s ease-in-out infinite; }
.pm-stage:nth-child(2) .pm-stage__dot { animation-delay: .4s } .pm-stage:nth-child(3) .pm-stage__dot { animation-delay: .8s } .pm-stage:nth-child(4) .pm-stage__dot { animation-delay: 1.2s } .pm-stage:nth-child(5) .pm-stage__dot { animation-delay: 1.6s }
@keyframes pm-breathe-dot { 50% { box-shadow: 0 0 40px #ffe7a8; transform: scale(1.06) } }
.pm-stage strong { padding: 4px 12px; border-radius: 999px; background: var(--pm-foil); color: var(--pm-ink); font-size: .95rem; }
.pm-stage p { margin: 0; font: 500 .8rem system-ui; color: #ecd7b0; }
.pm-stage > b { font-size: 1.6rem; color: #fff; line-height: 1; } .pm-stage > small { font: 600 .68rem system-ui; text-transform: uppercase; color: #f3d7a4; }

/* Analytics */
.pm-bars { display: grid; gap: 12px; }
.pm-bar { display: grid; grid-template-columns: 70px 1fr auto; gap: 10px; align-items: center; font: 600 .85rem system-ui; }
.pm-bar i { height: 12px; } .pm-bar b { color: #fff; }
.pm-donut-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.pm-donut { width: 150px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 24px #f2c86755; animation: pm-rise .8s ease-out both; }
.pm-donut span { width: 62%; aspect-ratio: 1; border-radius: 50%; background: #2a0611; display: grid; place-content: center; text-align: center; font: 600 .7rem system-ui; color: #e8cfa3; }
.pm-donut b { font: 500 1.6rem Georgia, serif; color: #fff; }
.pm-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font: 600 .85rem system-ui; }
.pm-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; }
.pm-tile--coin svg { animation: pm-spin 4s linear infinite; filter: drop-shadow(0 0 8px #ffd77a88); }

/* Leaderboard */
.pm-podium { display: flex; justify-content: center; align-items: flex-end; gap: 14px; }
.pm-podium__spot { display: grid; justify-items: center; gap: 6px; padding: 14px 18px; border-radius: 14px; border: 2px solid var(--pm-gold); background: linear-gradient(160deg, #4d1426, #24060f); min-width: 120px; }
.pm-podium__spot--1 { padding-block: 26px; box-shadow: 0 0 30px #f2c867aa; animation: pm-breathe-dot 3.5s ease-in-out infinite; }
.pm-podium__spot .pm-face { width: 64px; height: 64px; font-size: 1.1rem; } .pm-podium__spot--1 .pm-face { width: 84px; height: 84px; }
.pm-podium__spot strong { font-weight: 500; } .pm-podium__spot small { font: 500 .72rem system-ui; color: #e8cfa3; }
.pm-table { display: grid; gap: 4px; font: 500 .9rem system-ui; }
.pm-table__head, .pm-table__row { display: grid; grid-template-columns: 40px minmax(120px, 2fr) 60px 1.2fr 1fr 1fr; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 10px; }
.pm-table__head { color: var(--pm-gold-2); font-weight: 700; text-transform: uppercase; font-size: .72rem; letter-spacing: .05em; }
.pm-table__row { background: linear-gradient(115deg, #fae7be, #fff6e4 48%, #e8c48b); color: #381a13; }
.pm-name { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: #6a1023; cursor: pointer; text-align: left; }
.pm-table__row .board-rank { color: #381a13; }

/* Existing screens shown inside Play Mode */
.pm-embed { min-width: 0; }
.pm-embed--light { padding: 16px; border-radius: 16px; border: 2px solid var(--pm-gold); background: linear-gradient(160deg, #fffaf0, #f6e9d0); color: #29232a; font-family: system-ui, sans-serif; box-shadow: 0 0 22px #f2c86733; }
.pm-embed:not(.pm-embed--light) .sn-page-head h1, .pm-embed:not(.pm-embed--light) .sn-tank-section h2 { color: var(--pm-gold-2); }
.pm-embed:not(.pm-embed--light) .sn-page-head p, .pm-embed:not(.pm-embed--light) .sn-tank-section__head p, .pm-embed:not(.pm-embed--light) .sn-page-note { color: #ecd7b0; }
.pm-embed--board .property-management, .pm-embed--board > details { color: #ecd7b0; }

/* Phone */
@media (max-width: 860px) {
  .pm-frame { grid-template-columns: minmax(0, 1fr); }
  .pm-rail { position: static; grid-template-columns: auto 1fr; align-items: center; padding: 10px; }
  .pm-rail__nav { display: none; }
  .pm-me { grid-template-columns: auto 1fr; justify-items: start; text-align: left; column-gap: 10px; }
  .pm-me > :first-child { grid-row: 1 / span 2; } .pm-me .avatar, .pm-me .person-avatar { width: 52px; height: 52px; font-size: 1rem; }
  .pm-brand img { height: 42px; } .pm-title strong { font-size: 1rem; }
  .pm-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; order: 5; }
  .pm-chips .pm-chip:last-child { grid-column: 1 / -1; }
  .pm-main, .pm-side { grid-template-columns: minmax(0, 1fr); }
  .pm-main > .pm-card:not(.pm-card--wide) { grid-column: 1 / -1; }
  .pm-map { aspect-ratio: 4 / 5; }
  .pm-map__art { object-position: 50% 60%; }
  .pm-door__sign { font-size: 12px; padding: .5em .8em; } .pm-door--hub .pm-door__sign { font-size: 16px; }
  .pm-door--analytics { --x: 24%; --y: 16% } .pm-door--events { --x: 50%; --y: 7% } .pm-door--leaders { --x: 76%; --y: 16% }
  .pm-door--tank { --x: 22%; --y: 36% } .pm-door--journey { --x: 76%; --y: 36% } .pm-door--hub { --x: 50%; --y: 52% }
  .pm-door--board { --x: 26%; --y: 86% } .pm-door--referrals { --x: 74%; --y: 86% }
  .pm-arrow { display: none; }
  .pm-quick a { flex: 1 1 100%; padding: 13px 16px; }
  .pm-stages { grid-template-columns: minmax(0, 1fr); } .pm-stages::before { left: 35px; right: auto; top: 8%; bottom: 8%; width: 6px; height: auto; }
  .pm-stage { grid-template-columns: 72px 1fr; justify-items: start; text-align: left; column-gap: 12px; } .pm-stage__dot { grid-row: 1 / span 4; }
  .pm-table__head { display: none; }
  .pm-table__row { grid-template-columns: 30px 1fr auto; } .pm-table__row > :nth-child(n+5) { display: none; }
  .staff-topnav .pm-switch__label, .top-actions .pm-switch__label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pm-shell *, .pm-shell *::before, .pm-shell *::after { animation: none !important; transition: none !important; }
  .pm-arrow b { opacity: .8; } .pm-floatcoin { display: none; } .pm-map__video { display: none; }
}
.pm-embed .sn-card, .pm-embed .sn-empty { color: #29232a; font-family: system-ui, sans-serif; }
.pm-embed .sn-field .sn-empty { color: #fff3dc; }

/* ===== Play Mode, rich pass: match the mockups ============================ */
/* Thick bevelled gold frames, foil lettering, glossy buttons, 3D gold icons. */
.pm-shell {
  --pm-frame: linear-gradient(145deg, #fff3c4 0%, #f2c867 18%, #a8741f 38%, #ffe7a8 55%, #b9812a 75%, #fff1c2 100%);
  --pm-leather: radial-gradient(120% 90% at 30% 0%, #7a1a36 0%, #4a0e22 45%, #2a0611 100%);
  background:
    radial-gradient(60% 40% at 50% 0%, #a3274a55, transparent 70%),
    linear-gradient(#2a0611e6, #1a0309f2), url('/assets/burgundy-board/board-field.webp') center/cover fixed, #1a0309;
}
.pm-ico { width: 1.6em; height: 1.6em; object-fit: contain; flex: none; filter: drop-shadow(0 2px 3px #000a) drop-shadow(0 0 6px #ffcf6a66); }

/* One frame recipe: gold bevel outside, leather inside. */
.pm-chip, .pm-tabs a, .pm-rail, .pm-panel, .pm-quick, .pm-tile, .pm-map, .pm-quick a, .pm-podium__spot {
  border: 3px solid transparent !important;
  background: var(--pm-leather) padding-box, var(--pm-frame) border-box !important;
  box-shadow: 0 0 0 1px #3a0a16, 0 6px 18px #000a, 0 0 22px #f2c86733, inset 0 1px 0 #ffffff2e, inset 0 0 26px #00000066 !important;
}
.pm-map { border-width: 4px !important; background: #1a0410 padding-box, var(--pm-frame) border-box !important; }

/* Top bar */
.pm-top { padding: 4px 4px 0; }
.pm-brand img { height: 78px; }
.pm-title strong { font-size: 1.6rem; background: var(--pm-foil); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 2px 2px #000a); }
.pm-chip { border-radius: 16px; padding: 6px 18px 6px 10px; grid-template-columns: auto auto; }
.pm-chip .pm-ico { grid-row: 1 / span 2; width: 2.5em; height: 2.5em; }
.pm-chip b { font-size: 1.5rem; }
.pm-chip span { font: 500 .85rem Georgia, serif; color: #ffe9bf; letter-spacing: 0; }

/* Tabs */
.pm-tabs { gap: 10px; padding: 4px 4px 8px; }
.pm-tabs a { border-radius: 14px; padding: 8px 18px 8px 12px; font-size: 1.1rem; gap: 10px; }
.pm-tabs a .pm-ico { width: 1.9em; height: 1.9em; }
.pm-tabs a.is-on, .pm-rail__nav a.is-on {
  background: linear-gradient(180deg, #fff3c4, #f2c867 45%, #c8912f 55%, #ffe39a) padding-box, var(--pm-frame) border-box !important;
  color: #2a0611; text-shadow: 0 1px 0 #fff6; animation: pm-tab-glow 2.6s ease-in-out infinite;
}
@keyframes pm-tab-glow { 50% { box-shadow: 0 0 0 1px #3a0a16, 0 6px 18px #000a, 0 0 34px #ffd77acc, inset 0 1px 0 #ffffff66 } }

/* Rail */
.pm-rail { border-radius: 20px; padding: 16px 10px; }
.pm-me__photo { position: relative; width: 130px; height: 130px; display: grid; place-items: center; }
.pm-me__laurel { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); filter: drop-shadow(0 0 10px #ffd77a99); animation: pm-breathe-img 4s ease-in-out infinite; }
@keyframes pm-breathe-img { 50% { filter: drop-shadow(0 0 22px #ffe7a8); transform: scale(1.03) } }
.pm-me__photo > :not(.pm-me__laurel) { position: relative; width: 88px !important; height: 88px !important; border-radius: 50%; box-shadow: 0 0 0 3px #f2c867, 0 0 0 5px #6d4410; animation: none; }
.pm-me > :first-child { box-shadow: none; animation: none; }
.pm-me strong { font-size: 1.05rem; padding: 5px 18px; box-shadow: 0 2px 6px #000a, inset 0 1px 0 #fff8; }
.pm-rail__nav a { font-size: 1.05rem; gap: 10px; padding: 8px 10px; border: 2px solid transparent; border-radius: 12px; }
.pm-rail__nav a .pm-ico { width: 1.8em; height: 1.8em; }
.pm-rail__nav a:not(.is-on) { background: transparent !important; box-shadow: none !important; border-color: transparent !important; }
.pm-rail__nav a:not(.is-on):hover { background: #ffffff12 !important; }

/* Panels with a banner title */
.pm-panel { border-radius: 20px; padding: 0 18px 18px; display: grid; gap: 14px; align-content: start; animation: pm-rise .45s ease-out both; min-width: 0; }
.pm-panel--half { grid-column: auto !important; }
.pm-panel__head { margin: 0 -18px; padding: 12px 20px 10px; border-bottom: 2px solid #c9a15a88; border-radius: 17px 17px 0 0;
  background: linear-gradient(180deg, #8a1f3fcc, #4a0e22cc); box-shadow: inset 0 1px 0 #ffffff2a; }
.pm-panel__head h2 { margin: 0; font: 500 1.7rem Georgia, serif; background: var(--pm-foil); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 2px #000c); }
.pm-panel__head p { margin: 2px 0 0; font: 500 .95rem Georgia, serif; color: #f5e2bd; }

/* Tiles: big number beside a 3D icon */
.pm-tiles { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.pm-tile { grid-template-columns: auto 1fr; display: grid; align-items: center; justify-items: start; text-align: left; gap: 12px; padding: 12px 16px; border-radius: 16px; }
.pm-tile .pm-ico { width: 3.4rem; height: 3.4rem; }
.pm-tile > div { display: grid; gap: 2px; }
.pm-tile b { font-size: 2.3rem; }
.pm-tile span { font: 500 .9rem Georgia, serif; text-transform: none; letter-spacing: 0; color: #ffe9bf; }
.pm-tile--hot { animation: pm-hot 1.6s ease-in-out infinite; }
@keyframes pm-hot { 50% { box-shadow: 0 0 0 1px #3a0a16, 0 0 30px #ff7a3ccc, inset 0 0 26px #ff7a3c33 } }
.pm-tile--coin svg { width: 3.4rem; height: 3.4rem; }

/* Glossy gold button */
.pm-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; justify-self: start; cursor: pointer; text-decoration: none;
  padding: 9px 22px; border-radius: 999px; border: 2px solid #fff1c2; font: 700 1rem Georgia, serif; color: #2a0611;
  background: linear-gradient(180deg, #fff3c4, #f2c867 45%, #c8912f 55%, #ffe39a);
  box-shadow: 0 3px 0 #7a4f12, 0 6px 14px #000a, inset 0 1px 0 #fff9; transition: transform .15s, box-shadow .15s; position: relative; overflow: hidden;
}
.pm-gold::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, #fff9 50%, transparent 65%); transform: translateX(-130%); animation: sn-sheen 4s ease-in-out infinite; }
.pm-gold:hover { transform: translateY(-2px); box-shadow: 0 5px 0 #7a4f12, 0 10px 22px #000c, 0 0 20px #ffd77a, inset 0 1px 0 #fff9; }
.pm-gold:active { transform: translateY(2px); box-shadow: 0 1px 0 #7a4f12, inset 0 1px 0 #fff9; }
.pm-gold--small { padding: 6px 16px; font-size: .9rem; }

/* Map signs: plaque style with a 3D icon */
.pm-door__sign { border: .16em solid transparent; background: linear-gradient(180deg, #7a1a36f7, #2a0611f7) padding-box, var(--pm-frame) border-box; padding: .35em 1.2em .35em .6em; font-size: clamp(12px, 2.05cqw, 30px); box-shadow: 0 .35em 1em #000c, 0 0 1.3em #ffcf6acc, inset 0 1px 0 #ffffff44; }
.pm-door__sign .pm-ico { width: 1.7em; height: 1.7em; }
.pm-door__sign b { background: linear-gradient(180deg, #fff, #ffe7a8); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 1px #000c); }
.pm-door--hub .pm-door__sign { font-size: clamp(16px, 3.2cqw, 48px); padding: .3em 1.2em .4em; }
.pm-door--hub .pm-door__sign .pm-ico { width: 1.5em; height: 1.5em; }
.pm-door--hub .pm-door__sign small { font: 500 .42em Georgia, serif; }

/* Street arrows: big, bright, running toward the fountain */
.pm-arrow { font-size: clamp(12px, 2.5cqw, 36px); gap: 0; }
.pm-arrow b { width: 1em; height: 1em; margin-left: -.35em; border-top: .34em solid #fff3c4; border-right: .34em solid #ffcf4a; filter: drop-shadow(0 0 .25em #ff9d1e) drop-shadow(0 0 .6em #ffcf4a); opacity: .25; animation: pm-run 1s linear infinite; }
.pm-arrow b:nth-child(2) { animation-delay: .16s } .pm-arrow b:nth-child(3) { animation-delay: .32s }
@keyframes pm-run { 0%, 100% { opacity: .25; transform: rotate(45deg) scale(.9) } 35% { opacity: 1; transform: rotate(45deg) scale(1.15) } }

/* Quick actions */
.pm-quick { border-radius: 20px; padding: 12px 18px; }
.pm-quick > span { font-size: 1.7rem; background: var(--pm-foil); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 18px; margin-right: 10px; border-right: 2px solid #c9a15a88; }
.pm-quick a { border-radius: 999px; font-size: 1.1rem; padding: 8px 18px; }
.pm-quick a .pm-ico { width: 1.9em; height: 1.9em; }

/* Lists, faces */
.pm-list li { border: 1px solid #c9a15a88; background: linear-gradient(115deg, #fae7be, #fff6e4 48%, #e8c48b); color: #381a13; border-radius: 12px; }
.pm-list strong { color: #381a13; font-weight: 700; } .pm-list small { color: #6b4a3a; }
.pm-list em { color: #6a1023; } .pm-list em.is-hot { color: #c7350b; text-shadow: none; animation: pm-pulse 1.4s ease-in-out infinite; }
.pm-list .board-rank, .pm-table__row .board-rank { color: #381a13; }
.pm-face { width: 42px; height: 42px; font-size: .85rem; box-shadow: 0 0 0 2px #f2c867, 0 0 0 4px #6d4410, 0 2px 6px #000a; }
.pm-face--platinum { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #7d848e, 0 0 10px #eef2f7; }
.pm-face--diamond { box-shadow: 0 0 0 2px #cdeeff, 0 0 0 4px #2c5f93, 0 0 12px #8fd0ff; }
.pm-empty .pm-ico { width: 4rem; height: 4rem; margin: 0 auto 6px; display: block; opacity: .9; }

/* Tables: cream rows like the mockup */
.pm-table { gap: 6px; font: 500 1rem Georgia, serif; }
.pm-table__head { font: 700 .95rem Georgia, serif; text-transform: none; letter-spacing: 0; color: #ffe7a8; padding: 4px 14px; }
.pm-table__row { padding: 8px 14px; border-radius: 12px; border: 1px solid #c9a15a; box-shadow: 0 2px 6px #0008, inset 0 1px 0 #fff8; transition: transform .15s, box-shadow .15s; }
.pm-table__row:hover { transform: translateX(4px); box-shadow: 0 2px 6px #0008, 0 0 16px #ffd77a99, inset 0 1px 0 #fff8; }
.pm-table--tank .pm-table__head, .pm-table--tank .pm-table__row { grid-template-columns: minmax(170px, 1.6fr) 1.1fr 1.6fr .8fr auto; }
.pm-cell-who { display: flex; align-items: center; gap: 10px; }
.pm-mini { display: inline-block; width: 70px; height: 8px; border-radius: 999px; background: #38151322; margin-right: 8px; position: relative; overflow: hidden; vertical-align: middle; }
.pm-mini::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--pm-fill); background: linear-gradient(90deg, #c8912f, #f2c867); animation: pm-grow 1.2s ease-out both; }
.pm-time { font-weight: 700; } .pm-time.is-hot { color: #c7350b; animation: pm-pulse 1.4s ease-in-out infinite; display: inline-block; }
.pm-more { border-radius: 14px; border: 1px dashed #c9a15a88; padding: 10px 14px; }
.pm-more summary { cursor: pointer; color: #ffe7a8; font-size: 1rem; }

/* Journey: big gold rings with arrows between */
.pm-stages { gap: 6px; padding: 8px 0 4px; }
.pm-stages::before { top: 52px; height: 8px; left: 10%; right: 10%; }
.pm-stage__dot { width: 104px; height: 104px; border: 5px solid transparent; background: radial-gradient(circle at 35% 30%, #8a1f3f, #2a0611) padding-box, var(--pm-frame) border-box; box-shadow: 0 0 0 2px #3a0a16, 0 0 26px #ffcf6aaa, inset 0 0 18px #000a; z-index: 1; }
.pm-stage__dot .pm-ico, .pm-stage__dot svg { width: 58px; height: 58px; }
.pm-stage:not(:last-child)::after { content: "➜"; position: absolute; right: -18px; top: 32px; font-size: 2rem; color: #ffe7a8; text-shadow: 0 0 12px #ffb62e; z-index: 2; animation: pm-nudge 1.4s ease-in-out infinite; }
@keyframes pm-nudge { 50% { transform: translateX(6px) } }
.pm-stage strong { font-size: 1.1rem; padding: 5px 16px; box-shadow: 0 2px 6px #000a, inset 0 1px 0 #fff8; }
.pm-stage p { font: 500 .95rem Georgia, serif; }
.pm-stage > b { font-size: 2rem; }

/* Analytics */
.pm-bar { font: 500 1rem Georgia, serif; grid-template-columns: 80px 1fr auto; } .pm-bar i { height: 16px; }
.pm-donut { width: 190px; box-shadow: 0 0 0 4px #f2c867, 0 0 0 6px #6d4410, 0 0 30px #f2c86788; }
.pm-donut b { font-size: 2.2rem; } .pm-legend { font: 500 1.05rem Georgia, serif; }

/* Leaderboard: podium beside the table */
.pm-leader { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(0, 1.25fr); gap: 18px; align-items: center; }
.pm-podium { gap: 12px; align-items: flex-end; padding-top: 44px; }
.pm-podium__spot { position: relative; border-radius: 16px; padding: 16px 14px; min-width: 0; flex: 1; }
.pm-podium__spot--1 { padding-block: 30px; }
.pm-podium__face { position: relative; width: 110px; height: 110px; display: grid; place-items: center; }
.pm-podium__spot--1 .pm-podium__face { width: 140px; height: 140px; }
.pm-podium__laurel { position: absolute; inset: 0; width: 100%; height: 100%; }
.pm-podium__face .pm-face { position: relative; width: 64%; height: 64%; font-size: 1.3rem; }
.pm-podium__face .pm-medal { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 34px; height: 34px; font-size: 1rem; box-shadow: 0 2px 6px #000a; }
.pm-podium__crown { position: absolute; top: -46px; left: 50%; width: 70px; height: 70px; transform: translateX(-50%); animation: pm-float-crown 3s ease-in-out infinite; }
@keyframes pm-float-crown { 50% { transform: translateX(-50%) translateY(-6px) rotate(3deg) } }
.pm-podium__spot strong { font-size: 1.1rem; text-align: center; }
.pm-table--leaders .pm-table__head, .pm-table--leaders .pm-table__row { grid-template-columns: 34px minmax(110px, 2fr) 50px 1.3fr .9fr .8fr; }

.pm-embed--light { border: 0; box-shadow: none; border-radius: 12px; }

@media (max-width: 860px) {
  .pm-brand img { height: 52px; } .pm-title strong { font-size: 1.15rem; }
  .pm-chip b { font-size: 1.2rem; } .pm-chip .pm-ico { width: 2em; height: 2em; }
  .pm-me__photo { width: 76px; height: 76px; } .pm-me__photo > :not(.pm-me__laurel) { width: 50px !important; height: 50px !important; }
  .pm-me { grid-template-columns: auto 1fr; } .pm-me__photo { grid-row: 1 / span 2; }
  .pm-panel__head h2 { font-size: 1.35rem; }
  .pm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pm-tile b { font-size: 1.7rem; } .pm-tile .pm-ico { width: 2.4rem; height: 2.4rem; }
  .pm-panel--half { grid-column: 1 / -1 !important; }
  .pm-leader { grid-template-columns: minmax(0, 1fr); }
  .pm-table--tank .pm-table__head, .pm-table__head { display: none; }
  .pm-table--tank .pm-table__row { grid-template-columns: 1fr auto; row-gap: 6px; } .pm-table--tank .pm-table__row > :nth-child(3) { grid-column: 1 / -1; }
  .pm-table--tank .pm-table__row > :nth-child(n+5) { display: block; grid-column: 1 / -1; } .pm-table--tank .pm-gold { width: 100%; padding: 12px; }
  .pm-table--leaders .pm-table__row { grid-template-columns: 30px 1fr auto; }
  .pm-stages::before { left: 50px; top: 6%; bottom: 6%; width: 8px; } .pm-stage { grid-template-columns: 104px 1fr; } .pm-stage:not(:last-child)::after { display: none; }
  .pm-quick > span { border: 0; width: 100%; } .pm-door__sign { font-size: 12.5px; }
}

/* Play Mode, match pass: podium at top, bright street arrows, foil sign text */
.pm-leader { align-items: start; }
.pm-podium { position: sticky; top: 12px; }
.pm-arrow b { opacity: .55; animation: pm-run2 1s linear infinite; }
@keyframes pm-run2 { 0%, 100% { opacity: .45; filter: drop-shadow(0 0 .2em #ff9d1e); } 35% { opacity: 1; filter: drop-shadow(0 0 .3em #fff3c4) drop-shadow(0 0 .9em #ffb62e); } }
@media (prefers-reduced-motion: reduce) { .pm-arrow b { animation: none; opacity: .85; } }
/* Solid gold chevrons, always above the map video */
.pm-map { isolation: isolate; }
.pm-map__art { z-index: 0; }
.pm-arrow { z-index: 3; gap: 0; filter: drop-shadow(0 0 .18em #ff8a00) drop-shadow(0 0 .5em #ffc94a); will-change: transform; }
.pm-arrow b { width: .95em; height: 1.15em; margin-left: -.3em; border: 0; transform: none; filter: none; background: linear-gradient(180deg, #fffbe0, #ffd65a 45%, #ff9d1e); clip-path: polygon(0 0, 45% 0, 100% 50%, 45% 100%, 0 100%, 55% 50%); opacity: .6; animation: pm-run3 1s linear infinite; }
.pm-arrow b:first-child { margin-left: 0; }
@keyframes pm-run3 { 0%, 100% { opacity: .5 } 35% { opacity: 1 } }
@media (prefers-reduced-motion: reduce) { .pm-arrow b { animation: none; opacity: .9; } }
/* Arrows stay solid; the light runs along them (paint animation, safe over video) */
.pm-arrow b { opacity: 1; background: linear-gradient(180deg, #ff9d1e, #ffd65a 30%, #fffdf0 50%, #ffd65a 70%, #ff9d1e) 0 0 / 100% 300%; animation: pm-run4 1.1s linear infinite; }
@keyframes pm-run4 { from { background-position: 0 100% } to { background-position: 0 0 } }
@media (prefers-reduced-motion: reduce) { .pm-arrow b { animation: none; opacity: 1; } }
@media (max-width: 860px) { .pm-podium { position: static; } }

/* ===== Play Mode, premium pass (3 Dec): rank art, hub, leaderboard, staff ===== */
/* Photos. The frame is chosen by the rank the system holds. No rank: gold ring. */
.pm-shell .pm-face, .complex-hover-card .pm-face { --pm-face: 44px; position: relative; width: var(--pm-face); height: var(--pm-face); flex: none; display: inline-block; border-radius: 50%; background: none; box-shadow: none; font-size: 0; }
.pm-face__pic { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font: 700 calc(var(--pm-face) * .32) system-ui, sans-serif; color: #2a0611; background: radial-gradient(circle at 35% 30%, #fff6dd, #e8c98a); box-shadow: 0 0 0 2px #f2c867, 0 0 0 4px #6d4410, 0 2px 6px #000a; }
.pm-face__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-face__frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 2px 4px #000b); }
.pm-shell .pm-face.pm-face--gold, .pm-shell .pm-face.pm-face--platinum, .pm-shell .pm-face.pm-face--diamond { width: calc(var(--pm-face) * 1.5); height: calc(var(--pm-face) * 1.5); margin: calc(var(--pm-face) * -.14) calc(var(--pm-face) * -.1); box-shadow: none; }
.pm-face--gold .pm-face__pic, .pm-face--platinum .pm-face__pic, .pm-face--diamond .pm-face__pic { inset: auto; box-shadow: none; font-size: calc(var(--pm-face) * .3); }
.pm-face--gold .pm-face__pic { left: 22%; top: 13.3%; width: 55%; height: 55%; }
.pm-face--platinum .pm-face__pic { left: 19.2%; top: 13.8%; width: 60%; height: 60%; background: radial-gradient(circle at 35% 30%, #fff, #cfd6df); }
.pm-face--diamond .pm-face__pic { left: 21.3%; top: 19.3%; width: 57%; height: 57%; background: radial-gradient(circle at 35% 30%, #f1fbff, #a9d8f5); }
.pm-shell .pm-face--xl { --pm-face: 84px; }
.pm-shell .pm-face--me { --pm-face: 104px; }

/* Rank pill: the coin and the word, one colour per rank. */
.pm-rank { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px 3px 4px; border-radius: 999px; font: 700 .86rem Georgia, serif; white-space: nowrap; border: 1px solid #c9a15a; background: linear-gradient(180deg, #4b1124, #22060e); color: #ffe7a8; box-shadow: inset 0 1px 0 #ffffff26, 0 2px 5px #0009; }
.pm-rank .sn-coin { width: 26px; height: 26px; filter: drop-shadow(0 1px 2px #000a); }
.pm-rank--platinum { color: #f4f6fa; border-color: #cfd6df; }
.pm-rank--diamond { color: #a9dcff; border-color: #6fb6ea; }
.pm-rank--none { padding: 4px 12px; font: 600 .74rem system-ui, sans-serif; color: #e8cfa3; border-color: #c9a15a66; }
.pm-plate { display: block; max-width: 100%; padding: 5px 16px; border-radius: 999px; background: var(--pm-foil); color: #2a0611; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-shadow: 0 2px 6px #000a, inset 0 1px 0 #fff8; }
.pm-shell .sn-coin { filter: drop-shadow(0 2px 3px #000a); }

/* Small hover note for sample data. Real data opens the full board card. */
[data-pm-tip] { position: relative; }
[data-pm-tip]:hover::after, [data-pm-tip]:focus-visible::after { content: attr(data-pm-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); z-index: 20; width: max-content; max-width: 260px; padding: 8px 12px; border-radius: 10px; font: 600 .8rem system-ui, sans-serif; color: #fff3dc; background: #1a0309; border: 1px solid #f2c867; box-shadow: 0 6px 18px #000c; white-space: normal; text-align: center; pointer-events: none; }
.pm-shell [data-live-position], .pm-shell [data-pm-tip] { cursor: pointer; }
.pm-shell [data-live-position]:focus-visible, .pm-shell [data-pm-tip]:focus-visible { outline: 2px solid #ffe7a8; outline-offset: 2px; }

/* Top bar */
.pm-shell .pm-brand img { height: 96px; }
.pm-shell .pm-tabs a.is-on { background: linear-gradient(180deg, #6a1a30, #2a0611) padding-box, var(--pm-frame) border-box !important; color: #fff3dc; text-shadow: 0 1px 2px #000c; box-shadow: 0 0 0 1px #ffe7a8, 0 0 20px #ffd77acc, inset 0 1px 0 #ffffff40 !important; animation: none; }
.pm-staff { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 14px; border: 1px solid #c9a15a; background: linear-gradient(180deg, #2c0713, #1a0309); font: 600 .86rem system-ui, sans-serif; color: #f0d9ad; }
.pm-staff__tag { padding: 3px 10px; border-radius: 999px; background: var(--pm-foil); color: #2a0611; font: 800 .7rem system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.pm-staff label { display: inline-flex; align-items: center; gap: 8px; }
.pm-staff select { padding: 7px 10px; border-radius: 10px; border: 1px solid #f2c867; background: #1e0710; color: #fff3dc; font: 600 .9rem system-ui, sans-serif; max-width: 260px; }
.pm-staff__draft { color: #ffb37a; }
.pm-staff > .secondary { margin-left: auto; padding: 7px 14px; border-radius: 999px; border: 1px solid #f2c867; background: #1e0710; color: #ffe7a8; font: 600 .86rem system-ui, sans-serif; cursor: pointer; }
.pm-ghost { display: inline-flex; align-items: center; justify-content: center; padding: 7px 14px; border-radius: 999px; border: 1px solid #f2c867; background: #1e0710; color: #ffe7a8; font: 600 .86rem system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.pm-ghost:hover, .pm-staff > .secondary:hover { background: #3a0d1c; }
.pm-gold[disabled] { opacity: .5; cursor: not-allowed; }

/* Rail */
.pm-shell .pm-rail { padding: 18px 12px; gap: 14px; }
.pm-shell .pm-me { gap: 10px; }
.pm-shell .pm-me > :first-child { animation: none; box-shadow: none; }
.pm-rail__nav a + a { border-top-color: #c9a15a33 !important; border-radius: 12px; }
.pm-rail__doc { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 12px; border: 1px dashed #c9a15a; color: #ffe7a8; font: 600 .86rem system-ui, sans-serif; text-decoration: none; }
.pm-rail__doc:hover { background: #ffffff12; }
.pm-shell .pm-complex select { border-radius: 999px; padding: 9px 14px; }

/* Hub map: signs sit on the buildings, clear of the road and its arrows. */
.pm-shell .pm-map { aspect-ratio: 1920 / 1085; }
.pm-shell .pm-door__sign { font-size: clamp(10px, 1.55cqw, 22px); padding: .32em 1em .32em .5em; gap: .4em; }
.pm-shell .pm-door__sign .pm-ico { width: 1.6em; height: 1.6em; }
.pm-shell .pm-door--hub .pm-door__sign { font-size: clamp(13px, 2.3cqw, 34px); padding: .28em 1.1em .34em; border-radius: .8em; }
.pm-shell .pm-door--hub .pm-door__sign small { font: 600 .44em system-ui, sans-serif; letter-spacing: .02em; }
.pm-door__count { position: absolute; right: -.5em; top: -.7em; min-width: 1.7em; padding: .12em .4em; border-radius: 999px; font: 800 clamp(10px, 1.2cqw, 16px) system-ui, sans-serif; text-align: center; color: #fff; background: #ff7a3c; border: 2px solid #fff1c2; box-shadow: 0 2px 6px #000a; animation: pm-pulse 1.4s ease-in-out infinite; }
.pm-shell .pm-door--analytics { --x: 15.5%; --y: 21%; } .pm-shell .pm-door--events { --x: 47.3%; --y: 16%; } .pm-shell .pm-door--leaders { --x: 80%; --y: 21%; }
.pm-shell .pm-door--tank { --x: 11.5%; --y: 47%; } .pm-shell .pm-door--hub { --x: 47.3%; --y: 44%; } .pm-shell .pm-door--journey { --x: 84%; --y: 47%; }
.pm-shell .pm-door--board { --x: 12.5%; --y: 77%; } .pm-shell .pm-door--referrals { --x: 83%; --y: 77%; }
.pm-doorgrid { display: none; }
.pm-shell .pm-quick { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.pm-shell .pm-quick a { flex: 1 0 auto; white-space: nowrap; }
.pm-docs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; border: 1px solid #c9a15a; background: linear-gradient(180deg, #2c0713, #1a0309); }
.pm-docs__title { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.pm-docs__title .pm-ico { width: 2.4em; height: 2.4em; }
.pm-docs__title b { display: block; font-size: 1.1rem; color: #ffe7a8; }
.pm-docs__title small { font: 500 .8rem system-ui, sans-serif; color: #e8cfa3; }
.pm-notices { display: grid; gap: 10px; }
.pm-notices:not(:has(aside, a)) { display: none; }
.pm-clock { font: 700 .9rem system-ui, sans-serif; font-style: normal; color: #ffe7a8; white-space: nowrap; }
.pm-clock.is-hot { color: #ff9a5c; }
.pm-table__row .pm-clock { color: #5a2a12; } .pm-table__row .pm-clock.is-hot { color: #c0392b; }

/* Leaderboard: podium with real stands, dark table in one gold frame. */
.pm-shell .pm-leader { grid-template-columns: minmax(360px, 1fr) minmax(0, 1.25fr); gap: 20px; align-items: start; }
.pm-shell .pm-podium { display: grid; grid-template-columns: 1fr 1.18fr 1fr; gap: 10px; align-items: end; padding-top: 96px; }
.pm-shell .pm-podium__spot { position: relative; display: grid; justify-items: center; align-content: start; gap: 8px; padding: 0 10px; min-width: 0; text-align: center; border-radius: 18px; animation: none; }
.pm-shell .pm-podium__face { position: relative; width: auto; height: auto; display: block; margin-top: -62px; line-height: 0; }
.pm-shell .pm-podium__spot--1 .pm-face--xl { --pm-face: 104px; }
.pm-shell .pm-podium__spot:not(.pm-podium__spot--1) .pm-podium__face { margin-top: -50px; }
.pm-podium__halo { position: absolute; inset: -22%; border-radius: 50%; background: radial-gradient(circle, #ffd77a99, transparent 66%); animation: pm-breathe-img 4s ease-in-out infinite; }
.pm-shell .pm-podium__crown { position: absolute; top: -38px; left: 50%; width: 62px; height: 62px; transform: translateX(-50%); z-index: 3; }
.pm-shell .pm-podium__face .pm-medal { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); width: 32px; height: 32px; font-size: 1rem; z-index: 2; border: 2px solid #fff6; box-shadow: 0 2px 6px #000b; }
.pm-shell .pm-podium__spot small { font: 500 .76rem system-ui, sans-serif; color: #f0d9ad; line-height: 1.35; }
.pm-podium__base { align-self: end; justify-self: stretch; margin: 6px -10px 0; height: 58px; display: grid; place-items: center; border-radius: 0 0 14px 14px; font: 800 2rem Georgia, serif; color: #3a1b08; text-shadow: 0 1px 0 #fff8; background: linear-gradient(180deg, #ffd0a0, #b0703a); box-shadow: inset 0 3px 0 #fff6, inset 0 -8px 14px #0004; }
.pm-podium__spot--1 .pm-podium__base { height: 104px; font-size: 3rem; background: var(--pm-foil); }
.pm-podium__spot--2 .pm-podium__base { height: 78px; background: linear-gradient(180deg, #fff, #b9bec6); }
.pm-shell .pm-podium__spot--1 { box-shadow: 0 0 0 1px #3a0a16, 0 6px 18px #000a, 0 0 38px #ffd77a99, inset 0 1px 0 #ffffff2e !important; }
.pm-shell .pm-table--leaders { gap: 0; border: 3px solid transparent; border-radius: 18px; background: linear-gradient(180deg, #3d0e1e, #1d0610) padding-box, var(--pm-frame) border-box; box-shadow: 0 6px 18px #000a, inset 0 0 26px #00000066; overflow: hidden; }
.pm-shell .pm-table--leaders .pm-table__head, .pm-shell .pm-table--leaders .pm-table__row { grid-template-columns: 38px minmax(150px, 2fr) 76px 1.25fr .9fr .8fr; border-radius: 0; }
.pm-shell .pm-table--leaders .pm-table__head { padding: 12px 16px; background: linear-gradient(180deg, #7a1a36, #4a0e22); border-bottom: 2px solid #c9a15a; color: #ffe7a8; }
.pm-shell .pm-table--leaders .pm-table__row { padding: 8px 16px; background: none; color: #fff3dc; border: 0; border-bottom: 1px solid #c9a15a40; box-shadow: none; font-family: system-ui, sans-serif; font-size: .92rem; }
.pm-shell .pm-table--leaders .pm-table__row:nth-child(odd) { background: #ffffff09; }
.pm-shell .pm-table--leaders .pm-table__row:hover { transform: none; background: #f2c86726; box-shadow: inset 4px 0 0 #f2c867; }
.pm-table--leaders .pm-cell-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pm-table--leaders .pm-cell-who b { font: 600 1rem Georgia, serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-table--leaders .pm-face { --pm-face: 34px; }
.pm-pos { font: 800 1rem Georgia, serif; color: #ffe7a8; }
.pm-table__note { margin: 0; padding: 12px 16px; font: 500 .85rem system-ui, sans-serif; color: #e8cfa3; }
.pm-shell .pm-panel__head h2 { font-size: clamp(1.5rem, 2.2vw, 2.1rem); }

/* Journey and Analytics */
.pm-stage__pair { display: inline-flex; align-items: center; } .pm-stage__pair .sn-coin + .sn-coin { margin-left: -12px; }
.pm-tiles--ranks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pm-tile--coin { position: relative; overflow: hidden; }
.pm-tile--coin .sn-coin { width: 72px; height: 72px; flex: none; }
.pm-tile__frame { margin-left: auto; width: 86px; height: 86px; opacity: .95; filter: drop-shadow(0 2px 4px #000a); }
.pm-tile--platinum b { color: #f4f6fa; } .pm-tile--diamond b { color: #a9dcff; }

/* Staff tools above the board */
.pm-tools { border: 1px solid #c9a15a; border-radius: 14px; padding: 4px 14px; background: linear-gradient(180deg, #2c0713, #1a0309); }
.pm-tools > summary { cursor: pointer; padding: 8px 0; font: 700 1rem Georgia, serif; color: #ffe7a8; }
.pm-tools .structure-tools { color: #29232a; }
.pm-embed--light:not(.pm-office__body) a { color: #7a1a36; }

/* Photo frames on the normal site: same distinct frames, set by the system rank. */
.earned-photo-frame.sn-frame2 { width: 92px !important; height: 92px !important; }
.earned-photo-frame.sn-frame2 > .photo-rank-frame { clip-path: none; object-fit: contain; filter: drop-shadow(0 2px 3px #0006); }
.earned-photo-frame.sn-frame2.rank-gold > .avatar { left: 22%; top: 13.3%; width: 55% !important; height: 55% !important; }
.earned-photo-frame.sn-frame2.rank-platinum > .avatar { left: 19.2%; top: 13.8%; width: 60% !important; height: 60% !important; }
.earned-photo-frame.sn-frame2.rank-diamond > .avatar { left: 21.3%; top: 19.3%; width: 57% !important; height: 57% !important; }
.earned-photo-frame.sn-frame2 > .avatar img { object-fit: cover !important; }
.network-design-panel .member-list-identity .earned-photo-frame.sn-frame2 { width: 74px !important; height: 74px !important; }

@media (max-width: 1100px) {
  .pm-shell .pm-leader { grid-template-columns: minmax(0, 1fr); }
  .pm-shell .pm-podium { position: static; max-width: 560px; margin-inline: auto; width: 100%; }
}
@media (max-width: 860px) {
  .pm-shell .pm-brand img { height: 56px; }
  .pm-shell .pm-face--me { --pm-face: 58px; }
  .pm-shell .pm-me { grid-template-columns: auto 1fr; justify-items: start; text-align: left; }
  .pm-shell .pm-me > :first-child { grid-row: 1 / span 2; }
  .pm-rail__doc { grid-column: 1 / -1; }
  .pm-staff > .secondary { margin-left: 0; }
  .pm-staff select { max-width: 100%; }
  /* Phone: show the whole map as a picture, with the doors as buttons below. */
  .pm-shell .pm-map { aspect-ratio: 1920 / 1085; }
  .pm-shell .pm-map__art { object-position: 50% 50%; }
  .pm-shell .pm-map .pm-door:not(.pm-door--hub) { display: none; }
  .pm-shell .pm-door--hub { --x: 50%; --y: 46%; } .pm-shell .pm-door--hub .pm-door__sign { font-size: 15px; }
  .pm-doorgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pm-doorgrid a { position: relative; display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 8px 10px; border-radius: 14px; border: 2px solid transparent; background: var(--pm-leather) padding-box, var(--pm-frame) border-box; color: #fff3dc; text-decoration: none; font-size: .95rem; box-shadow: 0 4px 10px #000a; }
  .pm-doorgrid a .pm-ico { width: 2em; height: 2em; } .pm-doorgrid b { font-weight: 600; }
  .pm-doorgrid .pm-door__count { right: 6px; top: -8px; font-size: 12px; }
  .pm-shell .pm-quick { flex-wrap: wrap; } .pm-shell .pm-quick a { flex: 1 1 100%; white-space: normal; }
  .pm-shell .pm-podium { padding-top: 78px; gap: 6px; }
  .pm-shell .pm-face--xl { --pm-face: 56px; } .pm-shell .pm-podium__spot--1 .pm-face--xl { --pm-face: 70px; }
  .pm-shell .pm-podium__face, .pm-shell .pm-podium__spot:not(.pm-podium__spot--1) .pm-podium__face { margin-top: -40px; }
  .pm-shell .pm-podium__crown { width: 44px; height: 44px; top: -28px; }
  .pm-shell .pm-podium__spot { padding: 0 4px; } .pm-podium__base { margin-inline: -4px; }
  .pm-plate { padding: 4px 8px; font-size: .78rem; } .pm-shell .pm-podium__spot small { font-size: .66rem; }
  .pm-rank { font-size: .72rem; padding-right: 8px; } .pm-rank .sn-coin { width: 20px; height: 20px; }
  .pm-shell .pm-table--leaders .pm-table__row { grid-template-columns: 30px minmax(0, 1fr) auto; row-gap: 4px; padding: 10px 12px; }
  .pm-shell .pm-table--leaders .pm-table__row > :nth-child(3) { display: none; }
  .pm-shell .pm-table--leaders .pm-table__row > :nth-child(n+5) { display: block; grid-column: 2 / -1; font-size: .78rem; color: #e8cfa3; }
  .pm-shell .pm-table--leaders .pm-table__row > [data-label]:nth-child(n+5)::before { content: attr(data-label) ": "; }
  .pm-tiles--ranks { grid-template-columns: minmax(0, 1fr); }
  .pm-docs__title { margin-right: 0; width: 100%; } .pm-docs .pm-gold, .pm-docs .pm-ghost { flex: 1 1 100%; padding: 12px; }
  [data-pm-tip]:hover::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pm-podium__halo, .pm-door__count { animation: none; } }
@media (max-width: 860px) {
  .pm-shell .pm-rail { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
  .pm-shell .pm-me .pm-plate { white-space: normal; text-align: center; line-height: 1.15; }
}
/* On the board the framed photo keeps its old height, so no card changes size. */
.burgundy-network .earned-photo-frame.sn-frame2 { width: 96px !important; height: 96px !important; }

/* Play Mode keeps the moving pyramid: the video shows through a burgundy tint. */
body[data-living="full"] .pm-shell { background: radial-gradient(60% 40% at 50% 0%, #a3274a55, transparent 70%), linear-gradient(#2a06118c, #1a0309b8 50%, #1a0309e6); }
body[data-living="full"]:has(.pm-shell) .sn-living video { object-position: 50% 62%; }

/* Entrance motion: panels rise in, rows follow, the podium pops. Short, and off for reduced motion. */
@keyframes pm-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pm-pop { 0% { opacity: 0; transform: translateY(34px) scale(.9); } 70% { opacity: 1; transform: translateY(-4px) scale(1.02); } 100% { opacity: 1; transform: none; } }
@keyframes pm-coin-shine { 0%, 82%, 100% { filter: drop-shadow(0 2px 3px #000a) brightness(1); } 90% { filter: drop-shadow(0 0 10px #ffe7a8) brightness(1.35); } }
.pm-top, .pm-tabs, .pm-rail { animation: pm-rise .4s cubic-bezier(.2, .7, .2, 1) both; }
.pm-tabs { animation-delay: .05s; } .pm-rail { animation-delay: .1s; }
.pm-main > :not(.pm-embed--board):not(.pm-tools) { animation: pm-rise .5s cubic-bezier(.2, .7, .2, 1) both; }
.pm-main > :nth-child(2) { animation-delay: .07s; } .pm-main > :nth-child(3) { animation-delay: .14s; } .pm-main > :nth-child(4) { animation-delay: .21s; } .pm-main > :nth-child(n+5) { animation-delay: .28s; }
.pm-tile, .pm-stage { animation: pm-rise .45s cubic-bezier(.2, .7, .2, 1) both; }
.pm-tile:nth-child(2), .pm-stage:nth-child(2) { animation-delay: .08s; } .pm-tile:nth-child(3), .pm-stage:nth-child(3) { animation-delay: .16s; }
.pm-tile:nth-child(4), .pm-stage:nth-child(4) { animation-delay: .24s; } .pm-tile:nth-child(n+5), .pm-stage:nth-child(n+5) { animation-delay: .32s; }
.pm-table__row, .pm-list > li { animation: pm-rise .38s ease-out both; }
.pm-table__row:nth-child(2), .pm-list > li:nth-child(2) { animation-delay: .04s; } .pm-table__row:nth-child(3), .pm-list > li:nth-child(3) { animation-delay: .08s; }
.pm-table__row:nth-child(4), .pm-list > li:nth-child(4) { animation-delay: .12s; } .pm-table__row:nth-child(5) { animation-delay: .16s; } .pm-table__row:nth-child(6) { animation-delay: .2s; }
.pm-table__row:nth-child(7) { animation-delay: .24s; } .pm-table__row:nth-child(8) { animation-delay: .28s; } .pm-table__row:nth-child(n+9) { animation-delay: .32s; }
.pm-shell .pm-podium__spot { animation: pm-pop .6s cubic-bezier(.2, .8, .2, 1) both !important; }
.pm-shell .pm-podium__spot--2 { animation-delay: .12s !important; } .pm-shell .pm-podium__spot--1 { animation-delay: .3s !important; } .pm-shell .pm-podium__spot--3 { animation-delay: .2s !important; }
.pm-rank .sn-coin, .pm-tile--coin .sn-coin { animation: pm-coin-shine 5s ease-in-out infinite; }
.pm-tile, .pm-doorgrid a, .pm-gold, .pm-ghost { transition: transform .16s ease, box-shadow .16s ease, filter .16s ease; }
.pm-tile:hover { transform: translateY(-3px); filter: brightness(1.08); }
.pm-doorgrid a:active, .pm-gold:active, .pm-ghost:active, .pm-tabs a:active, .pm-quick a:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) {
  .pm-top, .pm-tabs, .pm-rail, .pm-main > *, .pm-tile, .pm-stage, .pm-table__row, .pm-list > li, .pm-rank .sn-coin, .pm-tile--coin .sn-coin { animation: none !important; }
  .pm-shell .pm-podium__spot { animation: none !important; }
  .pm-tile:hover { transform: none; }
}

/* ===== Play Mode comes alive: a light runs round the gold frames, the board floats and breathes ===== */
@property --pm-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes pm-orbit { to { --pm-a: 360deg; } }
@keyframes pm-frame-breathe { 0%, 100% { opacity: .55; filter: blur(10px); } 50% { opacity: 1; filter: blur(18px); } }
@keyframes pm-board-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pm-board-shadow { 0%, 100% { transform: scaleX(1); opacity: .75; } 50% { transform: scaleX(.93); opacity: .45; } }
@keyframes pm-light-sweep { 0%, 55% { background-position: 160% 0; } 100% { background-position: -80% 0; } }
@keyframes pm-rays { 0%, 100% { opacity: .35; transform: rotate(-2deg) scale(1); } 50% { opacity: .7; transform: rotate(2deg) scale(1.05); } }
:root { --pm-run: conic-gradient(from var(--pm-a), #8a5a14 0deg, #f2c867 30deg, #fffbe6 52deg, #ffe7a8 70deg, #b9812a 120deg, #6d4410 180deg, #b9812a 235deg, #ffe7a8 285deg, #fff6d0 300deg, #f2c867 320deg, #8a5a14 360deg); }

/* Hub map: the frame itself carries the running light. */
.pm-shell .pm-map { background: #1a0410 padding-box, var(--pm-run) border-box !important; animation: pm-orbit 7s linear infinite; }
.pm-map::after { content: ""; position: absolute; left: 20%; right: 20%; top: -30%; height: 90%; z-index: 1; pointer-events: none; mix-blend-mode: screen; transform-origin: 50% 0;
  background: conic-gradient(from 180deg at 50% 0%, transparent 150deg, #ffe7a833 165deg, transparent 172deg, #ffd77a2e 180deg, transparent 188deg, #ffe7a833 195deg, transparent 210deg); animation: pm-rays 7s ease-in-out infinite; }

/* Network Board in Play Mode: floats, breathes, and a light runs round its edge. Nothing inside it changes size. */
.pm-embed--board { position: relative; border-radius: 22px; }
.pm-embed--board > .burgundy-network, .pm-embed--board > :first-child { position: relative; z-index: 1; }
.pm-embed--board::before { content: ""; position: absolute; inset: -5px; z-index: 2; border-radius: 26px; padding: 5px; pointer-events: none; background: var(--pm-run);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: pm-orbit 6s linear infinite; }
.pm-embed--board::after { content: ""; position: absolute; inset: -14px; z-index: 0; border-radius: 34px; pointer-events: none; background: var(--pm-run); animation: pm-orbit 6s linear infinite, pm-frame-breathe 4.5s ease-in-out infinite; }
.pm-boardwrap { position: relative; padding-bottom: 34px; }
.pm-boardwrap::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: 0; height: 30px; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, #000c, transparent); filter: blur(6px); animation: pm-board-shadow 7s ease-in-out infinite; }
.pm-boardlight { position: absolute; inset: 0; z-index: 3; border-radius: 22px; pointer-events: none; mix-blend-mode: screen; background: linear-gradient(105deg, transparent 42%, #fff3c41f 48%, #ffffff33 50%, #fff3c41f 52%, transparent 58%) 160% 0 / 250% 100% no-repeat; animation: pm-light-sweep 9s ease-in-out infinite; }
@media (hover: hover) and (min-width: 900px) { .pm-embed--board { animation: pm-board-float 7s ease-in-out infinite; will-change: transform; } }

/* First place and your own photo catch the same running light. */
.pm-shell .pm-podium__spot--1 { background: var(--pm-leather) padding-box, var(--pm-run) border-box !important; }
.pm-shell .pm-podium__spot--1 { animation: pm-pop .6s cubic-bezier(.2, .8, .2, 1) .3s both, pm-orbit 5s linear infinite !important; }
.pm-shell .pm-tabs a.is-on, .pm-shell .pm-rail__nav a.is-on { background-image: none; }
.pm-shell .pm-tabs a.is-on { background: linear-gradient(180deg, #6a1a30, #2a0611) padding-box, var(--pm-run) border-box !important; animation: pm-orbit 5s linear infinite; }
.pm-face--me .pm-face__frame { animation: pm-breathe-img 4s ease-in-out infinite; }
.pm-door__sign { animation: pm-sign-glow 3.6s ease-in-out infinite; animation-delay: calc(var(--pm-i, 0) * -.45s); }
@keyframes pm-sign-glow { 0%, 100% { box-shadow: 0 .3em .8em #000b, 0 0 .5em #f2c86755; } 50% { box-shadow: 0 .3em .8em #000b, 0 0 1.6em #ffd77acc, 0 0 3em #f2c86755; } }
@media (prefers-reduced-motion: reduce) {
  .pm-shell .pm-map, .pm-map::after, .pm-embed--board, .pm-embed--board::before, .pm-embed--board::after, .pm-boardwrap::after, .pm-boardlight, .pm-shell .pm-tabs a.is-on, .pm-face--me .pm-face__frame, .pm-door__sign { animation: none !important; }
  .pm-shell .pm-podium__spot--1 { animation: none !important; }
  .pm-boardlight { display: none; }
}

/* Phone: the owner card on the board keeps room for the full name. */
@media (max-width: 640px) {
  .burgundy-network .select-board > aside .earned-photo-frame.sn-frame2 { width: 62px !important; height: 62px !important; }
  .pm-podium__spot .pm-rank { max-width: 100%; font-size: .68rem; padding-inline: 5px; }
  .pm-podium__spot .pm-plate { max-width: 100%; }
  /* A small card photo must not cover the name under it. */
  .burgundy-network .select-family .select-position .person-avatar:not(.earned-photo-frame) { width: 26px; height: 26px; }
  .burgundy-network .select-family .select-position .person-avatar:not(.earned-photo-frame) .avatar,
  .burgundy-network .select-family .select-position .person-avatar:not(.earned-photo-frame) .avatar img { width: 100%; height: 100%; }
}

/* Logged bills: the Delete button is always on the row. */
.bill-row { display: flex; align-items: flex-start; gap: 10px; margin: 8px 0; }
.bill-row > details { flex: 1 1 auto; min-width: 0; margin: 0; }
.bill-row > [data-delete-logged-bill] { flex: none; white-space: nowrap; }
.bill-row:has(> details[open]) { flex-wrap: wrap; }
.bill-row:has(> details[open]) > details { flex-basis: 100%; }
@media (max-width: 520px) { .bill-row { flex-wrap: wrap; } .bill-row > details { flex-basis: 100%; } }
.pm-me__note { display: block; font: 700 .68rem/1 system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #f1d58a; margin-bottom: 6px; }

/* ===== Play Mode: Super Admin office (3 Dec) ===== */
.pm-officebar { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 8px 10px; border-radius: 16px; border: 1px solid #c9a15a; background: linear-gradient(180deg, #1c0a2e, #12061d); box-shadow: inset 0 0 0 1px #ffffff12, 0 6px 16px #0008; scrollbar-width: none; animation: pm-rise .45s ease-out backwards; }
.pm-officebar::-webkit-scrollbar { display: none; }
.pm-officebar__tag { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--pm-foil); color: var(--pm-ink); font: 800 .7rem/1 system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.pm-officebar a, .pm-officebar__invite { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 8px; border-radius: 12px; border: 1px solid #c9a15a88; background: #2a0f3d; color: #fff3dc; font: 600 .95rem Georgia, serif; text-decoration: none; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; animation: pm-pop .4s cubic-bezier(.2, .9, .3, 1.3) both; animation-delay: calc(var(--pm-i, 0) * 35ms); }
.pm-officebar a .pm-ico, .pm-officebar__invite .pm-ico { width: 2em; height: 2em; transition: transform .25s cubic-bezier(.2, .9, .3, 1.5); }
.pm-officebar a:hover, .pm-officebar__invite:hover { transform: translateY(-2px); background: #3a1654; box-shadow: 0 0 16px #f2c86788; }
.pm-officebar a:hover .pm-ico, .pm-officebar__invite:hover .pm-ico { transform: scale(1.18) rotate(-6deg); }
.pm-officebar a.is-on { background: var(--pm-foil); color: var(--pm-ink); border-color: #fff1c2; box-shadow: 0 0 18px #f2c867aa; font-weight: 700; }
.pm-officebar__invite { margin-left: auto; background: #4a1024; }
.pm-officebar select-office-bell { flex: none; }

.pm-officegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pm-officegrid a, .pm-officegrid button { position: relative; overflow: hidden; display: grid; justify-items: center; gap: 8px; padding: 16px 10px 14px; border-radius: 18px; border: 2px solid transparent; background: var(--pm-leather) padding-box, var(--pm-frame) border-box; color: #fff3dc; font: 600 1rem Georgia, serif; text-align: center; text-decoration: none; cursor: pointer; box-shadow: 0 6px 14px #000a; transition: transform .18s ease, box-shadow .18s ease; animation: pm-pop .45s cubic-bezier(.2, .9, .3, 1.3) both; animation-delay: calc(var(--pm-i, 0) * 45ms); }
.pm-officegrid .pm-ico { width: 64px; height: 64px; animation: pm-icon-bob 3.6s ease-in-out infinite; animation-delay: calc(var(--pm-i, 0) * -310ms); }
.pm-officegrid b { font-weight: 600; }
.pm-officegrid__glow { position: absolute; inset: -40% -20% auto; height: 120%; background: radial-gradient(closest-side, #f2c86733, transparent); pointer-events: none; opacity: .6; transition: opacity .2s ease; }
.pm-officegrid a:hover, .pm-officegrid button:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 10px 22px #000c, 0 0 22px #f2c86799; }
.pm-officegrid a:hover .pm-officegrid__glow, .pm-officegrid button:hover .pm-officegrid__glow { opacity: 1; }
.pm-officegrid a:hover .pm-ico, .pm-officegrid button:hover .pm-ico { animation: pm-icon-cheer .6s ease both; }
.pm-officegrid a:active, .pm-officegrid button:active, .pm-officebar a:active { transform: scale(.97); }
@keyframes pm-icon-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes pm-icon-cheer { 0% { transform: scale(1) rotate(0); } 35% { transform: scale(1.22) rotate(-9deg); } 70% { transform: scale(1.12) rotate(7deg); } 100% { transform: scale(1.1) rotate(0); } }

.pm-office { display: grid; gap: 12px; min-width: 0; }
.pm-office__head { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 18px; border: 2px solid transparent; background: var(--pm-leather) padding-box, var(--pm-frame) border-box; box-shadow: 0 6px 16px #000a; }
.pm-office__head > .pm-ico { width: 56px; height: 56px; animation: pm-icon-bob 3.6s ease-in-out infinite; }
.pm-office__head h1 { margin: 0; font: 500 1.7rem Georgia, serif; background: var(--pm-foil); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 2px #000c); }
.pm-office__head p { margin: 2px 0 0; color: #f5e2bd; font: 500 .9rem Georgia, serif; }
.pm-office__head .pm-ghost { margin-left: auto; flex: none; }
.pm-office__body { min-width: 0; overflow-x: auto; }
.pm-office__body > .staff-hero:first-child, .pm-office__body > .page-heading:first-child { margin-top: 0; }
.pm-quick__cheer { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 10px; border-radius: 14px; border: 1px solid #f2c867; background: linear-gradient(180deg, #5a1230, #3a0b1e); color: #ffe7a8; font: 600 1rem Georgia, serif; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease; }
.pm-quick__cheer:hover { transform: translateY(-2px); box-shadow: 0 0 16px #f2c86788; }
@media (max-width: 760px) {
  .pm-officebar__invite { margin-left: 0; }
  .pm-officegrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pm-officegrid .pm-ico { width: 48px; height: 48px; }
  .pm-office__head { flex-wrap: wrap; padding: 10px 12px; }
  .pm-office__head h1 { font-size: 1.35rem; }
  .pm-office__head .pm-ghost { margin-left: 0; }
  .pm-office__body { padding: 10px; }
}

/* ===== Promotion party ===== */
.sn-cheer { position: fixed; inset: 0; z-index: 10050; display: grid; place-items: center; padding: 16px; background: radial-gradient(circle at 50% 40%, #3a0b1ecc, #0a0206ee); animation: sn-cheer-in .25s ease-out both; }
.sn-cheer.is-leaving { animation: sn-cheer-out .24s ease-in both; }
.sn-cheer__confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sn-cheer__card { position: relative; width: min(440px, 100%); padding: 26px 22px 22px; border-radius: 26px; border: 3px solid transparent; background: linear-gradient(180deg, #5a1230, #2a0611) padding-box, linear-gradient(135deg, #fff1c2, #c9912c 40%, #fff6dc 60%, #a36a12) border-box; color: #fff3dc; text-align: center; box-shadow: 0 24px 60px #000d, 0 0 60px #f2c86766; animation: sn-cheer-pop .6s cubic-bezier(.2, .9, .25, 1.35) both; overflow: hidden; }
.sn-cheer--platinum .sn-cheer__card { background: linear-gradient(180deg, #3a4257, #171b27) padding-box, linear-gradient(135deg, #ffffff, #9aa6bd 40%, #f4f6fb 60%, #6c7890) border-box; box-shadow: 0 24px 60px #000d, 0 0 60px #cfd6e488; }
.sn-cheer--diamond .sn-cheer__card { background: linear-gradient(180deg, #123a73, #071a38) padding-box, linear-gradient(135deg, #e6f6ff, #63b7ff 40%, #ffffff 60%, #2f7bff) border-box; box-shadow: 0 24px 60px #000d, 0 0 70px #63b7ff99; }
.sn-cheer__rays { position: absolute; left: 50%; top: 96px; width: 620px; height: 620px; margin: -310px 0 0 -310px; background: repeating-conic-gradient(from 0deg, #ffffff1f 0 9deg, transparent 9deg 18deg); border-radius: 50%; -webkit-mask: radial-gradient(closest-side, #000 25%, transparent 72%); mask: radial-gradient(closest-side, #000 25%, transparent 72%); animation: sn-cheer-spin 16s linear infinite; pointer-events: none; }
.sn-cheer__coin { position: relative; display: block; width: 150px; height: 150px; margin: 0 auto 8px; animation: sn-cheer-coin 1.1s cubic-bezier(.2, .9, .25, 1.2) both; }
.sn-cheer__frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 12px #000a); }
.sn-cheer__medal { position: absolute; left: 50%; top: 50%; width: 46%; height: 46%; transform: translate(-50%, -50%); object-fit: contain; animation: sn-cheer-pulse 1.6s ease-in-out infinite; }
.sn-cheer__eyebrow { position: relative; margin: 0; font: 800 .74rem/1 system-ui, sans-serif; letter-spacing: .22em; text-transform: uppercase; color: #ffe7a8; }
.sn-cheer__card h2 { position: relative; margin: 8px 0 6px; font: 600 clamp(1.5rem, 6vw, 2.1rem)/1.15 Georgia, serif; color: #fff; text-shadow: 0 2px 0 #0008, 0 0 22px #ffe7a866; }
.sn-cheer__card p { position: relative; margin: 0 0 6px; font: 500 1rem/1.4 system-ui, sans-serif; color: #f5e2bd; }
.sn-cheer__next { font-size: .9rem !important; opacity: .9; }
.sn-cheer__card .pm-gold { position: relative; margin-top: 12px; }
@keyframes sn-cheer-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sn-cheer-out { to { opacity: 0; } }
@keyframes sn-cheer-pop { 0% { transform: scale(.6) translateY(30px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes sn-cheer-coin { 0% { transform: translateY(-120px) rotateY(540deg) scale(.4); opacity: 0; } 70% { transform: translateY(6px) rotateY(0) scale(1.08); opacity: 1; } 100% { transform: none; } }
@keyframes sn-cheer-pulse { 0%, 100% { transform: translate(-50%, -50%) scale(1); filter: drop-shadow(0 0 6px #fff6); } 50% { transform: translate(-50%, -50%) scale(1.1); filter: drop-shadow(0 0 16px #fffc); } }
@keyframes sn-cheer-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .sn-cheer, .sn-cheer__card, .sn-cheer__coin, .sn-cheer__medal, .sn-cheer__rays, .pm-officebar, .pm-officebar a, .pm-officebar__invite, .pm-officegrid a, .pm-officegrid button, .pm-officegrid .pm-ico, .pm-office__head > .pm-ico { animation: none !important; }
}
/* An office page gets the full width: no side card, no count chips. */
.pm-shell--office .pm-frame { grid-template-columns: minmax(0, 1fr); }
.pm-shell--office .pm-rail, .pm-shell--office .pm-chips { display: none; }
.pm-shell--office .pm-main { grid-template-columns: minmax(0, 1fr); }

/* The party sits in the top layer (popover), above a full-screen board. */
.sn-cheer[popover] { box-sizing: border-box; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; overflow: hidden; color: inherit; }
.sn-cheer[popover]::backdrop { background: transparent; }

/* Review fixes (3 Dec): the bell sits beside the scrolling office bar, so its panel is not cut off. */
.pm-officewrap { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pm-officewrap > .pm-officebar { flex: 1 1 auto; min-width: 0; }
.pm-officewrap > select-office-bell { flex: none; }
/* An office page must not keep a transform: the full-screen board on a phone is fixed to the screen. */
@keyframes pm-fade { from { opacity: 0; } }
.pm-shell--office .pm-main > .pm-office.pm-office { animation: pm-fade .4s ease-out backwards; }
.pm-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; padding: 14px 12px 22px; }
.pm-foot a, .pm-foot button { min-height: 44px; display: inline-flex; align-items: center; padding: 0 8px; border: 0; background: none; color: #f1d58a; font: 600 .92rem system-ui, sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pm-foot a:hover, .pm-foot button:hover { color: #fff3dc; }
@media (prefers-reduced-motion: reduce) { .pm-shell--office .pm-main > .pm-office.pm-office { animation: none; } }
@media (prefers-reduced-motion: reduce) { .sn-cheer .pm-gold::after { animation: none !important; } }

/* ===== Office calendar: day at a glance, slot picker, booking (3 Dec) ===== */
.office-cal__hours { color: #6a5560; margin-top: 0; }
.office-glance { border: 1px solid #d9c7b6; border-radius: 14px; background: #fffbf5; padding: clamp(.7rem, 2vw, 1.4rem); margin: 0 0 1rem; }
.office-glance__head { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: end; justify-content: space-between; }
.office-glance__head small { font: 800 .72rem/1 system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #8a6a2c; }
.office-glance__head h3 { margin: .25rem 0 0; font-size: clamp(1.15rem, 3vw, 1.5rem); color: #641633; }
.office-glance__sum { margin: .6rem 0; color: #4a3a42; }
.office-glance__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.office-glance__row { display: grid; grid-template-columns: 5.6rem minmax(0, 1fr) auto; gap: .5rem .9rem; align-items: center; padding: .6rem .8rem; border-radius: 10px; border: 1px solid #e6d9c8; border-left: 6px solid #cfc3b4; background: #fff; }
.office-glance__row time { font-weight: 700; color: #381b29; }
.office-glance__row.is-open { border-left-color: #2e8b57; background: #f3fbf5; }
.office-glance__row.is-booked { border-left-color: #7a1a36; background: #fbf1f4; }
.office-glance__row.is-lunch, .office-glance__row.is-shut, .office-glance__row.is-past { color: #6a5d64; background: #f7f3ee; }
.office-row__actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.office-row__actions .secondary { min-height: 40px; }
.office-kind { display: inline-block; padding: 2px 9px; border-radius: 999px; font: 700 .72rem/1.5 system-ui, sans-serif; letter-spacing: .04em; background: #efe2c6; color: #5b3d07; white-space: nowrap; }
.office-kind--zoom { background: #dcebff; color: #0f3f86; }
.office-kind--phone { background: #e3f3e6; color: #17592d; }
.office-fold { border: 1px solid #e2d6c7; border-radius: 12px; margin: .7rem 0; background: #fff; }
.office-fold > summary { cursor: pointer; padding: .85rem 1rem; font-weight: 700; color: #641633; min-height: 44px; }
.office-fold > :not(summary) { padding: 0 1rem 1rem; }
.office-fold .office-month { margin-top: 0; }
.office-type select { max-width: 26rem; }
.office-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: .4rem 0 1rem; }
.office-steps li { padding: .4rem .8rem; border-radius: 999px; background: #f1e9df; color: #6a5560; font: 600 .86rem system-ui, sans-serif; }
.office-steps li.is-on { background: #651535; color: #fff; }
.office-steps li.is-done { background: #dff0e3; color: #17592d; }
.office-pick { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.office-pick .office-month { margin: 0; }
.office-grid button:disabled { opacity: .45; }
.office-grid .office-has-open { border-color: #2e8b57; box-shadow: inset 0 -4px 0 #2e8b57; }
.office-stage { border: 1px solid #d9c7b6; border-radius: 12px; background: #fff; padding: clamp(.8rem, 2vw, 1.4rem); min-width: 0; }
.office-stage h3 { margin-top: 0; color: #641633; }
.office-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 8px; }
.office-times button { display: grid; gap: 4px; justify-items: start; text-align: left; padding: .7rem .8rem; border-radius: 12px; border: 2px solid #2e8b57; background: #f3fbf5; color: #29232a; cursor: pointer; min-height: 44px; }
.office-times button:hover, .office-times button:focus-visible { background: #e2f5e7; }
.office-times button strong { font-size: 1.05rem; }
.office-times button small { color: #5a4a52; overflow-wrap: anywhere; }
.office-book fieldset { border: 1px solid #e2d6c7; border-radius: 12px; padding: .8rem 1rem; margin: .8rem 0; min-width: 0; }
.office-book legend { font-weight: 700; color: #641633; padding: 0 .4rem; }
.office-book .signature-method { border: 0; padding: 0; margin: .4rem 0 0; }
.office-book canvas { max-width: 100%; touch-action: none; }
.office-confirm { border: 2px solid #2e8b57; border-radius: 12px; background: #f3fbf5; padding: 1rem 1.2rem; }
.office-confirm h3 { color: #17592d; }
.office-confirm ul { padding-left: 1.2rem; margin: .6rem 0; }
.office-mine { margin-bottom: 1rem; }
@media (max-width: 760px) {
  .office-pick { grid-template-columns: minmax(0, 1fr); }
  .office-glance__row { grid-template-columns: 4.8rem minmax(0, 1fr); }
  .office-glance__row .office-row__actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* Play Mode hub: water falls on the dollar in the center fountain. Decoration only (no pointer events). */
.pm-map__falls { position: absolute; left: 43.6%; top: 53%; width: 7.4%; height: 22.5%; z-index: 1; pointer-events: none; mix-blend-mode: screen; }
.pm-map__falls i { position: absolute; top: 0; height: 62%; width: 13%; border-radius: 40%;
  background: repeating-linear-gradient(180deg, #ffffff00 0 10%, #dff6ffee 18% 30%, #7fd4ff99 38%, #ffffff00 50%); background-size: 100% 220%;
  -webkit-mask-image: linear-gradient(180deg, #0000, #000 22%, #000 80%, #0000); mask-image: linear-gradient(180deg, #0000, #000 22%, #000 80%, #0000);
  filter: blur(.06cqw); animation: pm-falls var(--d, .9s) linear infinite; animation-delay: var(--w, 0s); }
.pm-map__falls i:nth-child(1) { left: 8%; --d: 1s; --w: -.2s; height: 70%; top: 6%; }
.pm-map__falls i:nth-child(2) { left: 27%; --d: .8s; --w: -.5s; }
.pm-map__falls i:nth-child(3) { left: 44%; --d: .7s; width: 15%; }
.pm-map__falls i:nth-child(4) { left: 62%; --d: .85s; --w: -.35s; }
.pm-map__falls i:nth-child(5) { left: 80%; --d: 1.05s; --w: -.6s; height: 70%; top: 6%; }
.pm-map__falls b { position: absolute; top: 52%; left: 50%; width: 9%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #9fe2ff 55%, #9fe2ff00 75%); opacity: 0; animation: pm-splash 1.4s ease-out infinite; }
.pm-map__falls b:nth-of-type(1) { --sx: -230%; --sy: -160%; }
.pm-map__falls b:nth-of-type(2) { --sx: 210%; --sy: -190%; animation-delay: -.45s; }
.pm-map__falls b:nth-of-type(3) { --sx: -40%; --sy: -260%; animation-delay: -.9s; }
.pm-map__falls em { position: absolute; left: 5%; right: 5%; bottom: 0; height: 16%; border-radius: 50%; border: .14cqw solid #cfefffcc; opacity: 0; animation: pm-ripple 1.8s ease-out infinite; }
@keyframes pm-falls { from { background-position: 0 0; } to { background-position: 0 220%; } }
@keyframes pm-splash { 0% { transform: translate(-50%, 0) scale(.5); opacity: 0; } 15% { opacity: .95; } 100% { transform: translate(calc(-50% + var(--sx)), var(--sy)) scale(.2); opacity: 0; } }
@keyframes pm-ripple { 0% { transform: scale(.35); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pm-map__falls { display: none; } }
.office-glance__type { margin: 0; min-width: 12rem; font-size: .8rem; }
.office-glance__type select { min-height: 44px; }

/* Company prospects: the "also show members" box. The page is always on a light panel. */
#company-prospect-members-wrap[hidden] { display: none; }
#company-prospect-members-wrap { color: #3a1420; margin: .25rem 0 .75rem; font-weight: 600; }

/* Play Mode sound button (2026-12-04). Sits beside the Play Mode switch. */
.pm-sound { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 10px; border-radius: 999px; border: 1px solid #c9a15a88; background: #ffffff14; color: inherit; font: 700 .8rem system-ui; cursor: pointer; white-space: nowrap; }
.pm-sound.is-on { color: var(--pm-gold-2); border-color: #f2c867; box-shadow: 0 0 10px #f2c86755; }
.pm-sound__cross { display: none; }
.pm-sound:not(.is-on) .pm-sound__waves { display: none; }
.pm-sound:not(.is-on) .pm-sound__cross { display: inline; }
.pm-sound:focus-visible { outline: 2px solid #f2c867; outline-offset: 2px; }
@media (max-width: 520px) { .pm-sound span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } .pm-sound { position: relative; padding: 6px 9px; } }

/* Music button (2026-12-04). It sits after the Sound button. With sound off the music is silent, so it dims. */
.pm-sound:not(.is-on) + .pm-music { opacity: .5; }
.pm-music:not(.is-on) .pm-sound__cross { display: inline; }

/* Company prospects: Refresh, Add a prospect, Assign to an IBO (2026-12-04). */
.company-prospect-tools { margin: 0 0 12px; align-items: center; flex-wrap: wrap; }
.company-prospect-tools > span { flex: 1 1 240px; min-width: 0; }
.company-prospect-add { margin: 0 0 18px; }
.company-prospect-add > summary { display: inline-flex; cursor: pointer; list-style: none; }
.company-prospect-add > summary::-webkit-details-marker { display: none; }
.company-prospect-add form { margin-top: 12px; padding: 18px; border: 1px solid #b9d7c8; border-radius: 14px; display: grid; gap: 10px; max-width: 520px; }
.company-prospect-assign { margin: 10px 0; display: grid; gap: 8px; max-width: 420px; }
.prospect-share-note { display: block; margin-top: 6px; }

/* ── Notifications: bell menu and Needs attention cards (2026-12-04) ─────────
   Each notification is a card. The whole card opens it. The × dismisses it. */
.office-bell { position: relative; }
.office-bell > summary { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; color: inherit; cursor: pointer; list-style: none; transition: background var(--sn-motion, .18s ease); }
.office-bell > summary::-webkit-details-marker { display: none; }
.office-bell > summary:hover, .office-bell[open] > summary { background: rgba(230, 189, 120, .22); }
.office-bell > summary:focus-visible { outline: var(--sn-focus-ring, 3px solid #b58136); outline-offset: 2px; }
.office-bell__bell { display: grid; place-items: center; }
.office-bell__bell svg { width: 22px; height: 22px; }
.office-bell__count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #e6bd78; color: #391024; font: 700 11px/20px var(--sn-font-ui, sans-serif); text-align: center; box-shadow: 0 0 0 2px rgba(57, 16, 36, .9); }
.office-bell__count[hidden] { display: none; }
.office-bell .office-bell__panel { position: absolute; z-index: 100; right: 0; top: calc(100% + 8px); width: min(24rem, 92vw); max-height: min(70vh, 34rem); overflow: auto; padding: 0; background: var(--sn-surface, #fff); color: var(--sn-text, #34272a); border: 1px solid var(--sn-line, #e4ddd4); border-radius: 16px; box-shadow: var(--sn-shadow-3, 0 18px 48px rgba(52, 39, 42, .16)); text-align: left; font: 400 13px/1.45 var(--sn-font-ui, sans-serif); }
.office-bell[open] .office-bell__panel { animation: office-bell-in .16s ease-out; }
@keyframes office-bell-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.office-bell__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 12px 10px 16px; background: var(--sn-surface, #fff); border-bottom: 1px solid var(--sn-line, #e4ddd4); }
.office-bell__head h3 { margin: 0; font: 600 17px/1.2 var(--sn-font-display, Georgia, serif); color: var(--sn-brand, #691e39); }
.office-bell__close, .office-bell__x, .attention-card__x, .prospect-x { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--sn-text-muted, #746a67); font: 400 22px/1 var(--sn-font-ui, sans-serif); cursor: pointer; transition: background var(--sn-motion, .18s ease), color var(--sn-motion, .18s ease); }
.office-bell__close:hover, .office-bell__x:hover, .attention-card__x:hover, .prospect-x:hover { background: var(--sn-danger-tint, #fbeeec); color: var(--sn-danger, #8c2f24); }
.office-bell__close:focus-visible, .office-bell__x:focus-visible, .attention-card__x:focus-visible, .prospect-x:focus-visible { outline: var(--sn-focus-ring, 3px solid #b58136); outline-offset: 1px; }
.office-bell__x:disabled, .attention-card__x:disabled, .prospect-x:disabled { opacity: .4; cursor: progress; }
.office-bell__sum { margin: 0; padding: 10px 16px 6px; color: var(--sn-text-muted, #746a67); font-size: 12px; }
.office-bell__sum b { color: var(--sn-text, #34272a); }
.office-bell__empty { margin: 0; padding: 18px 16px 22px; color: var(--sn-text-muted, #746a67); }
.office-bell__list { margin: 0; padding: 4px 8px 8px; list-style: none; display: grid; gap: 2px; }
.office-bell__item { display: flex; align-items: center; gap: 2px; border-radius: 12px; transition: background var(--sn-motion, .18s ease); }
.office-bell__item:hover, .office-bell__item:focus-within { background: var(--sn-surface-sunken, #f8f0e3); }
.office-bell__item > a { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 6px 10px 8px; color: inherit; text-decoration: none; border-radius: 12px; }
.office-bell__item > a:focus-visible { outline: var(--sn-focus-ring, 3px solid #b58136); outline-offset: -2px; }
.office-bell__icon, .attention-card__icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--sn-brand-tint, #f4e8d8); color: var(--sn-brand, #691e39); }
.office-bell__item--bill .office-bell__icon, .attention-card--bill .attention-card__icon { background: var(--sn-warn-tint, #fff5e3); color: var(--sn-warn, #8a6c0a); }
.office-bell__item--booking .office-bell__icon { background: var(--sn-ok-tint, #edf5ef); color: var(--sn-ok, #246348); }
.attention-card--note .attention-card__icon { background: var(--sn-info-tint, #eef4f9); color: var(--sn-info, #315d80); }
.office-bell__text { min-width: 0; display: grid; gap: 1px; }
.office-bell__text strong { font-weight: 650; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.office-bell__text small { color: var(--sn-text-muted, #746a67); font-size: 12.5px; overflow-wrap: anywhere; }
.office-bell__more { display: block; padding: 4px 16px 10px; font-weight: 600; color: var(--sn-brand, #691e39); }
.office-bell__tools { padding: 0 16px 10px; }
.office-bell__read { min-height: 0; padding: 6px 12px; border: 1px solid var(--sn-line-strong, #d4c6b2); border-radius: 999px; background: transparent; color: var(--sn-brand, #691e39); font: 600 12px/1.2 var(--sn-font-ui, sans-serif); cursor: pointer; }
.office-bell__read:hover { background: var(--sn-brand-tint, #f4e8d8); }
.office-bell__foot { position: sticky; bottom: 0; padding: 10px 16px 12px; background: var(--sn-surface, #fff); border-top: 1px solid var(--sn-line, #e4ddd4); }
.office-bell__foot a { font-weight: 650; color: var(--sn-brand, #691e39); text-decoration: none; }
.office-bell__foot a:hover { text-decoration: underline; }
@media (max-width: 650px) { .office-bell .office-bell__panel { position: fixed; top: 4rem; right: 4vw; left: 4vw; width: auto; } }

.attention-queue--cards { padding: clamp(16px, 2.4vw, 28px); }
.attention-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.attention-head h2 { margin: 0; }
.attention-count { margin: 4px 0 0; color: var(--sn-text-muted, #746a67); }
.attention-count b { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; margin-right: 4px; border-radius: 999px; background: var(--sn-brand, #691e39); color: #fff; font-size: 13px; }
.attention-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 14px; }
.attention-tools .field { margin: 0; }
.attention-queue--cards .attention-list { display: grid; gap: 10px; }
.attention-queue--cards .attention-card { position: relative; padding: 0; border: 1px solid var(--sn-line, #e4ddd4); border-radius: 14px; background: var(--sn-surface, #fff); box-shadow: var(--sn-shadow-1, 0 1px 2px rgba(52, 39, 42, .06)); transition: box-shadow var(--sn-motion, .18s ease), border-color var(--sn-motion, .18s ease), transform var(--sn-motion, .18s ease), opacity var(--sn-motion, .18s ease); }
.attention-queue--cards .attention-card:hover { border-color: var(--sn-line-strong, #d4c6b2); box-shadow: var(--sn-shadow-2, 0 4px 14px rgba(52, 39, 42, .08)); transform: translateY(-1px); }
.attention-queue--cards .attention-card[open] { border-color: var(--sn-brand, #691e39); box-shadow: var(--sn-shadow-2, 0 4px 14px rgba(52, 39, 42, .08)); transform: none; }
.attention-queue--cards .attention-card.is-focus { box-shadow: 0 0 0 3px var(--sn-gold, #b58136); }
.attention-queue--cards .attention-card.is-leaving { opacity: 0; transform: translateX(12px); }
.attention-queue--cards .attention-card.is-cleared { background: var(--sn-surface-sunken, #f8f0e3); }
.attention-queue--cards .attention-card > summary, .attention-queue--cards .attention-card__main { display: flex; align-items: center; gap: 12px; padding: 12px 10px 12px 14px; cursor: pointer; list-style: none; border-radius: 14px; color: inherit; text-decoration: none; }
.attention-queue--cards .attention-card > summary::-webkit-details-marker { display: none; }
.attention-queue--cards .attention-card > summary:focus-visible, .attention-queue--cards a.attention-card__main:focus-visible { outline: var(--sn-focus-ring, 3px solid #b58136); outline-offset: 2px; }
.attention-queue--cards .attention-card summary span { margin: 0; }
.attention-queue--cards .attention-card__icon { display: grid; }
.attention-queue--cards .attention-card__text { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.attention-queue--cards .attention-card__text strong { font-size: 15px; font-weight: 650; }
.attention-queue--cards .attention-card__text > span { display: block; color: var(--sn-text-muted, #746a67); font-size: 13.5px; overflow-wrap: anywhere; }
.attention-queue--cards .attention-card__text em { font-style: normal; font-weight: 650; font-size: 13px; color: var(--sn-brand, #691e39); }
.attention-queue--cards .attention-card__tag { flex: none; display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--sn-brand-tint, #f4e8d8); color: var(--sn-brand, #691e39); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.attention-queue--cards .attention-card--bill .attention-card__tag { background: var(--sn-warn-tint, #fff5e3); color: var(--sn-warn, #8a6c0a); }
.attention-queue--cards .attention-card__chev { flex: none; display: block; width: 9px; height: 9px; margin-right: 6px; border-right: 2px solid var(--sn-text-faint, #9a908b); border-bottom: 2px solid var(--sn-text-faint, #9a908b); transform: rotate(45deg); transition: transform var(--sn-motion, .18s ease); }
.attention-queue--cards .attention-card[open] .attention-card__chev { transform: rotate(-135deg); }
.attention-queue--cards .attention-card .attention-actions { margin: 0; padding: 4px 14px 14px 64px; }
.attention-queue--cards article.attention-card { display: flex; align-items: center; flex-wrap: wrap; }
.attention-queue--cards article.attention-card .attention-card__main { flex: 1 1 0; min-width: 0; }
.attention-queue--cards article.attention-card div.attention-card__main { cursor: default; }
.attention-queue--cards article.attention-card > .attention-card__x { margin-right: 10px; }
.attention-queue--cards article.attention-card > p[role=status] { flex-basis: 100%; margin: 0; padding: 0 14px; }
.attention-queue--cards article.attention-card > p[role=status]:not(:empty) { padding-bottom: 12px; }
.attention-hint { margin: 14px 0 0; color: var(--sn-text-muted, #746a67); font-size: 12.5px; }
.attention-queue--cards > a.primary { margin: 14px 0 0; }
@media (max-width: 560px) {
  .attention-queue--cards .attention-card__tag { display: none; }
  .attention-queue--cards .attention-card .attention-actions { padding-left: 14px; }
  .office-bell__close, .office-bell__x, .attention-card__x, .prospect-x { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .office-bell[open] .office-bell__panel { animation: none; }
  .attention-queue--cards .attention-card, .attention-queue--cards .attention-card:hover { transition: none; transform: none; }
}
/* The × that deletes a prospect on a Company prospects card. */
.payment-record > .prospect-x { position: absolute; top: 10px; right: 10px; }
.payment-record > .prospect-x + h2 { padding-right: 44px; }
