/*
 * n0w Product System — 2026
 * Una capa editorial, humana y contextual sobre las superficies canónicas.
 * No define una estética por pantalla: todos los componentes nacen de los
 * mismos tokens de ritmo, tinta, materia, estado y profundidad.
 */

:root {
  --paper: #f3efe6;
  --paper-warm: #ebe4d6;
  --paper-light: #fbf9f4;
  --paper-deep: #ded5c4;
  --charcoal: #171a16;
  --charcoal-soft: #383d36;
  --moss: #315540;
  --moss-soft: #dce5db;
  --clay: #c45336;
  --clay-soft: #f1d9cf;
  --cobalt: #354d9b;
  --cobalt-soft: #dce1f2;
  --sun: #ddb14d;
  --sun-soft: #f2e7c7;
  --sky: #85a9ad;
  --product-line: rgba(23, 26, 22, .14);
  --product-line-strong: rgba(23, 26, 22, .28);
  --product-shadow: 0 18px 50px rgba(49, 42, 31, .09);
  --product-shadow-soft: 0 8px 24px rgba(49, 42, 31, .06);
  --product-radius-sm: 8px;
  --product-radius: 16px;
  --product-radius-lg: 26px;
  --product-gutter: clamp(18px, 3.2vw, 48px);
  --product-content: 1240px;

  --bg: var(--paper);
  --bg-soft: var(--paper-warm);
  --surface: var(--paper-light);
  --surface-hover: #f7f3eb;
  --ink: var(--charcoal);
  --ink-soft: var(--charcoal-soft);
  --muted: #77766e;
  --line: var(--product-line);
  --line-strong: var(--product-line-strong);
  --gold-1: var(--sun-soft);
  --gold-2: var(--charcoal);
  --gold-soft: rgba(221, 177, 77, .18);
  --alive: var(--moss);
  --alive-soft: rgba(49, 85, 64, .12);
  --earth: var(--clay);
  --earth-soft: rgba(196, 83, 54, .11);
  --glass: rgba(251, 249, 244, .82);
  --glass-heavy: rgba(251, 249, 244, .94);
  --radius-sm: var(--product-radius-sm);
  --radius: 12px;
  --radius-lg: var(--product-radius);
  --radius-xl: var(--product-radius-lg);
  --shadow: var(--product-shadow-soft);
  --shadow-lg: var(--product-shadow);
  --transition: .2s cubic-bezier(.2, .7, .2, 1);
}

html { background: var(--paper); }

body.n0w-product {
  background:
    radial-gradient(circle at 88% 12%, rgba(221, 177, 77, .11), transparent 27rem),
    radial-gradient(circle at 8% 86%, rgba(53, 77, 155, .07), transparent 30rem),
    var(--paper);
  color: var(--charcoal);
}

body.n0w-product::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .22;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(23, 26, 22, .15) .55px, transparent .65px);
  background-size: 7px 7px;
  mix-blend-mode: multiply;
}

body.n0w-product ::selection { background: var(--sun); color: var(--charcoal); }

body.n0w-product :focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 6px;
}

.product-skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 10000;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--charcoal);
  color: var(--paper-light);
  font: 700 .75rem var(--sans);
  transform: translate(-50%, -160%);
  transition: transform .18s ease;
}

.product-skip-link:focus { transform: translate(-50%, 0); }

.product-eyebrow,
.product-panel-label,
.product-context-kicker {
  display: block;
  color: var(--clay);
  font: 750 .66rem/1.2 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.product-view-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(30px, 5vw, 72px) 0 clamp(24px, 3vw, 40px);
}

.product-view-header h1 {
  max-width: 860px;
  margin: 8px 0 0;
  font: 540 clamp(2.25rem, 5.5vw, 5.8rem)/.93 var(--serif);
  letter-spacing: -.055em;
  text-wrap: balance;
}

.product-view-header p {
  max-width: 610px;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: clamp(.86rem, 1.2vw, 1rem);
  line-height: 1.65;
}

.product-panel {
  position: relative;
  min-width: 0;
  border: 1px solid var(--product-line);
  border-radius: var(--product-radius-lg);
  background: rgba(251, 249, 244, .75);
  box-shadow: var(--product-shadow-soft);
  overflow: hidden;
}

.product-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}

.product-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--product-line);
}

.product-panel-head h2,
.product-panel-head h3 {
  margin: 4px 0 0;
  font: 560 clamp(1.12rem, 2vw, 1.55rem)/1.08 var(--serif);
  letter-spacing: -.025em;
}

.product-panel-head p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: .73rem;
  line-height: 1.45;
}

.product-link-button,
.product-quiet-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--product-line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 650 .72rem var(--sans);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.product-link-button:hover,
.product-quiet-button:hover {
  background: var(--charcoal);
  color: var(--paper-light);
  transform: translateY(-1px);
}

/* App shell */
.sys-badge { display: none; }

.topbar {
  min-height: 64px;
  padding: 12px var(--product-gutter);
  background: rgba(243, 239, 230, .88);
  border-bottom: 1px solid var(--product-line);
  backdrop-filter: blur(20px) saturate(1.08);
}

.brand-wordmark-top {
  width: 70px;
  max-height: 28px;
  object-fit: contain;
  filter: contrast(1.1);
  display: block;
}

.product-top-context {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 18px;
}

.product-context-kicker { color: var(--muted); font-size: .57rem; letter-spacing: .06em; text-transform: uppercase; }
.product-context-name { font: 560 .92rem var(--serif); color: var(--charcoal); }
.product-context-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font: 700 .54rem var(--sans);
  letter-spacing: .09em;
  text-transform: uppercase;
  background: var(--paper-warm);
  border: 1px solid var(--product-line);
  color: var(--muted);
  transition: all .2s ease;
}
.product-context-badge[data-surface="public"] {
  background: var(--moss-soft);
  border-color: rgba(49,85,64,.2);
  color: #24442f;
}
.product-context-badge[data-surface="professional"] {
  background: var(--cobalt-soft);
  border-color: rgba(53,77,155,.2);
  color: #24356e;
}
.product-context-badge[data-surface="internal"] {
  background: var(--clay-soft);
  border-color: rgba(196,83,54,.2);
  color: #7d2e1b;
}

.mode-toggle-classic,
.notif-bell {
  background: rgba(251, 249, 244, .62);
  border-color: var(--product-line);
}

.bottomnav .nav-item .nav-mark,
.sidebar-item .nav-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: 720 .55rem/1 var(--sans);
  letter-spacing: .02em;
  transition: inherit;
}

.nav-item.active .nav-mark { background: var(--charcoal); color: var(--paper-light); }

@media (min-width: 900px) {
  #app { padding-left: 172px; }

  .bottomnav {
    width: 172px;
    padding: 28px 14px 22px;
    background: var(--charcoal);
    color: var(--paper-light);
    border: 0;
    box-shadow: 16px 0 54px rgba(23, 26, 22, .11);
  }

  .bottomnav::before {
    height: 50px;
    margin: 0 14px 34px;
    background-color: transparent;
    background-size: 96px auto;
    filter: invert(1);
  }

  .bottomnav::after {
    content: 'PERSONA · CONTEXTO · POSIBILIDAD';
    display: block;
    margin: auto 10px 0;
    color: rgba(251, 249, 244, .42);
    font: 650 .48rem/1.6 var(--sans);
    letter-spacing: .13em;
  }

  .bottomnav .nav-item {
    position: relative;
    gap: 10px;
    margin-bottom: 5px;
    padding: 10px 12px;
    color: rgba(251, 249, 244, .65);
    border-radius: 12px;
    transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .bottomnav .nav-item:hover {
    background: rgba(251, 249, 244, .08);
    color: var(--paper-light);
    transform: translateX(2px);
  }

  .bottomnav .nav-item.active {
    background: var(--sun);
    color: var(--charcoal);
    box-shadow: 0 4px 14px rgba(0,0,0,.2);
  }

  .bottomnav .nav-item.active .nav-mark {
    background: var(--charcoal);
    color: var(--sun);
  }

  body[data-surface="public"] .bottomnav .nav-item.active {
    background: var(--sun);
    color: var(--charcoal);
  }
  body[data-surface="public"] .bottomnav .nav-item.active .nav-mark {
    background: var(--charcoal);
    color: var(--sun);
  }

  body[data-surface="professional"] .bottomnav .nav-item.active {
    background: var(--cobalt);
    color: var(--paper-light);
  }
  body[data-surface="professional"] .bottomnav .nav-item.active .nav-mark {
    background: var(--paper-light);
    color: var(--cobalt);
  }

  body[data-surface="internal"] .bottomnav .nav-item.active {
    background: var(--clay);
    color: var(--paper-light);
  }
  body[data-surface="internal"] .bottomnav .nav-item.active .nav-mark {
    background: var(--paper-light);
    color: var(--clay);
  }

  .bottomnav .nav-label { font-size: .8rem; font-weight: 600; letter-spacing: -.01em; }
}

/* Dashboard — activity and discovery centre */
#viewDashboard { background: transparent; }

#viewDashboard .dash-scroll {
  width: 100%;
  max-width: var(--product-content);
  margin: 0 auto;
  padding: 0 var(--product-gutter) 80px;
}

.dash-product-header .dash-datetime {
  max-width: 180px;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.5;
  white-space: normal;
}

.dash-intention {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-top: 14px;
  padding: 7px 12px;
  border: 1px solid rgba(196, 83, 54, .35);
  border-radius: 999px;
  background: var(--clay-soft);
  color: #73301f;
  font-style: normal;
}

.dash-intention::before { content: 'Propósito · '; font-weight: 700; }

.dash-command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, .8fr);
  gap: 18px;
  margin-bottom: 18px;
}

.dash-garden-panel {
  min-height: 360px;
  background:
    radial-gradient(circle at 82% 18%, rgba(221, 177, 77, .3), transparent 15rem),
    linear-gradient(145deg, #315540, #203c2c 68%, #182e22);
  color: var(--paper-light);
}

.dash-garden-panel .product-panel-label { color: #e9c86e; }
.dash-garden-panel .product-panel-head { border-color: rgba(255,255,255,.14); }
.dash-garden-panel .product-panel-head p { color: rgba(255,255,255,.6); }
.dash-garden-panel .product-quiet-button { color: #fff; border-color: rgba(255,255,255,.35); }

.dash-garden-panel #dashGarden { padding: 28px 26px 30px; }
.dash-garden-panel .dg-hl-text { color: rgba(255,255,255,.9); font-size: 1rem; }
.dash-garden-panel .dg-empty-text { color: rgba(255,255,255,.72); }
.dash-garden-panel .dg-plant {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
  color: #fff;
}
.dash-garden-panel .dg-plant-name { color: rgba(255,255,255,.8); }
.dash-garden-panel .dg-plant-bar { background: rgba(255,255,255,.15); }
.dash-garden-panel .dg-plant-bar-fill { background: var(--sun); }

.dash-vitals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--sun-soft);
}

.dash-vitals .dash-stat {
  min-height: 142px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px;
  border: 0;
  border-right: 1px solid rgba(23,26,22,.13);
  border-bottom: 1px solid rgba(23,26,22,.13);
  border-radius: 0;
  background: transparent;
}

.dash-vitals .dash-stat:nth-child(2n) { border-right: 0; }
.dash-vitals .dash-stat:nth-last-child(-n+2) { border-bottom: 0; }
.dash-vitals .dash-stat-num { font: 560 clamp(2rem, 4vw, 3.2rem)/1 var(--serif); }
.dash-vitals .dash-stat-label { max-width: 110px; font-size: .58rem; letter-spacing: .1em; }
.dash-stat-source { color: var(--muted); font-size: .56rem; line-height: 1.35; }

.dash-discovery-grid,
.dash-lower-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.dash-panel-body { padding: 8px 14px 16px; }

.dash-activity { gap: 0; }

.dash-activity-item {
  position: relative;
  gap: 12px;
  padding: 16px 10px;
  border: 0;
  border-bottom: 1px solid var(--product-line);
  border-radius: 0;
  background: transparent;
}

.dash-activity-item:last-child { border-bottom: 0; }
.dash-activity-item:hover { background: rgba(23, 26, 22, .035); }
.dash-activity-dot { width: 8px; height: 8px; margin-top: 6px; background: var(--clay); }
.dash-activity-text { font-size: .8rem; line-height: 1.55; }
.dash-affinity-reason { margin-top: 4px; font-size: .7rem; line-height: 1.5; }

.dash-project-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 10px;
  border: 0;
  border-bottom: 1px solid var(--product-line);
  background: transparent;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.dash-project-item:last-child { border-bottom: 0; }
.dash-project-pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--moss); box-shadow: 0 0 0 6px var(--moss-soft); }
.dash-project-pulse.paused { background: var(--sun); box-shadow: 0 0 0 6px var(--sun-soft); }
.dash-project-pulse.finished { background: var(--sky); box-shadow: 0 0 0 6px rgba(133,169,173,.16); }
.dash-project-copy strong { display: block; font: 560 .9rem var(--serif); }
.dash-project-copy span { display: block; margin-top: 3px; color: var(--muted); font-size: .66rem; }
.dash-project-members { color: var(--muted); font-size: .62rem; }

.dash-next-step {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px;
  background: var(--cobalt-soft);
}

.dash-next-step strong { max-width: 410px; font: 540 clamp(1.4rem, 3vw, 2.3rem)/1.05 var(--serif); letter-spacing: -.03em; }
.dash-next-step p { max-width: 440px; margin-top: 10px; color: #39446d; font-size: .78rem; line-height: 1.55; }
.dash-next-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }

.dash-next-block { display: grid; gap: 7px; }
.dash-next-block > p { margin: 0; }

.dash-outcome-summary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding: 16px 0;
  border-top: 1px solid rgba(53, 77, 155, .18);
  border-bottom: 1px solid rgba(53, 77, 155, .18);
}

.dash-outcome-summary > span { display: grid; gap: 5px; }
.dash-outcome-summary small { color: #39446d; font-size: .7rem; line-height: 1.45; }
.dash-outcome-summary > strong {
  max-width: none;
  color: var(--clay);
  font: 570 2.5rem/1 var(--serif);
}

/* HumanLens 6D interactive orbital inspector */
@keyframes lensOrbitalRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes lensNodePulse {
  0%, 100% { transform: scale(1); opacity: .88; }
  50% { transform: scale(1.15); opacity: 1; }
}

.lens-orbit {
  --lens-context: .15;
  --lens-heritage: .15;
  --lens-activity: .15;
  --lens-purpose: .15;
  --lens-complement: .15;
  --lens-opportunity: .15;
  position: relative;
  width: 150px;
  height: 150px;
  flex: 0 0 150px;
  border-radius: 50%;
  background:
    conic-gradient(
      rgba(196,83,54,var(--lens-context)) 0deg 60deg,
      rgba(221,177,77,var(--lens-heritage)) 60deg 120deg,
      rgba(49,85,64,var(--lens-activity)) 120deg 180deg,
      rgba(53,77,155,var(--lens-purpose)) 180deg 240deg,
      rgba(133,169,173,var(--lens-complement)) 240deg 300deg,
      rgba(95,64,123,var(--lens-opportunity)) 300deg 360deg
    );
  box-shadow:
    inset 0 0 0 1px rgba(23,26,22,.12),
    0 10px 30px rgba(23,26,22,.08);
  transition: transform .28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .28s cubic-bezier(0.16, 1, 0.3, 1);
  display: grid;
  place-items: center;
}
.lens-orbit:hover {
  transform: scale(1.04);
  box-shadow:
    inset 0 0 0 1px var(--product-line-strong),
    0 16px 40px rgba(23,26,22,.12);
}

.lens-orbit-track {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.45);
  pointer-events: none;
}

.lens-orbit-core {
  position: relative;
  z-index: 2;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--paper-light);
  box-shadow:
    inset 0 1px 3px rgba(23,26,22,.08),
    0 4px 14px rgba(23,26,22,.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}
.lens-orbit-badge {
  font: 800 .56rem var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.lens-orbit-axis {
  font: 700 .48rem var(--sans);
  letter-spacing: .12em;
  color: var(--clay);
}

.lens-orbit-nodes {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: lensOrbitalRotate 90s linear infinite;
  pointer-events: none;
}
.lens-node {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--charcoal);
  box-shadow: 0 0 0 2px var(--paper-light);
  animation: lensNodePulse 4s ease-in-out infinite;
}
.lens-node-contexto { top: 12px; right: 38px; background: var(--clay); }
.lens-node-patrimonio { top: 58px; right: 5px; background: var(--sun); }
.lens-node-actividad { bottom: 18px; right: 34px; background: var(--moss); }
.lens-node-objetivos { bottom: 18px; left: 34px; background: var(--cobalt); }
.lens-node-complementariedad { top: 58px; left: 5px; background: var(--sky); }
.lens-node-oportunidad { top: 12px; left: 38px; background: #5f407b; }

.lens-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.lens-dim-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--product-line);
  background: var(--paper-warm);
  color: var(--ink-soft);
  font: 600 .66rem var(--sans);
  cursor: pointer;
  transition: all .18s cubic-bezier(0.16, 1, 0.3, 1);
}
.lens-dim-btn:hover {
  border-color: var(--product-line-strong);
  background: var(--paper-light);
  color: var(--charcoal);
  transform: translateY(-1px);
}
.lens-dim-btn.active {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--paper-light);
  box-shadow: 0 2px 8px rgba(23,26,22,.16);
}
.lens-dim-btn i { width: 7px; height: 7px; border-radius: 50%; background: var(--clay); flex-shrink: 0; }
.lens-dim-btn[data-lens-dim="patrimonio"] i { background: var(--sun); }
.lens-dim-btn[data-lens-dim="actividad"] i { background: var(--moss); }
.lens-dim-btn[data-lens-dim="objetivos"] i { background: var(--cobalt); }
.lens-dim-btn[data-lens-dim="complementariedad"] i { background: var(--sky); }
.lens-dim-btn[data-lens-dim="oportunidad"] i { background: #5f407b; }

/* Selected dimension card — Exact required hierarchy */
.lens-dim-detail {
  margin-top: 18px;
  padding: 20px;
  border-radius: var(--product-radius-lg);
  background: var(--paper-light);
  border: 1px solid var(--product-line-strong);
  box-shadow: 0 4px 18px rgba(23,26,22,.04);
}
.lens-dim-hero {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--product-line);
}
.lens-dim-score {
  font: 540 clamp(2.4rem, 4vw, 3.2rem)/.9 var(--serif);
  letter-spacing: -.04em;
  color: var(--charcoal);
}
.lens-dim-tag {
  font: 700 .68rem var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cobalt);
}
.lens-dim-desc {
  margin: 0 0 14px;
  font-size: .82rem;
  line-height: 1.55;
  color: var(--ink);
}
.lens-dim-meta-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
  padding-top: 12px;
  border-top: 1px dashed var(--product-line-strong);
}
.lens-dim-source small,
.lens-dim-class small {
  display: block;
  font: 700 .54rem var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}
.lens-dim-source strong {
  font: 550 .74rem var(--sans);
  color: var(--ink-soft);
}
.lens-class-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(53,77,155,.1);
  color: var(--cobalt);
  font: 700 .6rem var(--sans);
  letter-spacing: .06em;
}

.profile-lens-inspector { width: 100%; }
.profile-lens-inspector .profile-lens-match {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.profile-lens-inspector .lens-orbit {
  margin: 10px auto 4px;
}
.profile-lens-inspector .lens-legend {
  justify-content: center;
}
.profile-lens-inspector .lens-match-copy {
  width: 100%;
}
.lens-inspector-header {
  text-align: center;
  margin-bottom: 6px;
}
.lens-inspector-header strong {
  display: block;
  font: 560 1.25rem/1.2 var(--serif);
  color: var(--charcoal);
  margin: 4px 0 6px;
}
.lens-inspector-header p {
  margin: 0;
  font-size: .78rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.profile-lens-subhead {
  margin: 24px 0 10px;
  font: 700 .68rem var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.dash-lens-match,
.profile-lens-match {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 10px;
  border-bottom: 1px solid var(--product-line);
  cursor: pointer;
}

.dash-lens-match:last-child,
.profile-lens-match:last-child { border-bottom: 0; }
.dash-lens-match .lens-orbit { width: 54px; height: 54px; flex-basis: 54px; }
.lens-match-copy { min-width: 0; flex: 1; }
.lens-match-copy strong { display: block; font: 600 .88rem var(--serif); }
.lens-match-copy p { margin: 4px 0 0; color: var(--ink-soft); font-size: .67rem; line-height: 1.45; }

/* Globe — Territorial & Multiscale Cartographic Observatory */
#viewGlobe {
  background: #090c0a;
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.globe-layout {
  display: flex;
  width: 100%;
  height: 100%;
  background: #090c0a;
  position: relative;
  overflow: hidden;
}

.globe-main {
  flex: 1;
  position: relative;
  height: 100%;
  min-width: 0;
  margin-right: 320px;
  background: #090c0a;
  overflow: hidden;
}

/* Dual-Stage Container */
.globe-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #090c0a;
  overflow: hidden;
}

.globe-3d-stage,
.globe-2d-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity .35s cubic-bezier(.2,.8,.2,1), visibility .35s;
}

.globe-3d-stage {
  z-index: 1;
}

.globe-3d-stage canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  background: #090c0a !important;
}

.globe-2d-stage {
  z-index: 2;
  background: #090c0a !important;
}

.globe-2d-stage canvas,
.maplibregl-canvas {
  background: #090c0a !important;
}

.globe-2d-stage.hidden,
.globe-3d-stage.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.globe-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  box-shadow: inset 0 0 100px rgba(9,12,10,.85), inset 0 0 40px rgba(0,0,0,.95);
}

/* Floating Top Toolbar */
.globe-toolbar {
  position: absolute;
  top: 16px;
  left: 18px;
  right: 18px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: auto;
}

.globe-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 520px;
}

.globe-brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(14, 18, 15, .78);
  border: 1px solid rgba(232, 201, 119, .22);
  color: #e8c977;
  font: 700 .58rem var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  backdrop-filter: blur(20px);
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}

.globe-brand-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8dc79c;
  box-shadow: 0 0 8px #8dc79c;
  animation: productPulse 2.4s ease-in-out infinite;
}

.globe-search-wrap {
  position: relative;
  flex: 1;
  min-width: 180px;
}

.globe-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: rgba(255,255,255,.45);
  pointer-events: none;
}

.globe-search-input {
  width: 100%;
  height: 38px;
  padding: 0 34px 0 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(14, 18, 15, .82);
  color: #fff;
  font-size: .76rem;
  backdrop-filter: blur(20px);
  transition: all .2s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}

.globe-search-input:focus {
  outline: none;
  border-color: rgba(232, 201, 119, .5);
  background: rgba(18, 24, 19, .95);
  box-shadow: 0 4px 20px rgba(0,0,0,.45), 0 0 0 1px rgba(232, 201, 119, .3);
}

.globe-search-input::placeholder {
  color: rgba(255,255,255,.45);
}

.globe-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: .8rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s ease;
}

.globe-search-clear:hover {
  background: rgba(255,255,255,.28);
}

.globe-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(16, 22, 17, .96);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,.6);
  backdrop-filter: blur(24px);
  max-height: 280px;
  overflow-y: auto;
  z-index: 110;
  padding: 6px;
}

.search-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,.88);
  font-size: .74rem;
  cursor: pointer;
  transition: all .15s ease;
}

.search-dropdown-item:hover,
.search-dropdown-item.selected {
  background: rgba(232, 201, 119, .14);
  color: #fff;
}

.search-dropdown-item small {
  color: rgba(255,255,255,.45);
  font-size: .62rem;
}

.globe-world-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(14, 18, 15, .82);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}

.globe-world-switch button {
  padding: 5px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,.58);
  font: 620 .65rem var(--sans);
  cursor: pointer;
  transition: all .16s ease;
}

.globe-world-switch button:hover {
  color: #fff;
}

.globe-world-switch button.active,
.globe-world-switch button[aria-pressed="true"] {
  background: rgba(255,255,255,.16);
  color: #fff;
}

/* Floating Deck (Styles + Scale + Layers) */
.globe-map-controls,
.globe-deck-floating {
  position: absolute;
  left: 18px;
  top: 72px;
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(540px, calc(100% - 36px));
}

.globe-style-switcher,
.globe-scale-switcher,
.globe-layer-control {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px 6px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(14, 18, 15, .84);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 18px rgba(0,0,0,.35);
  overflow-x: auto;
  scrollbar-width: none;
}

.globe-layer-button::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #38bdf8; vertical-align: middle; }
.globe-layer-button[data-globe-layer="person"]::before { background: #4ade80; }
.globe-layer-button[data-globe-layer="space"]::before { background: #facc15; }
.globe-layer-button[data-globe-layer="project"]::before { background: #ec4899; }

.globe-style-switcher::-webkit-scrollbar,
.globe-scale-switcher::-webkit-scrollbar,
.globe-layer-control::-webkit-scrollbar { display: none; }

.globe-style-btn,
.globe-scale-btn,
.globe-layer-button {
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,.62);
  font: 620 .63rem var(--sans);
  cursor: pointer;
  white-space: nowrap;
  transition: all .16s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.globe-style-btn:hover,
.globe-scale-btn:hover,
.globe-layer-button:hover {
  color: #fff;
  background: rgba(255,255,255,.1);
}

.globe-style-btn.active,
.globe-style-btn[aria-pressed="true"],
.globe-scale-btn.active,
.globe-scale-btn[aria-pressed="true"],
.globe-layer-button.active,
.globe-layer-button[aria-pressed="true"] {
  background: rgba(255,255,255,.18);
  color: #fff;
}

.globe-scale-myzone {
  color: #e8c977;
  font-weight: 700;
}

.globe-scale-myzone:hover {
  background: rgba(232,201,119,.18);
  color: #fff;
}

.globe-scale-restore {
  color: #a5b4fc;
}

.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.dot-signal { background: #38bdf8; box-shadow: 0 0 6px rgba(56,189,248,.6); }
.dot-person { background: #4ade80; box-shadow: 0 0 6px rgba(74,222,128,.6); }
.dot-space  { background: #facc15; box-shadow: 0 0 6px rgba(250,204,21,.6); }
.dot-project{ background: #ec4899; box-shadow: 0 0 6px rgba(236,72,153,.6); }

/* HUD Bottom Info */
.globe-hud {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.globe-context-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(14, 18, 15, .82);
  border: 1px solid rgba(232,201,119,.3);
  color: #e8c977;
  font: 700 .56rem var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
}

.globe-coords-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(14, 18, 15, .72);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.6);
  font: 500 .56rem var(--sans);
  font-family: monospace;
  backdrop-filter: blur(16px);
}

/* Observatory Sidebar (Desktop) */
.globe-observatory {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 1000;
  width: 320px;
  display: flex;
  flex-direction: column;
  color: #f9f7f1;
  background: #111612;
  border-left: 1px solid rgba(255,255,255,.12);
  overflow-y: auto;
  box-shadow: -8px 0 24px rgba(0,0,0,.4);
}

.globe-observatory-head {
  padding: 22px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.globe-observatory-head .product-panel-label {
  color: #e8c977;
}

.globe-observatory-head h3 {
  margin: 5px 0 0;
  font: 560 1.2rem var(--serif);
}

.globe-observatory-head p {
  margin: 6px 0 0;
  color: rgba(255,255,255,.5);
  font-size: .66rem;
  line-height: 1.45;
}

/* 6 Canonical Dimensions Stat Grid */
.globe-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  padding: 0;
  margin: 0;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.globe-stat-card {
  padding: 12px 14px;
  border-right: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.globe-stat-card:nth-child(2n) {
  border-right: 0;
}

.globe-stat-card strong {
  display: block;
  font: 560 1.25rem var(--serif);
  color: #fff;
}

.globe-stat-card span {
  font-size: .64rem;
  color: rgba(255,255,255,.7);
  font-weight: 500;
}

.globe-stat-card .metric-meta {
  font-size: .52rem;
  color: rgba(255,255,255,.38);
}

/* Context Panel (Subordinated Details) */
.globe-context-panel {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.globe-context-panel h4 {
  margin: 0;
  font: 560 1.05rem var(--serif);
  color: #fff;
}

.globe-context-panel p {
  margin: 0;
  color: rgba(255,255,255,.55);
  font-size: .68rem;
  line-height: 1.45;
}

.globe-context-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 6px;
}

.globe-context-stat {
  padding: 10px 4px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.02);
}

.globe-context-stat:last-child {
  border-right: 0;
}

.globe-context-stat strong {
  display: block;
  font: 560 1rem var(--serif);
  color: #fff;
}

.globe-context-stat span {
  color: rgba(255,255,255,.42);
  font-size: .48rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.globe-data-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.46);
  font-size: .6rem;
  line-height: 1.45;
}

.globe-street-actions {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Custom Leaflet Map Styling for n0w */
.leaflet-container {
  background: #090c0a !important;
  font-family: var(--sans) !important;
}

.leaflet-control-zoom {
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.4) !important;
  background: rgba(14, 18, 15, .88) !important;
  backdrop-filter: blur(16px);
}

.leaflet-control-zoom a {
  background: transparent !important;
  color: #fff !important;
  border-bottom: 1px solid rgba(255,255,255,.1) !important;
  width: 32px !important;
  height: 32px !important;
  line-height: 32px !important;
  font-size: 16px !important;
}

.leaflet-control-zoom a:hover {
  background: rgba(255,255,255,.15) !important;
}

.leaflet-control-attribution {
  background: rgba(14, 18, 15, .75) !important;
  color: rgba(255,255,255,.4) !important;
  font-size: .52rem !important;
  backdrop-filter: blur(10px);
  padding: 2px 6px !important;
  border-radius: 4px;
}

.leaflet-control-attribution a {
  color: rgba(232, 201, 119, .7) !important;
}

/* Custom N0W Map Markers & Clusters */
.n0w-cluster-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(14, 18, 15, .88);
  border: 2px solid #e8c977;
  color: #fff;
  font: 700 .75rem var(--sans);
  box-shadow: 0 0 16px rgba(232,201,119,.45), 0 4px 12px rgba(0,0,0,.6);
  cursor: pointer;
  transition: transform .18s cubic-bezier(.2,.8,.2,1);
}

.n0w-cluster-marker:hover {
  transform: scale(1.15);
  box-shadow: 0 0 24px rgba(232,201,119,.75);
}

.n0w-entity-pin {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 18, 15, .92);
  box-shadow: 0 4px 12px rgba(0,0,0,.5);
  cursor: pointer;
  transition: transform .16s ease;
}

.n0w-entity-pin:hover {
  transform: scale(1.2);
}

.n0w-entity-pin.pin-signal  { border: 2px solid #38bdf8; box-shadow: 0 0 12px rgba(56,189,248,.5); }
.n0w-entity-pin.pin-person  { border: 2px solid #4ade80; box-shadow: 0 0 12px rgba(74,222,128,.5); }
.n0w-entity-pin.pin-space   { border: 2px solid #facc15; box-shadow: 0 0 12px rgba(250,204,21,.5); }
.n0w-entity-pin.pin-project { border: 2px solid #ec4899; box-shadow: 0 0 12px rgba(236,72,153,.5); }

/* Custom Popup Card in MapLibre & Leaflet */
.maplibregl-popup {
  max-width: 280px !important;
  z-index: 1000;
}
.maplibregl-popup-content {
  background: rgba(14, 18, 15, .94) !important;
  backdrop-filter: blur(16px);
  border: 1px solid rgba(232, 201, 119, .35) !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
  box-shadow: 0 12px 32px rgba(0,0,0,.6) !important;
  color: #fff !important;
}
.maplibregl-popup-close-button {
  color: rgba(255,255,255,.6) !important;
  font-size: 16px !important;
  padding: 4px 8px !important;
}
.maplibregl-popup-close-button:hover {
  color: #fff !important;
}
.maplibregl-popup-anchor-top .maplibregl-popup-tip { border-bottom-color: rgba(14, 18, 15, .94) !important; }
.maplibregl-popup-anchor-bottom .maplibregl-popup-tip { border-top-color: rgba(14, 18, 15, .94) !important; }
.maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: rgba(14, 18, 15, .94) !important; }
.maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: rgba(14, 18, 15, .94) !important; }

.leaflet-popup-content-wrapper {
  background: rgba(16, 22, 17, .96) !important;
  border: 1px solid rgba(232, 201, 119, .3) !important;
  border-radius: 16px !important;
  color: #fff !important;
  box-shadow: 0 12px 36px rgba(0,0,0,.7) !important;
  backdrop-filter: blur(24px) !important;
  padding: 6px !important;
}

.leaflet-popup-tip {
  background: rgba(16, 22, 17, .96) !important;
  border: 1px solid rgba(232, 201, 119, .3) !important;
}

.n0w-map-popup-card {
  padding: 6px 4px;
}

.n0w-map-popup-card h4 {
  margin: 0 0 4px;
  font: 560 .95rem var(--serif);
  color: #fff;
}

.n0w-map-popup-card p {
  margin: 0 0 8px;
  font-size: .68rem;
  color: rgba(255,255,255,.65);
  line-height: 1.4;
}

/* Street Inspector Modal Styles */
.street-sub {
  font-size: .74rem;
  color: var(--charcoal-soft, #555);
  margin-bottom: 12px;
}

.street-coord-card {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--paper-warm, #f7f4ec);
  border: 1px solid var(--product-line, rgba(0,0,0,.08));
  margin-top: 8px;
}

.street-coord-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .72rem;
  padding: 5px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.street-coord-row:last-child { border-bottom: 0; }
.street-coord-row span { color: var(--charcoal-soft, #555); }
.street-coord-row strong { color: var(--charcoal, #111); font-family: monospace; font-weight: 600; }

.street-provider-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(229,178,77,.12);
  border: 1px solid rgba(229,178,77,.25);
  font-size: .68rem;
  color: var(--charcoal, #222);
  line-height: 1.45;
}

@media (max-width: 899px) {
  #viewGlobe {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .globe-layout {
    flex-direction: column;
    height: auto;
    min-height: 100%;
  }
  .globe-main {
    margin-right: 0;
    width: 100%;
    height: 64vh;
    min-height: 420px;
    position: relative;
    flex-shrink: 0;
  }
  .globe-brand-tag {
    display: none;
  }
  .globe-toolbar {
    top: 8px;
    left: 8px;
    right: 8px;
    gap: 6px;
  }
  .globe-toolbar-left {
    max-width: none;
  }
  .globe-search-input {
    height: 34px;
    font-size: .7rem;
    padding-left: 30px;
  }
  .globe-world-switch {
    height: 34px;
    padding: 2px;
  }
  .globe-world-switch button {
    padding: 0 8px;
    font-size: .6rem;
  }
  .globe-deck-floating {
    top: 48px;
    left: 8px;
    right: 8px;
    max-width: calc(100% - 16px);
    gap: 5px;
  }
  .globe-style-switcher,
  .globe-scale-switcher,
  .globe-layer-control {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 3px 6px;
    gap: 4px;
    border-radius: 999px;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }
  .globe-style-switcher::-webkit-scrollbar,
  .globe-scale-switcher::-webkit-scrollbar,
  .globe-layer-control::-webkit-scrollbar {
    display: none;
  }
  .globe-style-btn,
  .globe-scale-btn,
  .globe-layer-button {
    flex-shrink: 0;
    white-space: nowrap;
    min-height: 28px;
    padding: 0 9px;
    font-size: .6rem;
  }
  .globe-hud {
    bottom: 8px;
    left: 8px;
    right: 8px;
    gap: 6px;
    flex-wrap: wrap;
  }
  .globe-context-badge,
  .globe-coords-badge {
    font-size: .52rem;
    padding: 3px 8px;
  }
  .globe-observatory {
    position: relative;
    width: 100%;
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 16px 14px 100px;
    background: #0d120e;
    z-index: 5;
  }
}

/* Profile — a map of possibilities */
#viewProfile { padding: 0; background: transparent; }
.profile-scroll { width: 100%; }
.profile-product-shell { max-width: var(--product-content); margin: 0 auto; padding: 0 var(--product-gutter) 90px; }

.profile-product-hero {
  position: relative;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: end;
  padding: clamp(52px, 8vw, 100px) 0 36px;
  border-bottom: 1px solid var(--product-line-strong);
}

.profile-cover {
  position: absolute;
  inset: 0 calc(var(--product-gutter) * -1) auto;
  height: 180px;
  background:
    radial-gradient(circle at 75% 25%, rgba(221,177,77,.35), transparent 16rem),
    linear-gradient(120deg, var(--moss-soft), var(--paper-warm) 50%, var(--clay-soft));
  border-radius: 0 0 var(--product-radius-lg) var(--product-radius-lg);
}

.profile-cover-grad { background: none; }
.profile-avatar {
  width: 140px;
  height: 140px;
  margin: 0;
  border: 6px solid var(--paper);
  border-radius: 32px;
  box-shadow: 0 8px 24px rgba(23,26,22,.09);
  background: var(--paper-light);
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.profile-avatar img,
.profile-avatar span { width: 100% !important; height: 100% !important; border-radius: 26px !important; }
.profile-avatar span { font: 560 3.6rem var(--serif) !important; background: var(--charcoal) !important; color: var(--paper-light); display: grid; place-items: center; }

.profile-head { align-items: flex-start; padding: 0; text-align: left; position: relative; z-index: 2; }
.profile-name { margin: 4px 0 0; font: 540 clamp(2.6rem, 5vw, 4.6rem)/.95 var(--serif); letter-spacing: -.05em; color: var(--charcoal); }
.profile-bio { max-width: 680px; margin: 12px 0 0; color: var(--ink-soft); font-size: .92rem; line-height: 1.6; text-align: left; }
.profile-tags { justify-content: flex-start; margin: 16px 0 0; gap: 6px; }
.profile-tag { padding: 4px 10px; border-color: var(--product-line-strong); border-radius: 999px; background: transparent; font-size: .65rem; color: var(--charcoal); }
.profile-social { justify-content: flex-start !important; }
.profile-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-start; margin: 20px 0 0; }
.profile-intention-badge { margin: 10px 0 0; background: var(--clay-soft); color: #74311f; font: 700 .58rem var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }

.profile-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  color: var(--muted);
  font: 550 .74rem var(--sans);
}
.profile-meta-line span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.profile-meta-line span:not(:last-child)::after {
  content: '·';
  margin-left: 12px;
  color: var(--product-line-strong);
}

.profile-possibility-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  padding: 28px 0 34px;
}

.profile-map-card {
  min-height: 220px;
  padding: 24px;
  border-radius: var(--product-radius-lg);
  border: 1px solid var(--product-line);
  display: flex;
  flex-direction: column;
}
.profile-map-card.profile-capabilities { grid-column: span 4; background: var(--moss-soft); }
.profile-map-card.profile-purpose { grid-column: span 3; background: var(--sun-soft); }
.profile-map-card.profile-lens { grid-column: span 5; background: var(--cobalt-soft); border-color: rgba(53,77,155,.2); }
.profile-map-card h3 { margin: 8px 0 0; font: 560 clamp(1.25rem, 2vw, 1.6rem)/1.1 var(--serif); color: var(--charcoal); }
.profile-map-card p { margin: 8px 0 0; color: var(--ink-soft); font-size: .74rem; line-height: 1.5; }
.profile-map-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.profile-map-tags span { padding: 4px 10px; border: 1px solid rgba(23,26,22,.14); border-radius: 999px; background: rgba(255,255,255,.5); font: 550 .64rem var(--sans); color: var(--charcoal); }
.profile-map-empty { color: var(--muted); font-size: .7rem; line-height: 1.5; font-style: italic; }

.profile-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  margin: 0;
  border: 1px solid var(--product-line);
  border-radius: var(--product-radius);
  overflow: hidden;
}
.profile-stat { padding: 16px; border-right: 1px solid var(--product-line); background: rgba(251,249,244,.6); }
.profile-stat:last-child { border-right: 0; }
.profile-stat span { font: 560 1.45rem var(--serif); }

.profile-affinity { margin: 0 0 22px; padding: 0; border: 0; background: transparent; }
.profile-affinity-banner { padding: 18px 20px; border-color: rgba(53,77,155,.2); border-radius: var(--product-radius); background: var(--cobalt-soft); }
.profile-tab-bar { justify-content: flex-start; margin: 18px 0; padding: 4px; border: 1px solid var(--product-line); background: rgba(251,249,244,.6); overflow-x: auto; }
.profile-tab { min-height: 42px; padding: 0 16px; white-space: nowrap; }
.profile-tab.active { background: var(--charcoal); color: var(--paper-light); box-shadow: none; }
.profile-rings { display: none; }
.profile-content { padding: 0; }

.profile-project-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-project-card {
  display: grid;
  gap: 8px;
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--product-line);
  border-radius: var(--product-radius);
  background: var(--paper-light);
  color: var(--ink);
  font-family: var(--sans);
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.profile-project-card:hover { transform: translateY(-3px); box-shadow: var(--product-shadow-soft); }
.profile-project-card strong { align-self: end; font: 560 1.25rem/1.08 var(--serif); }
.profile-project-card p { margin: 0; color: var(--ink-soft); font-size: .76rem; line-height: 1.5; }
.profile-project-card small { color: var(--muted); font-size: .62rem; }

.profile-lens-list { margin-top: 12px; }
.profile-lens-match { padding-inline: 0; }

/* Spaces — contextual living studio */
#viewSpace { background: var(--paper); }
.space-hero {
  padding: clamp(36px, 5vw, 64px) var(--product-gutter) 28px;
  background: var(--paper-light);
  border-bottom: 1px solid var(--product-line);
}
.space-hero-name {
  max-width: 880px;
  font: 540 clamp(2.5rem, 5.5vw, 4.8rem)/.95 var(--serif);
  letter-spacing: -.055em;
  color: var(--charcoal);
}
.space-hero-desc {
  max-width: 740px;
  margin-top: 12px;
  font-size: .92rem;
  line-height: 1.62;
  color: var(--ink-soft);
}
.space-picker {
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}
.space-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.space-hero-meta span {
  padding: 4px 12px;
  border: 1px solid var(--product-line);
  border-radius: 999px;
  background: transparent;
  font: 550 .66rem var(--sans);
  color: var(--charcoal);
}

.space-context-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 var(--product-gutter);
  border: 1px solid var(--product-line-strong);
  border-radius: 0 0 var(--product-radius-lg) var(--product-radius-lg);
  overflow: hidden;
  background: var(--product-line-strong);
  box-shadow: 0 6px 20px rgba(23,26,22,.04);
}
.space-context-item {
  min-height: 120px;
  padding: 22px;
  background: var(--paper-warm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.space-context-item:nth-child(1) { background: rgba(49,85,64,.04); }
.space-context-item:nth-child(2) { background: rgba(196,83,54,.04); }
.space-context-item:nth-child(3) { background: rgba(221,177,77,.05); }
.space-context-item:nth-child(4) { background: rgba(53,77,155,.04); }

.space-context-item strong {
  display: block;
  margin-top: 8px;
  font: 560 clamp(1.05rem, 1.6vw, 1.35rem)/1.15 var(--serif);
  color: var(--charcoal);
}
.space-context-item span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: .64rem;
  line-height: 1.45;
}

.space-studio {
  margin: 20px var(--product-gutter) 0;
  padding: 14px 20px;
  border: 1px solid var(--product-line);
  border-radius: var(--product-radius-lg);
  background: rgba(251,249,244,.8);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.space-studio-intro {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.space-studio-kicker {
  font: 700 .58rem var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clay);
}
.space-studio-intro strong {
  font-size: .84rem;
  color: var(--charcoal);
}
.space-studio-intro small {
  font-size: .7rem;
  color: var(--muted);
}
.space-studio-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.space-tool {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--product-line-strong);
  border-radius: 999px;
  background: var(--paper-light);
  color: var(--charcoal);
  font: 650 .72rem var(--sans);
  cursor: pointer;
  transition: all .18s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.space-tool:hover, .space-tool.is-active {
  background: var(--charcoal);
  color: var(--paper-light);
  border-color: var(--charcoal);
  transform: translateY(-1px);
}
.space-tool-primary {
  background: var(--charcoal);
  color: var(--paper-light);
  border-color: var(--charcoal);
}
.space-block-palette {
  border-color: var(--product-line-strong);
  background: rgba(251,249,244,.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(23,26,22,.08);
}
.space-canvas-wrap {
  margin: 16px var(--product-gutter) 48px;
}
.canvas {
  min-height: 520px;
  border: 1px solid var(--product-line-strong);
  border-radius: var(--product-radius-lg);
  background-color: var(--paper-light);
  background-image: radial-gradient(rgba(23,26,22,.11) 1px, transparent 1px);
  background-size: 24px 24px;
  position: relative;
  overflow: hidden;
}

/* Projects — living initiatives & capabilities in motion */
#viewProjects { max-width: none; width: 100%; padding: 0; background: transparent; }
.projects-product-shell { width: 100%; max-width: var(--product-content); margin: 0 auto; padding: 0 var(--product-gutter) 90px; }
.projects-header {
  position: static;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: clamp(36px, 5vw, 72px) 0 30px;
  border-bottom: 1px solid var(--product-line);
  background: transparent;
  backdrop-filter: none;
}
.projects-header h2 {
  margin: 4px 0 0;
  font: 540 clamp(2.6rem, 5.5vw, 5.2rem)/.95 var(--serif);
  letter-spacing: -.055em;
  color: var(--charcoal);
}
.projects-header-copy p {
  max-width: 580px;
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: .88rem;
  line-height: 1.6;
}
.projects-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.projects-actions .search-input {
  width: min(260px, 34vw);
  min-height: 44px;
  border: 1px solid var(--product-line-strong);
  border-radius: 999px;
  background: rgba(251,249,244,.8);
  padding: 0 18px;
  font-size: .82rem;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  padding: 32px 0;
}
.project-card {
  grid-column: span 6;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  border-radius: var(--product-radius-lg);
  border: 1px solid var(--product-line);
  background: var(--paper-light);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(23,26,22,.04);
  transition: transform .22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .22s cubic-bezier(0.16, 1, 0.3, 1), border-color .22s ease;
  cursor: pointer;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--product-line-strong);
  box-shadow: 0 12px 30px rgba(23,26,22,.08);
}
.project-card:nth-child(5n+1), .project-card:nth-child(5n+4) {
  grid-column: span 12;
}
.project-card-cover {
  min-height: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: var(--moss-soft);
  border-bottom: 1px solid var(--product-line);
}
.project-stage-kicker {
  font: 700 .62rem var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #24442f;
}
.project-card-space-tag {
  font: 600 .66rem var(--sans);
  color: var(--charcoal);
  background: rgba(255,255,255,.6);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(23,26,22,.1);
}
.project-card:nth-child(3n+2) .project-card-cover { background: var(--clay-soft); }
.project-card:nth-child(3n+2) .project-stage-kicker { color: #74311f; }
.project-card:nth-child(3n+3) .project-card-cover { background: var(--cobalt-soft); }
.project-card:nth-child(3n+3) .project-stage-kicker { color: #354d9b; }

.project-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
}
.project-card h3 {
  margin: 0;
  font: 560 clamp(1.3rem, 2.4vw, 1.85rem)/1.08 var(--serif);
  letter-spacing: -.03em;
  color: var(--charcoal);
}
.project-card .project-desc {
  margin-top: 10px;
  font-size: .82rem;
  line-height: 1.58;
  color: var(--ink-soft);
}
.project-purpose {
  margin: 16px 0 0;
  padding-left: 14px;
  border-left: 3px solid var(--clay);
  color: var(--ink-soft);
  font-size: .74rem;
  line-height: 1.52;
}
.project-space-anchor {
  margin-top: 12px;
  font-size: .72rem;
  color: var(--muted);
}
.project-space-anchor strong {
  color: var(--charcoal);
  font-weight: 600;
}
.project-card-footer {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.project-tags span {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--product-line-strong);
  border-radius: 999px;
  font: 600 .64rem var(--sans);
  color: var(--charcoal);
  background: rgba(255,255,255,.5);
}
.project-liveness {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
}
.project-members-count {
  color: var(--muted);
  font: 600 .68rem var(--sans);
}
.status-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font: 700 .58rem var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.status-badge.active { background: var(--moss-soft); color: #24442f; }
.status-badge.paused { background: var(--sun-soft); color: #745b1a; }
.status-badge.finished { background: var(--cobalt-soft); color: #31427b; }

.project-detail {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.project-detail .detail-section {
  padding: 18px 20px;
  border: 1px solid var(--product-line);
  border-radius: var(--product-radius);
  background: rgba(251,249,244,.85);
  transition: border-color .2s ease;
}
.project-vital-hero {
  background: var(--moss-soft) !important;
  border-color: rgba(49,85,64,.2) !important;
}
.project-vital-badge {
  font: 700 .64rem var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #24442f;
  margin-bottom: 8px;
}
.project-detail .detail-section h4 {
  margin: 0 0 8px;
  color: var(--clay);
  font: 700 .64rem var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.project-detail .detail-section p {
  margin: 0;
  font-size: .84rem;
  line-height: 1.55;
  color: var(--ink);
}
.project-detail .member-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  background: var(--paper-light);
  border: 1px solid var(--product-line);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 500;
}
.project-detail .outcome-item {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  background: var(--paper-light);
  border: 1px solid var(--product-line);
  border-radius: var(--product-radius);
  margin-bottom: 8px;
}
.project-detail .outcome-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--sun);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
}
.project-detail .outcome-title strong {
  font: 600 .84rem var(--sans);
  color: var(--charcoal);
}

/* Space studio empty state */
.space-empty-studio {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  max-width: 480px;
  margin: 40px auto;
  border: 1px dashed var(--product-line-strong);
  border-radius: var(--product-radius-lg);
  background: rgba(251,249,244,.6);
  backdrop-filter: blur(8px);
}
.space-empty-studio .empty-mark {
  font: 800 .62rem var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 10px;
}
.space-empty-studio h3 {
  margin: 0 0 8px;
  font: 560 1.5rem/1.15 var(--serif);
  color: var(--charcoal);
}
.space-empty-studio p {
  margin: 0 0 16px;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* Feed — Hierarchical Navigation */
/* Feed — Living Editorial Stream */
#viewFeed {
  width: 100%;
  max-width: none;
  background: transparent;
  padding: 0;
}
.feed-product-shell {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 64px) var(--product-gutter) 110px;
}
.feed-editorial-header {
  margin-bottom: 24px;
}
.feed-editorial-header .feed-kicker {
  display: inline-block;
  color: var(--clay);
  font: 700 .62rem var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.feed-editorial-header h1 {
  margin: 0;
  font: 540 clamp(2.4rem, 6vw, 4rem)/.96 var(--serif);
  letter-spacing: -.055em;
  color: var(--charcoal);
}
.feed-editorial-header p {
  margin: 10px 0 0;
  font-size: .86rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 520px;
}

/* Feed Search and Primary Nav */
.feed-nav-bar { margin: 16px 0 20px; }
.feed-filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feed-primary-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(243,239,230,.88);
  border: 1px solid var(--product-line);
  backdrop-filter: blur(14px);
  width: max-content;
  max-width: 100%;
}
.feed-primary-tabs .eco-filter {
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font: 600 .74rem var(--sans);
  cursor: pointer;
  transition: all .16s ease;
  white-space: nowrap;
}
.feed-primary-tabs .eco-filter.active {
  background: var(--charcoal);
  color: var(--paper-light);
  box-shadow: 0 2px 8px rgba(23,26,22,.12);
}
.feed-filters-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--product-line);
  border-radius: 999px;
  background: rgba(251,249,244,.9);
  color: var(--ink-soft);
  font: 600 .68rem var(--sans);
  cursor: pointer;
  transition: all .16s ease;
  width: max-content;
}
.feed-filters-toggle:hover,
.feed-filters-toggle.active {
  border-color: var(--charcoal);
  color: var(--charcoal);
  background: var(--paper-light);
}
.feed-filters-toggle.active .feed-toggle-icon {
  transform: rotate(180deg);
}
.feed-toggle-icon {
  width: 12px;
  height: 12px;
  transition: transform .2s ease;
}
.feed-secondary-filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--product-radius);
  background: rgba(243,239,230,.75);
  border: 1px solid var(--product-line);
  backdrop-filter: blur(12px);
  animation: feedFadeDown .2s ease;
}
.feed-secondary-group,
.feed-type-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.feed-filter-label {
  font: 650 .62rem var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}
.feed-secondary-group .eco-filter,
.feed-type-filter {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--product-line);
  border-radius: 999px;
  background: var(--paper-light);
  color: var(--ink-soft);
  font: 550 .66rem var(--sans);
  cursor: pointer;
  transition: all .15s ease;
}
.feed-secondary-group .eco-filter.active,
.feed-type-filter.is-selected {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--paper-light);
}
@keyframes feedFadeDown {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Feed Cards — Author-grade breath and circulation */
.feed-list {
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 0 70px;
}
.actuality-card {
  position: relative;
  border: 1px solid var(--product-line);
  border-radius: var(--product-radius-lg);
  background: var(--paper-light);
  box-shadow: 0 2px 12px rgba(23,26,22,.03);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.actuality-card:hover {
  box-shadow: var(--product-shadow-soft);
  border-color: var(--product-line-strong);
}
.actuality-card-header {
  min-height: 56px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.actuality-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--charcoal);
  color: var(--paper-light);
  font: 700 .78rem var(--sans);
  flex-shrink: 0;
  border: 0;
  cursor: pointer;
}
.actuality-author {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
  padding: 0;
}
.actuality-author strong {
  font: 600 .84rem var(--sans);
  color: var(--charcoal);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.actuality-author span {
  font: 500 .62rem var(--sans);
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.actuality-media {
  width: 100%;
  background: var(--paper-warm);
  overflow: hidden;
}
.actuality-media img {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
  display: block;
}
.actuality-card-body {
  padding: 16px 18px 18px;
}
.actuality-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(23,26,22,.06);
}
.actuality-action-button {
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 600 .66rem var(--sans);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all .16s ease;
}
.actuality-action-button:hover {
  background: var(--paper-warm);
  color: var(--charcoal);
}

/* Discovery — separate entity families */
#viewDiscover { width: 100%; max-width: none; background: transparent; }
#viewDiscover .fi-scroll { width: 100%; max-width: var(--product-content); margin: 0 auto; padding: 0 var(--product-gutter) 110px; }
.discover-product-header { padding-bottom: 24px; }
.discover-switcher {
  position: sticky;
  top: 8px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: 100%;
  max-width: 640px;
  margin: 0 auto 40px;
  padding: 5px;
  border: 1px solid var(--product-line);
  border-radius: 999px;
  background: rgba(243,239,230,.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 4px 16px rgba(23,26,22,.04);
}
.discover-switcher button {
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font: 650 .7rem var(--sans);
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  transition: all .18s ease;
}
.discover-switcher button.active {
  background: var(--charcoal);
  color: var(--paper-light);
  box-shadow: 0 2px 8px rgba(23,26,22,.14);
}
.eco-section { scroll-margin-top: 80px; margin-bottom: 56px; }
.eco-section-title { font: 560 clamp(1.8rem, 3.2vw, 3rem)/1 var(--serif); letter-spacing: -.035em; color: var(--charcoal); }
.eco-section-sub { max-width: 580px; margin-top: 9px; line-height: 1.5; color: var(--ink-soft); }
.eco-search { min-height: 48px; margin: 18px 0; border-color: var(--product-line-strong); border-radius: 999px; background: rgba(251,249,244,.72); }
.eco-people-list,
.eco-nearby-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.eco-alive-card,
.affinity-card,
.discover-card { min-height: 112px; padding: 16px; border: 1px solid var(--product-line); border-radius: var(--product-radius); background: rgba(251,249,244,.72); }
.affinity-card { align-items: flex-start; }
.affinity-avatar { width: 46px; height: 46px; }
.affinity-name { font: 600 .93rem var(--serif); }
.affinity-reason { margin-top: 6px; font-size: .68rem; line-height: 1.5; }
.affinity-actions { margin-top: 10px; }
.discovery-project-grid,
.discovery-opportunity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.discovery-entity-card { min-height: 220px; display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--product-line); border-radius: var(--product-radius-lg); background: var(--paper-light); cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.discovery-entity-card:hover { transform: translateY(-2px); box-shadow: var(--product-shadow-soft); }
.discovery-entity-card:nth-child(3n+2) { background: var(--moss-soft); }
.discovery-entity-card:nth-child(3n+3) { background: var(--sun-soft); }
.discovery-entity-card h3 { margin: 12px 0 0; font: 560 1.35rem/1.05 var(--serif); color: var(--charcoal); }
.discovery-entity-card p { margin: 9px 0 0; color: var(--ink-soft); font-size: .7rem; line-height: 1.5; }
.discovery-entity-meta { margin-top: auto; padding-top: 18px; color: var(--muted); font-size: .6rem; }
.discovery-why { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(23,26,22,.16); color: var(--cobalt); font-size: .65rem; line-height: 1.45; }

.eco-live-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--product-line);
  border-radius: var(--product-radius);
  background: var(--paper-light);
  cursor: pointer;
  transition: transform .18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .18s cubic-bezier(0.16, 1, 0.3, 1);
}
.eco-live-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--product-shadow-soft);
  border-color: var(--product-line-strong);
}
.eco-live-thumb {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--charcoal);
  color: var(--sun);
  display: grid;
  place-items: center;
  font-size: .9rem;
  flex-shrink: 0;
}
.eco-live-body { flex: 1; min-width: 0; }
.eco-live-title { font: 560 .95rem/1.3 var(--serif); color: var(--charcoal); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eco-live-sub { font: 500 .68rem var(--sans); color: var(--muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Operating Layer — institutional & collaborative business layer */
#viewOperations {
  width: 100%;
  max-width: none;
  background: var(--paper);
  overflow-y: auto;
}
/* ==========================================================================
   N0W OPERATIONS / INTERNAL OPERATING LAYER — INSTITUTIONAL DESIGN SYSTEM
   ========================================================================== */

.operations-shell {
  width: 100%;
  max-width: var(--product-content);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) var(--product-gutter) 140px;
}

.operations-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--product-line-strong);
}

.operations-header-main {
  flex: 1;
  min-width: 0;
}

.operations-badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.operations-kicker {
  display: inline-block;
  color: var(--clay);
  font: 750 .62rem/1.2 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.operations-surface-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--clay-soft);
  color: var(--clay);
  border: 1px solid rgba(196,83,54,.25);
  font: 750 .54rem var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.operations-header h2 {
  margin: 0;
  font: 540 clamp(2rem, 4.5vw, 3.4rem)/1.02 var(--serif);
  letter-spacing: -.04em;
  color: var(--charcoal);
}

.operations-header p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: clamp(.84rem, 1.1vw, .94rem);
  max-width: 680px;
  line-height: 1.5;
}

/* Context Bar */
.operations-context-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-radius: var(--product-radius);
  background: var(--paper-light);
  border: 1px solid var(--product-line-strong);
  box-shadow: var(--product-shadow-soft);
  margin-bottom: 18px;
}

.operations-context-field {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.operations-context-field label {
  font: 750 .64rem var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.operations-select-wrapper {
  position: relative;
  flex: 1;
  max-width: 520px;
  display: flex;
  align-items: center;
}

.operations-context-select {
  width: 100%;
  min-height: 42px;
  padding: 0 38px 0 16px;
  border-radius: 999px;
  border: 1px solid var(--product-line-strong);
  background: var(--paper-warm);
  font: 600 .82rem var(--sans);
  color: var(--charcoal);
  cursor: pointer;
  appearance: none;
  transition: var(--transition);
}

.operations-context-select:focus {
  outline: none;
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(53,77,155,.14);
}

.operations-select-icon {
  position: absolute;
  right: 14px;
  pointer-events: none;
  color: var(--charcoal-soft);
}

.operations-context-status-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.operations-status-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.operations-status-col .operations-status-label {
  font: 700 .56rem var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.operations-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font: 750 .58rem var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--paper-warm);
  color: var(--charcoal-soft);
  border: 1px solid var(--product-line);
}

.operations-tag.is-institutional {
  background: var(--cobalt-soft);
  color: var(--cobalt);
  border-color: rgba(53, 77, 155, .25);
}

.operations-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font: 750 .56rem var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--paper-warm);
  color: var(--muted);
  border: 1px solid var(--product-line);
}

.operations-status-pill.is-active {
  background: var(--moss-soft);
  color: #1a4228;
  border-color: rgba(49, 85, 64, .3);
}

.operations-status-pill.no-grant {
  background: var(--clay-soft);
  color: #7b2915;
  border-color: rgba(196, 83, 54, .25);
}

.operations-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font: 750 .58rem var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--paper-deep);
  color: var(--charcoal);
  border: 1px solid var(--product-line-strong);
}

.operations-role-badge[data-surface="internal"] {
  background: var(--clay-soft);
  color: #7b2915;
  border-color: rgba(196,83,54,.3);
}

/* Capabilities Bar */
.operations-capabilities-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: var(--paper-warm);
  border: 1px solid var(--product-line);
  border-radius: var(--product-radius);
  margin-bottom: 18px;
  overflow-x: auto;
}

.cap-bar-label {
  font: 750 .58rem var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.operations-capabilities-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.capability-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--paper-light);
  border: 1px solid var(--product-line-strong);
  color: var(--charcoal);
  font: 600 .62rem var(--sans);
  white-space: nowrap;
}

.capability-pill svg {
  color: var(--moss);
}

/* No Access Guidance Stage */
.operations-no-access-stage {
  margin-bottom: 32px;
}

.no-access-card {
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--product-radius-lg);
  background: var(--paper-light);
  border: 1px solid var(--product-line-strong);
  box-shadow: var(--product-shadow);
  text-align: center;
  max-width: 740px;
  margin: 0 auto;
}

.no-access-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--clay-soft);
  border: 1px solid rgba(196, 83, 54, .3);
  color: var(--clay);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}

.no-access-kicker {
  display: inline-block;
  font: 750 .62rem var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 6px;
}

.no-access-card h3 {
  margin: 0 0 12px;
  font: 560 clamp(1.5rem, 2.5vw, 2rem)/1.1 var(--serif);
  color: var(--charcoal);
}

.no-access-lead {
  margin: 0 0 24px;
  font-size: .88rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.no-access-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  text-align: left;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: var(--product-radius);
  background: var(--paper-warm);
  border: 1px solid var(--product-line);
}

.no-access-detail-item strong {
  display: block;
  font: 700 .72rem var(--sans);
  color: var(--charcoal);
  margin-bottom: 4px;
}

.no-access-detail-item p {
  margin: 0;
  font-size: .72rem;
  line-height: 1.45;
  color: var(--muted);
}

.no-access-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* Authority Banner */
.operations-authority-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 18px;
  border-radius: var(--product-radius-sm);
  background: rgba(241, 217, 207, .35);
  border: 1px solid rgba(196, 83, 54, .25);
  margin-bottom: 24px;
  font-size: .78rem;
  line-height: 1.45;
  color: var(--charcoal);
}

.operations-authority-banner .banner-icon {
  color: var(--clay);
  flex-shrink: 0;
  margin-top: 1px;
}

.operations-authority-banner.is-error {
  background: rgba(196, 83, 54, .12);
  border-color: var(--clay);
  color: #8c2710;
}

/* Grid Layout */
.operations-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: flex-start;
}

/* Sidebar */
.operations-projects-sidebar {
  border-radius: var(--product-radius-lg);
  background: var(--paper-light);
  border: 1px solid var(--product-line);
  box-shadow: var(--product-shadow-soft);
  padding: 20px;
  min-height: 480px;
}

.operations-sidebar-head {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--product-line);
  margin-bottom: 14px;
}

.operations-sidebar-title-row h3 {
  margin: 0;
  font: 600 .86rem var(--sans);
  color: var(--charcoal);
}

.operations-sidebar-kicker {
  font: 700 .58rem var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.operations-project-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.operations-project-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 14px;
  border-radius: var(--product-radius);
  background: var(--paper-warm);
  border: 1px solid var(--product-line);
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.operations-project-card:hover {
  background: var(--paper-light);
  border-color: var(--product-line-strong);
  transform: translateY(-1px);
}

.operations-project-card.is-selected {
  background: var(--paper-light);
  border-color: var(--charcoal);
  box-shadow: 0 4px 14px rgba(23,26,22,.08);
}

.operations-project-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.operations-phase-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font: 750 .52rem var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--paper-deep);
  color: var(--charcoal);
  border: 1px solid var(--product-line);
}

.operations-phase-tag[data-phase="SCALE"] {
  background: var(--moss-soft);
  color: #1a4228;
  border-color: rgba(49,85,64,.3);
}

.operations-role-tag {
  font: 700 .58rem var(--sans);
  color: var(--muted);
  text-transform: uppercase;
}

.operations-project-title {
  font: 600 .86rem/1.25 var(--sans);
  color: var(--charcoal);
}

.operations-project-desc {
  margin: 0;
  font-size: .72rem;
  line-height: 1.35;
  color: var(--muted);
}

.operations-sidebar-empty {
  padding: 24px 14px;
  text-align: center;
  border: 1px dashed var(--product-line-strong);
  border-radius: var(--product-radius);
  color: var(--muted);
  font-size: .78rem;
}

/* Invitations in Sidebar */
.operations-invitation-card {
  padding: 14px;
  border-radius: var(--product-radius);
  background: rgba(221, 177, 77, .12);
  border: 1px solid rgba(221, 177, 77, .4);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.operations-invitation-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.invitation-badge {
  font: 750 .54rem var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #835c0a;
}

.invitation-role {
  font-size: .68rem;
  color: var(--charcoal-soft);
}

.operations-invitation-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}

.operations-invitation-actions button {
  width: 100%;
  min-height: 34px;
  padding: 0 12px;
  font-size: .72rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* Project Detail Panel */
.operations-project-panel {
  border-radius: var(--product-radius-lg);
  background: var(--paper-light);
  border: 1px solid var(--product-line);
  box-shadow: var(--product-shadow);
  padding: clamp(20px, 3.5vw, 36px);
  min-height: 480px;
}

.operations-empty-selection {
  padding: 60px 20px;
  text-align: center;
  max-width: 440px;
  margin: 0 auto;
}

.operations-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--paper-warm);
  border: 1px solid var(--product-line);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  color: var(--muted);
}

.operations-empty-selection h4 {
  margin: 0 0 8px;
  font: 560 1.25rem var(--serif);
  color: var(--charcoal);
}

.operations-empty-selection p {
  margin: 0;
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.5;
}

.operations-loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 20px;
  color: var(--muted);
  font-size: .84rem;
}

.spinner-sm {
  width: 18px;
  height: 18px;
  border: 2px solid var(--product-line-strong);
  border-top-color: var(--charcoal);
  border-radius: 50%;
  animation: spin .6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Project Head */
.operations-project-head {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--product-line);
  margin-bottom: 24px;
}

.operations-kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.operations-project-name {
  margin: 0;
  font: 540 clamp(1.6rem, 3.2vw, 2.4rem)/1.08 var(--serif);
  letter-spacing: -.035em;
  color: var(--charcoal);
  overflow-wrap: break-word;
  word-break: break-word;
}

.operations-project-description {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: .86rem;
  line-height: 1.55;
  max-width: 720px;
}

/* 7-Phase Stepper */
.operations-stepper {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin: 20px 0 24px;
  padding: 14px;
  border-radius: var(--product-radius);
  background: var(--paper-warm);
  border: 1px solid var(--product-line);
}

.operations-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 8px 4px;
  border-radius: var(--product-radius-sm);
  transition: var(--transition);
}

.operations-step .step-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--paper-deep);
  border: 1px solid var(--product-line-strong);
  display: grid;
  place-items: center;
  font: 750 .58rem var(--sans);
  color: var(--charcoal-soft);
}

.operations-step .step-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.operations-step .step-code {
  font: 750 .58rem var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.operations-step .step-name {
  font-size: .52rem;
  color: var(--muted);
}

.operations-step.is-complete .step-dot {
  background: var(--moss);
  border-color: var(--moss);
  color: var(--paper-light);
}

.operations-step.is-complete .step-code {
  color: var(--charcoal);
}

.operations-step.is-active {
  background: rgba(251, 249, 244, .95);
  box-shadow: 0 2px 8px rgba(23,26,22,.06);
  border: 1px solid var(--product-line-strong);
}

.operations-step.is-active .step-dot {
  background: var(--clay);
  border-color: var(--clay);
  color: var(--paper-light);
}

.operations-step.is-active .step-code {
  color: var(--clay);
  font-weight: 800;
}

.step-connector { display: none; }

/* Transition Box */
.operations-transition-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--product-radius);
  background: var(--paper-warm);
  border: 1px solid var(--product-line-strong);
  margin-bottom: 24px;
}

.operations-transition-box .transition-kicker {
  display: block;
  font: 750 .58rem var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 2px;
}

.operations-transition-box strong {
  display: block;
  font: 600 .9rem var(--sans);
  color: var(--charcoal);
}

.operations-transition-box p {
  margin: 2px 0 0;
  font-size: .74rem;
  color: var(--muted);
}

.operations-transition-box.is-scaled {
  background: var(--moss-soft);
  border-color: rgba(49,85,64,.3);
}

.status-badge-scale {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--moss);
  color: var(--paper-light);
  font: 750 .68rem var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Metrics Grid */
.operations-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.operations-metric-card {
  padding: 16px 14px;
  border-radius: var(--product-radius);
  background: var(--paper-warm);
  border: 1px solid var(--product-line);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.operations-metric-card .metric-label {
  font: 750 .58rem var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.operations-metric-card .metric-val {
  font: 540 clamp(1.6rem, 2.5vw, 2.2rem)/1 var(--serif);
  color: var(--charcoal);
}

.operations-metric-card .metric-val small {
  font-size: .95rem;
  color: var(--muted);
}

.operations-metric-card .metric-sub {
  font-size: .64rem;
  color: var(--muted);
}

.metric-contract {
  font-size: .72rem;
  color: var(--muted);
  margin: 0 0 24px;
  line-height: 1.4;
}

/* HumanLens Evaluation Card */
.operations-humanlens-card {
  padding: 18px 20px;
  border-radius: var(--product-radius);
  background: rgba(220, 225, 242, .4);
  border: 1px solid rgba(53, 77, 155, .2);
  margin-bottom: 28px;
}

.hl-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.hl-badge-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hl-badge-group strong {
  font: 600 .82rem var(--sans);
  color: var(--cobalt);
}

.hl-status-pill {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(53, 77, 155, .14);
  color: var(--cobalt);
  font: 750 .54rem var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hl-explanation {
  margin: 0 0 10px;
  font-size: .78rem;
  line-height: 1.45;
  color: var(--charcoal-soft);
}

.hl-metrics-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 8px;
  border-top: 1px solid rgba(53, 77, 155, .15);
  font-size: .74rem;
  color: var(--charcoal-soft);
}

/* Section Headings inside Panel */
.operations-section-head {
  margin-bottom: 14px;
}

.operations-section-head h4 {
  margin: 0;
  font: 560 1.05rem var(--serif);
  color: var(--charcoal);
}

.operations-section-head p {
  margin: 3px 0 0;
  font-size: .74rem;
  color: var(--muted);
}

/* Record Form */
.operations-form-section {
  padding: 20px;
  border-radius: var(--product-radius);
  background: var(--paper-warm);
  border: 1px solid var(--product-line);
  margin-bottom: 24px;
}

.operations-record-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row-grid {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-field label {
  font: 700 .62rem var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
}

.form-actions-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

.form-hint {
  font-size: .68rem;
  color: var(--muted);
  line-height: 1.35;
}

/* Invite Section */
.operations-invite-section {
  padding: 18px 20px;
  border-radius: var(--product-radius);
  background: var(--paper-warm);
  border: 1px solid var(--product-line);
  margin-bottom: 24px;
}

.operations-invite-form .form-row-grid {
  grid-template-columns: minmax(0, 1fr) 140px 140px;
  align-items: flex-end;
}

/* Timeline of Records */
.operations-records-section {
  margin-top: 28px;
}

.operations-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-item {
  padding: 14px 16px;
  border-radius: var(--product-radius);
  background: var(--paper-warm);
  border: 1px solid var(--product-line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.timeline-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.timeline-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font: 750 .52rem var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(53, 77, 155, .1);
  color: var(--cobalt);
}

.timeline-badge[data-type="evidence"] {
  background: rgba(196, 83, 54, .12);
  color: var(--clay);
}

.timeline-badge[data-type="indicator"],
.timeline-badge[data-type="outcome"] {
  background: rgba(49, 85, 64, .12);
  color: var(--moss);
}

.timeline-badge[data-type="case"] {
  background: rgba(221, 177, 77, .16);
  color: #835c0a;
}

.timeline-time {
  font-size: .64rem;
  color: var(--muted);
}

.timeline-title {
  font: 600 .86rem var(--sans);
  color: var(--charcoal);
}

.timeline-desc {
  margin: 0;
  font-size: .76rem;
  line-height: 1.45;
  color: var(--charcoal-soft);
}

.timeline-artifact {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .7rem;
  color: var(--cobalt);
  word-break: break-all;
}

.timeline-measure {
  font-size: .74rem;
  color: var(--charcoal);
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(251, 249, 244, .7);
  display: inline-block;
}

.timeline-empty {
  padding: 28px;
  text-align: center;
  border: 1px dashed var(--product-line-strong);
  border-radius: var(--product-radius);
  color: var(--muted);
  font-size: .78rem;
}

/* Operations Navigation Tabs */
.operations-nav-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--product-line);
  padding-bottom: 12px;
}

.operations-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--paper-warm);
  border: 1px solid var(--product-line);
  color: var(--charcoal-soft);
  font: 600 .78rem var(--sans);
  cursor: pointer;
  transition: var(--transition);
}

.operations-nav-tab:hover {
  background: var(--paper-light);
  color: var(--charcoal);
  border-color: var(--product-line-strong);
}

.operations-nav-tab.active {
  background: var(--charcoal);
  color: var(--paper-light);
  border-color: var(--charcoal);
}

.operations-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--clay-soft);
  color: var(--clay);
  font: 750 .58rem var(--sans);
}

.operations-nav-tab.active .operations-tab-badge {
  background: rgba(255,255,255,.2);
  color: var(--paper-light);
}

/* Members Section */
.operations-members-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.operations-members-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 22px;
  border-radius: var(--product-radius);
  background: var(--paper-light);
  border: 1px solid var(--product-line-strong);
  box-shadow: var(--product-shadow-soft);
}

.operations-members-header-copy h3 {
  margin: 0;
  font: 560 1.25rem var(--serif);
  color: var(--charcoal);
}

.operations-members-header-copy p {
  margin: 4px 0 0;
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Add Member Panel */
.operations-add-member-panel {
  padding: 20px;
  border-radius: var(--product-radius);
  background: var(--paper-warm);
  border: 1px solid var(--product-line-strong);
  box-shadow: var(--product-shadow-soft);
  animation: fadeInDown .2s ease-out;
}

.operations-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--product-line);
}

.operations-panel-head h4 {
  margin: 0;
  font: 560 1.05rem var(--serif);
  color: var(--charcoal);
}

.operations-add-member-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.operations-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 0;
}

.operations-form-group label {
  font: 700 .62rem var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.operations-form-row {
  display: flex;
  gap: 14px;
}

.operations-role-preview {
  padding: 12px 14px;
  border-radius: var(--product-radius-sm);
  background: var(--paper-light);
  border: 1px solid var(--product-line);
}

.preview-title {
  display: block;
  font: 700 .62rem var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 8px;
}

.operations-capabilities-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.capability-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(53,77,155,.08);
  border: 1px solid rgba(53,77,155,.18);
  color: var(--cobalt);
  font: 550 .65rem var(--sans);
}

.capability-tag svg {
  flex-shrink: 0;
}

.operations-panel-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

/* Members List */
.operations-members-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.operations-member-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--product-radius);
  background: var(--paper-light);
  border: 1px solid var(--product-line);
  box-shadow: var(--product-shadow-soft);
  transition: var(--transition);
}

.operations-member-card:hover {
  border-color: var(--product-line-strong);
}

.operations-member-card.is-revoked {
  background: var(--paper-deep);
  border-style: dashed;
  opacity: .75;
}

.member-card-main-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.member-identity-group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.member-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--paper-deep);
  border: 1px solid var(--product-line-strong);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 750 .9rem var(--sans);
  color: var(--charcoal);
}

.member-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.member-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.member-name {
  font: 600 .94rem var(--sans);
  color: var(--charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-handle {
  font-size: .76rem;
  color: var(--muted);
}

.member-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  color: var(--muted);
  margin-top: 2px;
}

.member-badges-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.member-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font: 750 .6rem var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--clay-soft);
  color: #7b2915;
  border: 1px solid rgba(196,83,54,.3);
}

.member-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font: 700 .56rem var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.member-status-pill.active {
  background: var(--moss-soft);
  color: var(--moss);
  border: 1px solid rgba(49,85,64,.25);
}

.member-status-pill.invited {
  background: rgba(220,165,30,.15);
  color: #92680a;
  border: 1px solid rgba(220,165,30,.35);
}

.member-status-pill.revoked {
  background: rgba(196,83,54,.15);
  color: var(--clay);
  border: 1px solid rgba(196,83,54,.3);
}

.member-role-explanation {
  padding: 8px 12px;
  border-radius: var(--product-radius-sm);
  background: var(--paper-warm);
  border-left: 3px solid var(--clay);
}

.member-role-explanation p {
  margin: 0;
  font-size: .74rem;
  line-height: 1.45;
  color: var(--charcoal-soft);
}

.role-desc-callout {
  padding: 8px 12px;
  border-radius: var(--product-radius-sm);
  background: var(--paper-warm);
  border-left: 3px solid var(--moss);
  margin-bottom: 8px;
  font-size: .74rem;
  color: var(--charcoal);
  line-height: 1.4;
}

/* Capabilities list on card */
.member-capabilities-detail {
  padding: 10px 14px;
  border-radius: var(--product-radius-sm);
  background: var(--paper-warm);
  border: 1px solid var(--product-line);
}

.member-capabilities-title {
  display: block;
  font: 700 .58rem var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.member-capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 4px 12px;
}

.capability-check-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  color: var(--charcoal-soft);
}

.capability-check-item svg {
  color: var(--moss);
  flex-shrink: 0;
}

/* Actions Row */
.member-actions-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--product-line);
}

.member-role-change-select {
  min-height: 32px;
  padding: 0 28px 0 10px;
  border-radius: 999px;
  border: 1px solid var(--product-line-strong);
  background: var(--paper-light);
  font: 600 .74rem var(--sans);
  color: var(--charcoal);
  cursor: pointer;
}

/* Governance Console Enhancements */
.operations-kicker-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.operations-perm-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font: 700 0.58rem var(--mono);
  background: rgba(49,85,64,0.12);
  color: var(--moss);
  border: 1px solid rgba(49,85,64,0.25);
}

.operations-filters-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--product-radius);
  background: var(--paper-warm);
  border: 1px solid var(--product-line-strong);
  flex-wrap: wrap;
}

.filter-search-group {
  position: relative;
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
}

.filter-search-icon {
  position: absolute;
  left: 12px;
  color: var(--muted);
  pointer-events: none;
}

.filter-search-input {
  width: 100%;
  padding-left: 34px !important;
  font-size: 0.8rem;
  background: var(--paper-light);
}

.filter-controls-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-select-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-select-group label {
  font: 700 0.62rem var(--sans);
  text-transform: uppercase;
  color: var(--muted);
}

.filter-select {
  padding: 4px 10px;
  font-size: 0.76rem;
  border-radius: var(--product-radius-sm);
  background: var(--paper-light);
  border: 1px solid var(--product-line-strong);
}

.filter-count-badge {
  padding: 4px 8px;
  border-radius: 999px;
  font: 650 0.68rem var(--sans);
  background: var(--paper-deep);
  color: var(--charcoal-soft);
  border: 1px solid var(--product-line);
}

/* Modals & Drawers */
.operations-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18,22,28,0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.15s ease-out;
}

.operations-modal-card {
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: var(--paper-light);
  border: 1px solid var(--product-line-strong);
  border-radius: var(--product-radius);
  box-shadow: 0 16px 40px rgba(0,0,0,0.24);
  overflow: hidden;
}

.operations-modal-sm { max-width: 440px; }
.operations-modal-lg { max-width: 720px; }

.operations-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--product-line);
}

.operations-modal-head h4 {
  margin: 0;
  font: 600 1.15rem var(--serif);
  color: var(--charcoal);
}

.modal-sub {
  margin: 2px 0 0;
  font-size: 0.76rem;
  color: var(--muted);
}

.operations-modal-body {
  padding: 18px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.operations-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 20px;
  background: var(--paper-warm);
  border-top: 1px solid var(--product-line);
}

/* Permissions Inspector Card */
.perms-inspector-card {
  padding: 14px 16px;
  border-radius: var(--product-radius-sm);
  background: var(--paper-warm);
  border: 1px solid var(--product-line-strong);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inspector-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--product-line);
}

.inspector-member-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.inspector-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}

.inspector-section-label {
  display: block;
  font: 700 0.6rem var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.perms-inspector-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.perms-inspector-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--product-radius-sm);
  background: var(--paper-light);
  border: 1px solid var(--product-line);
}

.perms-inspector-item.is-allowed svg { color: var(--moss); }
.perms-inspector-item.is-denied { opacity: 0.55; }
.perms-inspector-item.is-denied svg { color: var(--clay); }

.perms-inspector-item strong {
  display: block;
  font: 600 0.78rem var(--sans);
  color: var(--charcoal);
}

.perms-inspector-item span {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 1px;
}

/* Role Transition Box */
.role-transition-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px;
  background: var(--paper-warm);
  border-radius: var(--product-radius-sm);
  border: 1px solid var(--product-line);
  margin: 10px 0;
}

.role-badge-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font: 700 0.65rem var(--sans);
  background: var(--paper-deep);
  color: var(--charcoal);
  border: 1px solid var(--product-line-strong);
}

.role-badge-pill.is-new {
  background: var(--moss-soft);
  color: var(--moss);
  border-color: rgba(49,85,64,0.3);
}

.modal-warning {
  font-size: 0.74rem;
  color: var(--clay);
  line-height: 1.4;
  margin: 0;
}

.modal-danger-note {
  font-size: 0.74rem;
  color: var(--charcoal-soft);
  background: rgba(196,83,54,0.08);
  border-left: 3px solid var(--danger);
  padding: 8px 12px;
  border-radius: var(--product-radius-sm);
  margin: 0;
}

/* Audit List */
.operations-audit-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.audit-event-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  border-radius: var(--product-radius-sm);
  background: var(--paper-light);
  border: 1px solid var(--product-line);
}

.audit-event-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.audit-event-type {
  font: 700 0.65rem var(--mono);
  color: var(--cobalt);
  background: rgba(53,77,155,0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

.audit-event-meta {
  font-size: 0.72rem;
  color: var(--muted);
}

.audit-event-detail {
  font-size: 0.76rem;
  color: var(--charcoal-soft);
  line-height: 1.4;
}

/* Footer Matrix */
/* Depth Architecture */
.operations-depth-architecture {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--product-line-strong);
}

.depth-arch-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.depth-arch-kicker {
  display: block;
  font: 750 .62rem var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 4px;
}

.depth-arch-title-group h3 {
  margin: 0;
  font: 560 clamp(1.2rem, 2vw, 1.6rem)/1.1 var(--serif);
  color: var(--charcoal);
}

.depth-arch-desc {
  max-width: 520px;
  margin: 0;
  font-size: .76rem;
  line-height: 1.5;
  color: var(--muted);
}

.depth-layers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.depth-layer-card {
  padding: 18px;
  border-radius: var(--product-radius);
  background: var(--paper-light);
  border: 1px solid var(--product-line);
  box-shadow: var(--product-shadow-soft);
  transition: var(--transition);
}

.depth-layer-card:hover {
  transform: translateY(-2px);
  border-color: var(--product-line-strong);
}

.depth-layer-card.is-current {
  background: rgba(241, 217, 207, .28);
  border-color: rgba(196, 83, 54, .35);
}

.depth-layer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.depth-layer-num {
  font: 800 .72rem var(--sans);
  color: var(--muted);
}

.depth-layer-tag {
  padding: 2px 7px;
  border-radius: 999px;
  font: 750 .54rem var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--paper-warm);
  border: 1px solid var(--product-line);
  color: var(--charcoal-soft);
}

.depth-layer-card.is-current .depth-layer-tag {
  background: var(--clay-soft);
  color: #7b2915;
  border-color: rgba(196, 83, 54, .3);
}

.depth-layer-card h4 {
  margin: 0 0 6px;
  font: 600 .86rem var(--sans);
  color: var(--charcoal);
}

.depth-layer-card p {
  margin: 0;
  font-size: .72rem;
  line-height: 1.45;
  color: var(--muted);
}

/* Responsive adjustments for Operations */
@media (max-width: 899px) {
  .operations-shell {
    padding: 18px 14px 140px;
  }
  .operations-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .operations-context-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .operations-context-field {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .operations-select-wrapper {
    max-width: none;
    width: 100%;
  }
  .operations-context-status-group {
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .operations-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .operations-projects-sidebar {
    min-height: auto;
    padding: 16px;
  }
  .operations-project-panel {
    padding: 18px 16px;
  }
  .operations-stepper {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 10px;
    -webkit-overflow-scrolling: touch;
  }
  .operations-step {
    min-width: 80px;
    flex-shrink: 0;
  }
  .operations-transition-box {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .operations-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-row-grid,
  .operations-invite-form .form-row-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .form-actions-row {
    flex-direction: column;
    align-items: stretch;
  }
  .no-access-details {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .depth-arch-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .depth-layers-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .operations-members-header {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px 16px;
  }
  .operations-members-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }
  .operations-members-header-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
  .operations-filters-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }
  .filter-controls-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .filter-select-group {
    justify-content: space-between;
    width: 100%;
  }
  .filter-select {
    flex: 1;
  }
  .member-card-main-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .member-actions-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .member-actions-row .member-role-change-select,
  .member-actions-row .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Inputs, overlays, states and motion */
.btn { min-height: 42px; padding-inline: 18px; border-radius: 999px; }
.btn-primary { background: var(--charcoal); color: var(--paper-light); }
.btn-primary:hover { background: var(--moss); }
.btn-secondary { background: rgba(251,249,244,.72); border-color: var(--product-line-strong); }
.form-input,
.form-textarea,
.form-select { border-color: var(--product-line-strong); background: rgba(251,249,244,.8); }
.form-input:focus,
.form-textarea:focus { border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(53,77,155,.13); }
.overlay { background: rgba(23,26,22,.46); backdrop-filter: blur(14px); }
.overlay-card { border-color: rgba(255,255,255,.3); border-radius: var(--product-radius-lg); background: var(--paper-light); }
.empty-state,
.eco-empty,
.dash-activity-empty,
.profile-loading { padding: 28px; border: 1px dashed var(--product-line-strong); border-radius: var(--product-radius); background: rgba(251,249,244,.4); color: var(--muted); }
.loading { color: var(--muted); }

.onboarding-overlay { background: var(--paper); }
.onb-container { max-width: 820px; }
.onb-title { font: 540 clamp(2.5rem, 7vw, 5.4rem)/.95 var(--serif); letter-spacing: -.055em; }
.onb-sub { max-width: 560px; font-size: .88rem; line-height: 1.6; }
.onb-panel { border-color: var(--product-line); border-radius: var(--product-radius); background: rgba(251,249,244,.7); }

@keyframes productRise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.view.active .product-view-header,
.view.active .product-panel,
.view.active .project-card,
.view.active .eco-section {
  animation: productRise .48s cubic-bezier(.2,.75,.2,1) both;
}

/* Mobile is composed, not compressed. */
@media (max-width: 899px) {
  .topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    min-height: 56px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .brand-wordmark-top { width: 62px; margin-left: 36px; }
  .sidebar-toggle {
    position: absolute;
    left: 10px;
    top: 10px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(251,249,244,.85);
    border: 1px solid var(--product-line);
    z-index: 45;
  }
  .product-top-context { display: none; }
  .mode-toggle-classic { display: none; }

  .bottomnav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    transform: none;
    min-height: calc(64px + env(safe-area-inset-bottom));
    padding: 6px 2px max(6px, env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid var(--product-line-strong);
    border-radius: 18px 18px 0 0;
    background: rgba(251,249,244,.96);
    backdrop-filter: blur(20px);
    box-shadow: 0 -12px 30px rgba(23,26,22,.07);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 50;
  }

  .nav-item {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    height: 48px;
    gap: 2px;
    padding: 3px 1px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .bottomnav .nav-item .nav-mark { width: 26px; height: 26px; font-size: .52rem; }
  .nav-label { font-size: .48rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .product-view-header { display: block; padding-top: 34px; }
  .product-view-header h1 { font-size: clamp(2.4rem, 12vw, 4rem); }
  .dash-product-header .dash-datetime { margin-top: 18px; max-width: none; text-align: left; }
  .dash-command-grid,
  .dash-discovery-grid,
  .dash-lower-grid { grid-template-columns: 1fr; }
  .dash-garden-panel { min-height: 330px; }
  .dash-vitals { grid-template-columns: repeat(4, minmax(116px, 1fr)); overflow-x: auto; }
  .dash-vitals .dash-stat { min-height: 120px; border-right: 1px solid rgba(23,26,22,.13); border-bottom: 0; }
  .dash-vitals .dash-stat-num { font-size: 2rem; }

  .globe-main { margin-right: 0; }
  .globe-toolbar { top: 12px; left: 12px; right: 12px; }
  .globe-toolbar-tools { max-width: 62%; flex-direction: column; align-items: stretch; }
  .globe-title-block { padding: 9px 11px; }
  .globe-title-block small { display: none; }
  .globe-search { width: 100%; max-width: none; }
  .globe-world-switch { width: 100%; min-width: 0; }
  .globe-layer-control { left: 12px; bottom: calc(238px + env(safe-area-inset-bottom)); width: calc(100% - 24px); }
  .globe-observatory {
    inset: auto 0 0;
    width: 100%;
    height: 226px;
    border-top: 1px solid rgba(255,255,255,.12);
    border-left: 0;
    border-radius: 20px 20px 0 0;
  }
  .globe-observatory-head { display: none; }
  .globe-stats { grid-template-columns: repeat(6, minmax(82px, 1fr)); overflow-x: auto; }
  .globe-stats span { min-height: 88px; border-right: 1px solid rgba(255,255,255,.1); }
  .globe-stats strong { font-size: 1.35rem; }
  .globe-context-panel { padding: 14px 16px 22px; }

  .profile-product-hero { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; padding-top: 94px; }
  .profile-avatar { width: 88px; height: 88px; border-width: 4px; border-radius: 22px; }
  .profile-avatar img,
  .profile-avatar span { border-radius: 18px !important; font-size: 2.4rem !important; }
  .profile-name { font-size: clamp(2rem, 9vw, 3rem); }
  .profile-bio { grid-column: 1 / -1; font-size: .84rem; }
  .profile-actions { grid-column: 1 / -1; flex-wrap: wrap; }
  .profile-actions .btn { flex: 1 1 auto; min-height: 42px; text-align: center; }
  .profile-possibility-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-inline: 0;
    padding-inline: 0;
  }
  .profile-map-card,
  .profile-map-card.profile-capabilities,
  .profile-map-card.profile-purpose,
  .profile-map-card.profile-lens {
    width: 100%;
    min-width: 0;
    grid-column: auto;
    padding: 20px;
  }
  .lens-orbit {
    width: 125px;
    height: 125px;
    flex: 0 0 125px;
  }
  .lens-orbit-core {
    width: 56px;
    height: 56px;
  }
  .lens-dim-btn {
    min-height: 38px;
    padding: 0 12px;
  }
  .profile-stats-row { grid-template-columns: repeat(4, minmax(112px, 1fr)); overflow-x: auto; }
  .profile-stat { min-width: 112px; }
  .profile-tab-bar { margin-inline: calc(var(--product-gutter) * -1); padding-inline: var(--product-gutter); border-inline: 0; border-radius: 0; }
  .profile-project-list { grid-template-columns: 1fr; }

  .space-hero { padding-inline: 18px; }
  .space-context-grid { grid-template-columns: repeat(4, minmax(150px, 1fr)); margin-inline: 0; border-inline: 0; border-radius: 0; overflow-x: auto; }
  .space-studio { margin-inline: 12px; }

  .projects-header { display: block; }
  .projects-actions { margin-top: 20px; }
  .projects-actions .search-input { width: 100%; }
  .project-grid { display: flex; flex-direction: column; }
  .project-card,
  .project-card:nth-child(5n+1),
  .project-card:nth-child(5n+4) { grid-column: auto; min-height: 300px; }

  .discover-switcher {
    width: 100%;
    max-width: 100vw;
    margin-inline: calc(var(--product-gutter) * -1);
    padding: 8px var(--product-gutter);
    border-radius: 0;
    border-inline: 0;
    border-block: 1px solid var(--product-line);
    background: rgba(243,239,230,.96);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    display: flex;
    overflow-x: auto;
    gap: 8px;
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
  }
  .discover-switcher::after {
    content: '';
    flex: 0 0 24px;
  }
  .discover-switcher::-webkit-scrollbar { display: none; }
  .discover-switcher button {
    scroll-snap-align: start;
    flex: 0 0 auto;
    padding: 0 16px;
  }
  .eco-people-list,
  .eco-nearby-list,
  .discovery-project-grid,
  .discovery-opportunity-grid { grid-template-columns: 1fr; }
  .affinity-card { min-height: 0; }
  .affinity-actions .btn { width: 100%; }

  .create-trio {
    right: 16px;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    flex-direction: row;
    gap: 8px;
    z-index: 45;
  }
  .create-trio-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
  .hl-bubble {
    right: 16px;
    bottom: calc(130px + env(safe-area-inset-bottom, 0px));
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    z-index: 45;
  }
}

@media (max-width: 560px) {
  .product-panel-head { padding: 18px; }
  .dash-garden-panel #dashGarden { padding: 22px 18px; }
  .dash-panel-body { padding-inline: 8px; }
  .dash-next-step { padding: 22px; }
  .product-link-button { min-height: 40px; padding-inline: 13px; }
  .profile-product-hero { display: block; padding-top: 106px; }
  .profile-head { margin-top: 16px; }
  .profile-cover { height: 150px; }
  .profile-avatar { width: 96px; height: 96px; }
  .profile-bio { font-size: .82rem; }
  .profile-actions { flex-wrap: nowrap; justify-content: flex-start; }
  .profile-actions .btn { flex: 0 0 auto; }
  .globe-layer-button { padding-inline: 7px; font-size: .56rem; }
}

@media (prefers-reduced-motion: reduce) {
  .globe-live-dot { animation: none; }
  .view.active .product-view-header,
  .view.active .product-panel,
  .view.active .project-card,
  .view.active .eco-section { animation: none; }
}

/* App Version Indicators (Mobile Drawer, Profile, Account) */
.sidebar-version-block {
  margin-top: auto;
  padding: 14px 16px;
  border-top: 1px solid var(--product-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--paper-warm);
}

.sidebar-version-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .74rem;
  color: var(--ink-soft);
}

.sidebar-version-info .version-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--moss);
  flex-shrink: 0;
}

.sidebar-update-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--paper-light);
  border: 1px solid var(--product-line-strong);
  font: 600 .68rem var(--sans);
  color: var(--charcoal);
  cursor: pointer;
  transition: var(--transition);
}

.sidebar-update-btn:hover {
  background: var(--charcoal);
  color: var(--paper-light);
}

.profile-version-card {
  margin-top: 24px;
  padding: 14px 18px;
  border-radius: var(--product-radius);
  background: var(--paper-light);
  border: 1px solid var(--product-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.profile-version-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-version-left .version-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 0 3px rgba(49,85,64,.15);
  flex-shrink: 0;
}

.profile-version-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-version-text strong {
  font: 600 .78rem var(--sans);
  color: var(--charcoal);
}

.profile-version-text small {
  font-size: .68rem;
  color: var(--muted);
}

.account-version-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .72rem;
  color: var(--muted);
}

/* ═════════════════════════════════════════════════════════════════════════════
   INTERCONNECTED PRODUCT ECOSYSTEM ENTITIES
   ═════════════════════════════════════════════════════════════════════════════ */
.actuality-project-link {
  margin: 8px 0 4px;
}

.actuality-project-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(49, 85, 64, .08);
  border: 1px solid rgba(49, 85, 64, .2);
  border-radius: 999px;
  color: var(--moss);
  font: 600 .74rem var(--sans);
  cursor: pointer;
  transition: all .18s ease;
  text-decoration: none;
}

.actuality-project-badge:hover {
  background: var(--moss);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(49, 85, 64, .25);
}

.project-spatial-anchor {
  background: rgba(244, 240, 230, .6);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 10px 0;
  border: 1px solid rgba(49, 85, 64, .12);
}

.profile-geo-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--charcoal);
  border-radius: 6px;
  transition: color .15s ease;
}

.profile-geo-btn:hover {
  color: var(--moss);
  text-decoration: underline;
}

.space-globe-btn {
  background: rgba(49, 85, 64, .1);
  color: var(--moss);
  border: 1px solid rgba(49, 85, 64, .2);
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s ease;
}

.space-globe-btn:hover {
  background: var(--moss);
  color: #fff;
}

/* ==========================================================================
   N0W Product Reconstruction — Globe Context & Vital Ecosystem Styles
   ========================================================================== */

.globe-context-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-top: 14px;
  box-shadow: var(--shadow-soft);
  max-height: 440px;
  overflow-y: auto;
}

.globe-ctx-drawer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.globe-ctx-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.globe-ctx-kicker {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--moss);
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

.globe-ctx-head h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.globe-ctx-coords {
  font-size: .72rem;
  color: var(--muted);
  font-family: var(--mono, monospace);
}

.globe-ctx-toolbar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.globe-ctx-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-soft);
  padding: 3px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
}

.globe-ctx-tab {
  flex: 1;
  min-width: 72px;
  text-align: center;
  padding: 5px 8px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
}

.globe-ctx-tab.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}

.globe-ctx-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.globe-ctx-empty {
  padding: 18px 12px;
  text-align: center;
  font-size: .8rem;
  color: var(--muted);
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
}

.globe-ctx-card {
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform .15s ease, border-color .15s ease;
}

.globe-ctx-card:hover {
  transform: translateY(-1px);
  border-color: var(--moss);
}

.globe-ctx-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.globe-ctx-card-head strong {
  font-size: .84rem;
  color: var(--ink);
}

.globe-ctx-card-sub {
  font-size: .72rem;
  color: var(--muted);
  margin: 0;
}

.globe-ctx-card-text {
  font-size: .78rem;
  color: var(--ink-soft);
  margin: 4px 0 0;
  line-height: 1.35;
}

.globe-ctx-card-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

/* Vital Project Progression Pipeline */
.project-vital-pipeline {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin: 14px 0 10px;
  background: var(--bg-soft);
  padding: 8px 6px;
  border-radius: var(--radius-sm);
}

.project-vital-pipeline .stage-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  opacity: .45;
  transition: all .2s ease;
}

.project-vital-pipeline .stage-item.passed {
  opacity: .85;
}

.project-vital-pipeline .stage-item.active {
  opacity: 1;
  font-weight: 700;
}

.project-vital-pipeline .stage-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--line);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  font-weight: 700;
}

.project-vital-pipeline .stage-item.passed .stage-dot {
  background: var(--moss-soft);
  color: var(--moss);
}

.project-vital-pipeline .stage-item.active .stage-dot {
  background: var(--moss);
  color: #fff;
  box-shadow: 0 0 0 3px var(--moss-soft);
}

.project-vital-pipeline .stage-label {
  font-size: .6rem;
  text-align: center;
  line-height: 1.1;
  color: var(--ink);
}

.project-detail-breadcrumb {
  margin-bottom: 12px;
}

/* Globe Context Back */
.globe-ctx-back {
  color: var(--charcoal-muted);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.globe-ctx-back:hover {
  background: rgba(0,0,0,0.04);
  color: var(--charcoal);
}

/* Space Dual Tabs & Directory */
.space-view-tabs {
  background: var(--paper-warm);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.space-mode-tab {
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 16px;
  color: var(--charcoal-muted);
  transition: all 0.15s ease;
}
.space-mode-tab.active {
  background: var(--charcoal);
  color: #fff;
}
.space-card-rich {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.space-card-rich:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

/* Publish Modal Refinement */
.share-inbox-section {
  display: flex;
  flex-direction: column;
}
.share-inbox-card textarea:focus {
  outline: none;
  border-color: var(--moss);
  box-shadow: 0 0 0 2px var(--moss-soft);
}



