/* Private Org Explorer — Dooner Designs
   Matches homepage-v2 tokens. Not linked from public nav. */

.org-page {
  --org-gold-soft: rgba(196, 165, 116, 0.16);
  --org-gold-line: rgba(196, 165, 116, 0.45);
  --org-danger-soft: rgba(196, 120, 100, 0.18);
}

.org-page .site-header .nav-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  margin-left: auto;
  padding: 0;
}

.org-page .site-header .nav-list a {
  color: var(--ivory);
  text-decoration: none;
  font-size: 0.9rem;
}

.org-page .site-header .nav-list a:hover {
  color: var(--gold);
}

.org-lock {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--org-gold-line);
  background: var(--org-gold-soft);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.org-hero {
  padding: 2.25rem 0 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.org-hero h1 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
}

.org-hero .section-lede {
  margin-bottom: 1rem;
  max-width: 40rem;
}

.org-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin: 0 0 1.25rem;
}

.org-search {
  flex: 1 1 16rem;
  min-width: 12rem;
  max-width: 28rem;
  position: relative;
}

.org-search input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.org-search input::placeholder {
  color: rgba(183, 196, 184, 0.55);
}

.org-search .search-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  pointer-events: none;
  font-size: 0.9rem;
}

.org-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--sage);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage);
  background: rgba(243, 236, 224, 0.03);
}

.badge-private {
  border-color: var(--org-gold-line);
  color: var(--gold);
  background: var(--org-gold-soft);
}

.badge-demo {
  border-color: rgba(183, 196, 184, 0.4);
  color: var(--ivory);
}

.badge-exec {
  border-color: var(--gold);
  color: var(--base);
  background: var(--gold);
  font-weight: 600;
}

.badge-doer {
  color: var(--sage);
}

.badge-notify {
  border-color: rgba(183, 196, 184, 0.5);
}

.org-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
  margin: 0 0 1.35rem;
  font-size: 0.9rem;
}

.org-crumb a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.org-crumb a:hover {
  color: var(--ivory);
  border-bottom-color: var(--ivory);
}

.org-crumb [aria-current="page"] {
  color: var(--ivory);
  font-weight: 500;
}

.org-crumb .sep {
  color: rgba(183, 196, 184, 0.45);
  user-select: none;
}

/* Exec band — spacious, gold, prominent */
.exec-band {
  margin: 0 0 2rem;
  padding: 1.35rem 1.35rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--org-gold-line);
  background:
    linear-gradient(135deg, rgba(196, 165, 116, 0.14), rgba(26, 36, 28, 0.9) 42%, var(--surface));
  box-shadow: 0 0 0 1px rgba(196, 165, 116, 0.08);
}

.exec-band .band-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  margin-bottom: 1rem;
}

.exec-band h2 {
  margin: 0;
  color: var(--gold);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
}

.exec-band .band-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--sage);
  max-width: 28rem;
}

.exec-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .exec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .exec-grid {
    grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  }
}

.exec-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(196, 165, 116, 0.35);
  background: rgba(11, 20, 15, 0.45);
  color: inherit;
  text-decoration: none;
  min-height: 5.5rem;
  min-width: max-content;
  overflow: visible;
  box-sizing: border-box;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.15s var(--ease);
}

.exec-card:hover,
.exec-card:focus-visible {
  border-color: var(--gold);
  background: rgba(196, 165, 116, 0.12);
  color: inherit;
  transform: translateY(-1px);
}

.exec-card .name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ivory);
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  display: block;
  width: max-content;
  max-width: none;
}

.exec-card .role {
  font-size: 0.82rem;
  color: var(--gold);
  line-height: 1.35;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Sections — denser doer branches */
.section-list {
  display: grid;
  gap: 0.75rem;
}

.section-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem 1rem;
  align-items: center;
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.section-card:hover,
.section-card:focus-visible {
  border-color: rgba(196, 165, 116, 0.55);
  background: rgba(26, 36, 28, 0.95);
  color: inherit;
}

.section-card .sec-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ivory);
  margin: 0 0 0.2rem;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: block;
}

.section-card .sec-meta {
  font-size: 0.82rem;
  color: var(--sage);
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.section-card .sec-count {
  font-size: 0.8rem;
  color: var(--gold);
  white-space: nowrap;
}

/* Drill panels */
.panel {
  margin-bottom: 1.75rem;
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.panel-head h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
}

.panel-sub {
  margin: 0 0 1rem;
  color: var(--sage);
  font-size: 0.95rem;
  max-width: 42rem;
}

.owner-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--org-gold-line);
  background: var(--org-gold-soft);
  color: var(--gold);
  font-size: 0.8rem;
}

.member-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .member-grid.cols-2 {
    /* Wider columns so full bot names fit on one line (no ellipsis) */
    grid-template-columns: repeat(2, minmax(14rem, 1fr));
  }
}

@media (min-width: 900px) {
  .member-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(13rem, 1fr));
  }
}

.bot-tile,
.room-tile,
.job-tile,
.routine-tile {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.bot-tile {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), transform 0.15s var(--ease);
  min-height: 7.5rem;
  /* Extend tile so full bot name fits; do not ellipsis the name */
  min-width: 13rem;
  flex-basis: 13rem;
}

.bot-tile:hover,
.bot-tile:focus-visible {
  border-color: rgba(196, 165, 116, 0.55);
  color: inherit;
  transform: translateY(-1px);
}

.bot-tile .tile-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  justify-content: space-between;
}

.bot-tile h3 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ivory);
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  display: block;
  max-width: none;
}

.bot-tile .job {
  margin: 0;
  font-size: 0.88rem;
  color: var(--sage);
  flex: 1;
  min-width: 0;
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.room-tile h3 {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: block;
}

.job-tile h3,
.routine-tile h3 {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.room-tile p,
.job-tile p,
.routine-tile p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--sage);
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.job-tile {
  border-color: rgba(196, 165, 116, 0.28);
}

.job-tile .job-bots {
  margin-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.job-tile .job-bots a {
  font-size: 0.78rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--ivory);
}

.job-tile .job-bots a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.routine-tile.is-off {
  opacity: 0.72;
}

.routine-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

/* Bot detail */
.bot-detail {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 860px) {
  .bot-detail {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: start;
  }
}

.detail-card {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.detail-card h2 {
  /* Full bot name — no ellipsis on seat/bot names */
  max-width: none;
  overflow: visible;
  white-space: nowrap;
  text-overflow: clip;
}
.panel-head h2 {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.detail-card .title-line,
.owner-chip {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.detail-hero > div {
  min-width: 0;
  max-width: 100%;
}

.tile-identity h3 {
  /* Full bot/member name — widen parent tile instead of truncating */
  min-width: max-content;
  max-width: none;
  overflow: visible;
  white-space: nowrap;
  text-overflow: clip;
}

.job-tile .job-bots a {
  min-width: 0;
  max-width: 100%;
}

.job-tile .job-bots a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.sec-title-row > div {
  min-width: 0;
  overflow: hidden;
}

.sec-blurb,
.sec-blurb-line {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.detail-card.execish {
  border-color: var(--org-gold-line);
  background: linear-gradient(160deg, rgba(196, 165, 116, 0.12), var(--surface) 55%);
}

.detail-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.detail-card .title-line {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-size: 0.95rem;
}

.bot-description {
  margin: 0.95rem 0 0;
  min-width: 0;
}
.bot-description-label {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
}
.bot-description-body {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ivory);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}
.bot-description-empty {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--sage);
  font-style: italic;
}

.flag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
}

.empty-state {
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border);
  color: var(--sage);
  font-size: 0.92rem;
  background: rgba(26, 36, 28, 0.4);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.org-footer-note {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: rgba(183, 196, 184, 0.85);
}

.hidden {
  display: none !important;
}

.is-dim {
  opacity: 0.35;
  pointer-events: none;
}

@media (max-width: 639px) {
  .org-hero {
    padding-top: 1.5rem;
  }
  .exec-band {
    padding: 1.1rem;
  }
}


/* Private / Discovery view toggle */
.org-mode-toggle {
  display: inline-flex;
  gap: 0;
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
}
.org-mode-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted, #9a9488);
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
}
.org-mode-btn:hover {
  color: var(--cream, #f3efe6);
}
.org-mode-btn.is-active,
.org-mode-btn[aria-pressed="true"] {
  background: rgba(201, 162, 39, 0.18);
  color: var(--gold, #c9a227);
}

/* ——— Avatars ——— */
.avatar-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(196, 165, 116, 0.35);
  background: rgba(11, 20, 15, 0.55);
  box-sizing: border-box;
}
.avatar-chip.has-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-chip.is-geom {
  border-color: rgba(196, 165, 116, 0.25);
  background: rgba(26, 36, 28, 0.85);
}
.avatar-chip .avatar-geom {
  display: block;
}
.avatar-exec {
  box-shadow: 0 0 0 2px rgba(196, 165, 116, 0.35);
}
.avatar-detail {
  box-shadow: 0 0 0 2px rgba(196, 165, 116, 0.4);
}

.exec-card {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  min-height: 6.25rem;
  min-width: max-content;
  overflow: visible;
}
.exec-card .exec-text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1 1 auto;
  min-width: max-content;
  overflow: visible;
}

.sec-title-row {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}
.sec-main {
  min-width: 0;
}
.sec-blurb,
.sec-blurb-line {
  margin: 0.45rem 0 0;
  font-size: 0.84rem;
  color: var(--sage);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.section-card {
  align-items: start;
}
.owner-chip .avatar-chip {
  margin-right: 0.15rem;
}

.tile-identity {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: max-content;
  flex: 1 1 auto;
}
.tile-identity h3 {
  margin: 0;
}

.detail-hero {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

/* ——— Circular layout ——— */
.circ-panel {
  margin-bottom: 2rem;
}
.circ-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  color: var(--sage);
}
.circ-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.circ-legend-item i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 1px rgba(243, 236, 224, 0.15);
}
.circ-stage {
  position: relative;
  margin: 0.5rem auto 1rem;
  max-width: 100%;
  min-height: 780px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(196, 165, 116, 0.28);
  background:
    radial-gradient(circle at 50% 50%, rgba(196, 165, 116, 0.07), transparent 58%),
    var(--surface);
  overflow: hidden;
}
.circ-guides {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.circ-guides .circ-wedge {
  pointer-events: fill;
  cursor: pointer;
}
.circ-wedge {
  transition: fill-opacity 0.15s var(--ease), stroke-opacity 0.15s var(--ease), opacity 0.15s var(--ease);
}
.circ-wedge.is-active {
  fill-opacity: 0.16;
  stroke-opacity: 0.55;
}
.circ-spoke {
  transition: stroke-opacity 0.15s var(--ease), opacity 0.15s var(--ease);
}
.circ-hub-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(196, 165, 116, 0.55);
  pointer-events: none;
  z-index: 1;
}
.circ-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  text-decoration: none;
  color: inherit;
  z-index: 2;
  max-width: 5.8rem;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
  transition: transform 0.15s var(--ease), opacity 0.15s var(--ease), filter 0.15s var(--ease);
}
.circ-node:hover,
.circ-node:focus-visible {
  transform: translate(-50%, -50%) scale(1.07);
  z-index: 4;
  color: inherit;
}
.circ-branch .avatar-chip,
.circ-bot .avatar-chip {
  border-color: color-mix(in srgb, var(--branch-color, #c4a574) 70%, transparent);
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--branch-color, #c4a574) 45%, transparent);
}
.circ-node.is-active .avatar-chip {
  box-shadow: 0 0 0 2px var(--branch-color, var(--gold));
}
.circ-label {
  font-size: 0.64rem;
  text-align: center;
  color: var(--ivory);
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  max-width: none;
  width: max-content;
  display: block;
  overflow: visible;
  white-space: nowrap;
  text-overflow: clip;
}
.circ-count {
  font-size: 0.58rem;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  opacity: 0.9;
}
.circ-exec .circ-label {
  color: var(--gold);
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.6rem;
}
.circ-branch .circ-label {
  font-size: 0.66rem;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.circ-node.circ-bot {
  /* Full bot name on one line — widen node instead of ellipsis */
  max-width: 9.5rem;
  min-width: 5.5rem;
  overflow: visible;
}
.circ-bot .circ-label {
  font-size: 0.6rem;
  max-width: none;
  overflow: visible;
  white-space: nowrap;
  text-overflow: clip;
}

/* Hover / filter: highlight parent sector both ways */
.circ-stage.is-filtering .circ-node:not(.circ-exec):not(.is-hl) {
  opacity: 0.22;
  filter: grayscale(0.35);
}
.circ-stage.is-filtering .circ-node.is-hl {
  opacity: 1;
  z-index: 5;
  filter: none;
}
.circ-stage.is-filtering .circ-spoke:not(.is-hl) {
  opacity: 0.12;
}
.circ-stage.is-filtering .circ-spoke.is-hl {
  opacity: 1;
  stroke-opacity: 0.95 !important;
  stroke-width: 2.25;
}
.circ-stage.is-filtering .circ-wedge:not(.is-hl) {
  opacity: 0.2;
}
.circ-stage.is-filtering .circ-wedge.is-hl {
  opacity: 1;
  fill-opacity: 0.2;
  stroke-opacity: 0.7;
}

.circ-node.is-focus-dim,
.circ-spoke.is-focus-dim,
.circ-wedge.is-focus-dim {
  opacity: 0.28;
}

.circ-tooltip {
  position: absolute;
  z-index: 6;
  max-width: 16rem;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(196, 165, 116, 0.4);
  background: rgba(11, 20, 15, 0.94);
  color: var(--ivory);
  font-size: 0.78rem;
  line-height: 1.35;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.circ-mobile-note {
  display: none;
  font-size: 0.85rem;
  color: var(--sage);
  margin: 0 0 0.75rem;
}

@media (max-width: 719px) {
  .circ-stage,
  .circ-legend {
    display: none;
  }
  .circ-mobile-note {
    display: block;
  }
}

@media (min-width: 720px) {
  .circ-mobile-note {
    display: none;
  }
}

@media (min-width: 720px) and (max-width: 899px) {
  .circ-stage {
    transform: scale(0.88);
    transform-origin: top center;
    margin-bottom: -4rem;
  }
}


/* Overflow safety — every labeled box on /org stays inside its border */
.exec-band,
.exec-grid,
.section-list,
.member-grid,
.panel,
.bot-detail {
  min-width: 0;
}

.exec-grid > *,
.section-list > * {
  min-width: 0;
}

/* Bot/member tiles keep enough width for full single-line names */
.member-grid > .bot-tile {
  min-width: 13rem;
}
.member-grid > .job-tile,
.member-grid > .routine-tile,
.member-grid > .room-tile:not(.bot-tile) {
  min-width: 0;
}


/* ——— Connections (bot detail) ——— */
.connections-block {
  margin-top: 1.15rem;
}
.connections-block > h3 {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}
.connections-empty {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(163, 177, 168, 0.72);
}
.connections-groups {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.connections-group-label {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.connections-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.connection-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  max-width: 100%;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(11, 20, 15, 0.45);
  font-size: 0.82rem;
  color: var(--ivory);
  min-width: 0;
}
.connection-chip.is-connector {
  border-color: rgba(196, 165, 116, 0.4);
}
.connection-chip.is-site {
  border-color: rgba(107, 140, 174, 0.45);
}
.connection-chip .conn-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 14rem;
}
.connection-chip .conn-note {
  color: var(--sage);
  font-size: 0.75rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 12rem;
}
