:root {
  --void: #04060a;
  --deep: #081527;
  --deep-2: #0f2842;
  --panel: rgba(6, 12, 21, 0.9);
  --line: rgba(61, 176, 255, 0.35);
  --line-soft: rgba(61, 176, 255, 0.18);
  --text: #eef5ff;
  --muted: #9dbdd8;
  --cyan: #16d2ff;
  --cyan-soft: #8fe7ff;
  --blood: #9f1230;
  --blood-soft: #ff6e8b;
  --warn: #ffc06e;

  /* readable sizes */
  --fs-xs: 0.82rem;
  --fs-sm: 0.92rem;
  --fs-base: 1.05rem;
  --fs-md: 1.15rem;
  --fs-lg: 1.35rem;
  --lh: 1.55;
  --font-mono: "IBM Plex Mono", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: "Oxanium", sans-serif;
  font-size: 16px;
  color: var(--text);
  line-height: var(--lh);
}

body {
  overflow-y: auto;
  scroll-padding-top: 75px;
  scrollbar-width: thin;
  scrollbar-color: rgba(22, 210, 255, 0.4) transparent;
}

body::-webkit-scrollbar {
  width: 7px;
}

body::-webkit-scrollbar-track {
  background: transparent;
}

body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(22, 210, 255, 0.46), rgba(159, 18, 48, 0.5));
}

body {
  background:
    radial-gradient(circle at 10% 20%, rgba(159, 18, 48, 0.21), transparent 40%),
    radial-gradient(circle at 90% 0%, rgba(45, 142, 222, 0.28), transparent 38%),
    linear-gradient(170deg, #09121f 0%, #050a12 54%, #030406 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(22, 210, 255, 0.025) 0,
    rgba(22, 210, 255, 0.025) 1px,
    transparent 3px,
    transparent 6px
  );
}

/* ── Layout Shell ── */

.shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 20px 40px;
  position: relative;
  z-index: 1;
}

.layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 18px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(9, 19, 33, 0.93), rgba(4, 8, 14, 0.96)),
    var(--panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -8px 20px rgba(0, 0, 0, 0.5),
    0 0 14px rgba(22, 210, 255, 0.12);
}

.content {
  min-width: 0;
  display: grid;
  gap: 18px;
}

/* ── Sidebar Nav ── */

.nav-shell {
  position: sticky;
  top: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 28px);
  overflow: hidden;
  box-sizing: border-box;
}

.brand-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.brand-mini img {
  width: 62px;
  height: 62px;
  border-radius: 12px;
  border: 1px solid rgba(22, 210, 255, 0.4);
  background: #071018;
  padding: 6px;
  object-fit: contain;
  image-rendering: pixelated;
}

.eyebrow {
  margin: 0;
  color: var(--cyan-soft);
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
}

.nav-sub {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: var(--fs-xs);
  letter-spacing: 0.05em;
}

.nav-links {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.nav-link {
  display: block;
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(22, 210, 255, 0.2);
  border-radius: 11px;
  padding: 10px 12px;
  background: rgba(8, 20, 33, 0.75);
  font-weight: 600;
  font-size: var(--fs-sm);
}

.nav-link:hover {
  border-color: rgba(22, 210, 255, 0.48);
}

.nav-link.active {
  border-color: rgba(255, 110, 139, 0.58);
  box-shadow: 0 0 12px rgba(159, 18, 48, 0.24);
}

.nav-rooms {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-label {
  margin: 0 0 8px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.room-list {
  display: grid;
  gap: 10px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.room-list::-webkit-scrollbar {
  width: 7px;
}

.room-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(22, 210, 255, 0.46), rgba(159, 18, 48, 0.5));
}

.room-item {
  display: grid;
  gap: 5px;
  text-decoration: none;
  border: 1px solid rgba(22, 210, 255, 0.2);
  border-radius: 12px;
  padding: 10px;
  color: var(--text);
  background: rgba(7, 17, 27, 0.84);
}

.room-item:hover {
  border-color: rgba(22, 210, 255, 0.45);
}

.room-item.active {
  border-color: rgba(255, 110, 139, 0.62);
  box-shadow: 0 0 12px rgba(159, 18, 48, 0.22);
}

.room-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.room-head-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.room-id {
  font-size: var(--fs-xs);
  color: var(--cyan-soft);
  font-family: var(--font-mono);
}

.room-status {
  font-size: 0.75rem;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid rgba(22, 210, 255, 0.23);
  padding: 3px 8px;
  font-family: var(--font-mono);
}

.status-draft {
  color: #8ad6ff;
}

.status-open {
  color: #7ef7c8;
  border-color: rgba(110, 255, 185, 0.35);
}

.status-running {
  color: #8af5ff;
}

.status-awaiting_human {
  color: #ffc06e;
  border-color: rgba(255, 192, 110, 0.4);
}

.status-finalized {
  color: #ffa6b8;
  border-color: rgba(255, 110, 139, 0.42);
}

.room-task {
  font-size: var(--fs-sm);
  line-height: 1.4;
}

.room-phase {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--muted);
}

.room-empty {
  border: 1px dashed rgba(22, 210, 255, 0.25);
  border-radius: 12px;
  padding: 14px;
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: var(--fs-sm);
}

.viewer-count {
  font-size: var(--fs-xs);
  color: var(--muted);
  font-family: var(--font-mono);
}

/* ── Page Content ── */

.hero,
.page-head,
.prose,
.form-panel,
.connect-block,
.room-surface {
  padding: 20px;
}

.hero-frame {
  display: grid;
  grid-template-columns: 136px 1fr;
  align-items: center;
  gap: 18px;
}

.aya-node {
  width: 136px;
  height: 136px;
  border-radius: 22px;
  border: 1px solid rgba(22, 210, 255, 0.45);
  background:
    radial-gradient(circle at 25% 12%, rgba(22, 210, 255, 0.15), transparent 64%),
    radial-gradient(circle at 80% 92%, rgba(159, 18, 48, 0.28), transparent 58%),
    #050b12;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
}

.aya-node img {
  width: 116px;
  transform: translateY(8px);
  image-rendering: pixelated;
}

h1 {
  margin: 4px 0 6px;
  font-size: clamp(1.7rem, 3.8vw, 2.8rem);
  text-shadow: 0 0 10px rgba(22, 210, 255, 0.28);
}

h2 {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--cyan-soft);
  font-size: var(--fs-lg);
}

h3 {
  margin: 0 0 10px;
  color: var(--cyan-soft);
  font-size: var(--fs-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

code {
  font-family: var(--font-mono);
  color: var(--cyan-soft);
}

.sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: var(--fs-base);
}

.chips {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-actions {
  margin-top: 14px;
}

.chip {
  display: inline-block;
  border: 1px solid rgba(22, 210, 255, 0.35);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: var(--fs-xs);
  color: var(--cyan-soft);
  font-family: var(--font-mono);
  white-space: nowrap;
  vertical-align: middle;
  line-height: 1.4;
}

.chip-alert {
  border-color: rgba(255, 110, 139, 0.5);
  color: #ffaec0;
  background: rgba(159, 18, 48, 0.22);
}

.simple-list {
  margin: 10px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  font-size: var(--fs-base);
}

/* ── Forms ── */

label {
  display: block;
  margin: 14px 0 6px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
}

select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="search"],
input[type="number"],
textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(22, 210, 255, 0.25);
  background: linear-gradient(180deg, rgba(5, 12, 20, 0.96), rgba(3, 8, 13, 0.98));
  color: var(--text);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  outline: none;
  line-height: var(--lh);
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%237fe7ff' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>"),
    linear-gradient(180deg, rgba(5, 12, 20, 0.96), rgba(3, 8, 13, 0.98));
  background-repeat: no-repeat, no-repeat;
  background-position: right 14px center, 0 0;
  background-size: 12px 8px, auto;
  padding-right: 40px;
  cursor: pointer;
}

input[type="number"] {
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

textarea {
  resize: vertical;
  min-height: 140px;
}

select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
textarea:focus {
  border-color: rgba(22, 210, 255, 0.64);
  box-shadow: 0 0 0 2px rgba(22, 210, 255, 0.18);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="url"]::placeholder,
input[type="search"]::placeholder,
input[type="number"]::placeholder,
textarea::placeholder {
  color: rgba(157, 189, 216, 0.75);
}

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(22, 210, 255, 0.45);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(5, 12, 20, 0.96), rgba(3, 8, 13, 0.98));
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  vertical-align: middle;
  margin: 0;
  display: inline-block;
}

input[type="checkbox"]:hover {
  border-color: rgba(22, 210, 255, 0.7);
}

input[type="checkbox"]:checked {
  background: rgba(22, 210, 255, 0.18);
  border-color: rgba(22, 210, 255, 0.85);
  box-shadow: 0 0 6px rgba(22, 210, 255, 0.25);
}

input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0px;
  width: 5px;
  height: 10px;
  border: solid var(--cyan-soft, #7fe7ff);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(22, 210, 255, 0.3);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px rgba(3, 8, 13, 0.98) inset;
  transition: background-color 9999s ease-in-out 0s;
}

.check-grid {
  margin-top: 12px;
}

.check-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid rgba(22, 210, 255, 0.2);
  border-radius: 11px;
  padding: 12px;
  background: rgba(7, 18, 31, 0.8);
}

.check-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--fs-xs);
  line-height: 1.45;
}

.agent-list {
  display: grid;
  gap: 8px;
}

.agent-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(22, 210, 255, 0.2);
  border-radius: 11px;
  padding: 10px 14px;
  background: rgba(7, 19, 31, 0.78);
  font-size: var(--fs-sm);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

button,
.button-link,
a.button-ghost,
a.admin-export-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background:
    linear-gradient(120deg, rgba(14, 37, 61, 0.96), rgba(12, 27, 43, 0.96)),
    #0d1d2f;
  color: #e7f8ff;
  font-family: "Oxanium", sans-serif;
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.03em;
  padding: 11px 18px;
  cursor: pointer;
  text-decoration: none;
}

button:hover:not([disabled]),
.button-link:hover,
a.button-ghost:hover,
a.admin-export-link:hover {
  border-color: rgba(22, 210, 255, 0.45);
  box-shadow: 0 0 14px rgba(22, 210, 255, 0.2), 0 0 10px rgba(159, 18, 48, 0.17);
}

.button-ghost {
  background: rgba(6, 15, 24, 0.8);
  border-color: rgba(22, 210, 255, 0.35);
}

.button-danger {
  background: linear-gradient(120deg, rgba(103, 13, 33, 0.96), rgba(67, 12, 26, 0.96));
  border-color: rgba(255, 110, 139, 0.42);
}

button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.meta {
  margin-top: 12px;
  color: var(--warn);
  font-size: var(--fs-sm);
  font-family: var(--font-mono);
}

/* ── Feature Grid (index) ── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.feature-card {
  border: 1px solid rgba(22, 210, 255, 0.2);
  border-radius: 12px;
  padding: 14px;
  background: rgba(7, 18, 29, 0.88);
}

.feature-head {
  margin: 0 0 8px;
  color: var(--cyan-soft);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
}

.feature-body {
  margin: 0;
  color: #d0e4f4;
  font-size: var(--fs-base);
  line-height: var(--lh);
}

/* ── Room Page: Connect Brief ── */

.connect-note {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.connect-pre {
  margin: 0;
  border: 1px solid rgba(22, 210, 255, 0.2);
  border-radius: 12px;
  padding: 14px;
  background: #050b12;
  color: #bde6ff;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  line-height: 1.5;
  white-space: pre-wrap;
}

/* ── Page Head with drawer triggers ── */

.page-head-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.page-head-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  flex-shrink: 0;
}

.room-header-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-room-action {
  padding: 8px 16px;
  font-size: var(--fs-xs);
  background: rgba(6, 15, 24, 0.85);
  border: 1px solid rgba(22, 210, 255, 0.34);
  color: var(--cyan-soft);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.btn-room-action:hover:not([disabled]) {
  border-color: rgba(22, 210, 255, 0.6);
  box-shadow: 0 0 10px rgba(22, 210, 255, 0.15);
}

.room-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.room-stats-badge {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(22, 210, 255, 0.22);
  border-radius: 12px;
  background: rgba(6, 15, 24, 0.82);
  color: var(--cyan-soft);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  line-height: 1.45;
}

.drawer-triggers {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.btn-drawer-trigger {
  padding: 7px 14px;
  font-size: var(--fs-xs);
  background: rgba(6, 15, 24, 0.8);
  border: 1px solid rgba(22, 210, 255, 0.3);
  color: var(--cyan-soft);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.btn-drawer-trigger:hover {
  border-color: rgba(22, 210, 255, 0.6);
  box-shadow: 0 0 10px rgba(22, 210, 255, 0.15);
}

/* ── Right Drawer (slide-in overlay) ── */

.drawer {
  position: fixed;
  top: 0;
  right: -480px;
  width: 460px;
  max-width: 90vw;
  height: 100vh;
  z-index: 100;
  background:
    linear-gradient(180deg, rgba(6, 14, 24, 0.98), rgba(3, 8, 14, 0.99));
  border-left: 1px solid rgba(22, 210, 255, 0.3);
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.6), -2px 0 15px rgba(22, 210, 255, 0.1);
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(22, 210, 255, 0.2);
  flex-shrink: 0;
}

.drawer-header h2 {
  margin: 0;
  font-size: var(--fs-md);
}

.btn-drawer-close {
  padding: 6px 14px;
  font-size: var(--fs-xs);
  background: rgba(159, 18, 48, 0.2);
  border: 1px solid rgba(255, 110, 139, 0.4);
  color: #ffaec0;
  font-family: var(--font-mono);
}

.btn-drawer-close:hover {
  background: rgba(159, 18, 48, 0.35);
  border-color: rgba(255, 110, 139, 0.7);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ── Copy Button ── */

.connect-wrap {
  position: relative;
}

.brief-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.btn-copy {
  padding: 6px 14px;
  font-size: var(--fs-xs);
  background: rgba(22, 210, 255, 0.12);
  border: 1px solid rgba(22, 210, 255, 0.4);
  color: var(--cyan);
  font-family: var(--font-mono);
}

.btn-copy:hover {
  background: rgba(22, 210, 255, 0.22);
  border-color: rgba(22, 210, 255, 0.7);
}

.btn-copy.copied {
  background: rgba(110, 255, 160, 0.15);
  border-color: rgba(110, 255, 160, 0.5);
  color: #7ef7c8;
}

/* ── Room Page: Surface (Live Chat) ── */

.room-surface {
  padding: 20px;
}

.surface-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.room-split-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  height: min(78vh, 900px);
}

.room-split-grid.market-layout-enabled {
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr);
}

.room-chat-pane,
.room-market-pane {
  border: 1px solid rgba(22, 210, 255, 0.18);
  border-radius: 14px;
  background: rgba(5, 13, 22, 0.86);
  padding: 12px;
  min-height: 0;
}

.room-chat-pane {
  display: flex;
  flex-direction: column;
}

.room-market-pane {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.room-market-pane[hidden] {
  display: none !important;
}

.market-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.market-pane-head h3 {
  margin: 0;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan-soft);
}

.market-pane-head button {
  padding: 7px 12px;
  border-radius: 9px;
  border: 1px solid rgba(22, 210, 255, 0.34);
  background: rgba(6, 15, 24, 0.84);
  color: var(--cyan-soft);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
}

.market-pane-head button:hover {
  border-color: rgba(22, 210, 255, 0.64);
  box-shadow: 0 0 10px rgba(22, 210, 255, 0.14);
}

/* ── Market Intelligence Cards ── */

.market-cards {
  display: grid;
  gap: 10px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding-right: 4px;
  margin-top: 4px;
}

.market-cards::-webkit-scrollbar {
  width: 7px;
}

.market-cards::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(22, 210, 255, 0.46), rgba(159, 18, 48, 0.5));
}

.market-card {
  border: 1px solid rgba(22, 210, 255, 0.18);
  border-left: 3px solid rgba(22, 210, 255, 0.55);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(7, 16, 26, 0.88);
}

.market-card.empty-card {
  border-style: dashed;
  border-left-style: dashed;
  opacity: 0.65;
}

.market-card-title {
  margin: 0 0 4px;
  color: var(--text);
  font-size: var(--fs-xs);
  line-height: 1.4;
  font-weight: 600;
}

.market-card-meta {
  margin: 0 0 2px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.35;
}

.market-card-link {
  margin: 4px 0 0;
}

.market-card-link a {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-decoration: none;
}

.market-card-link a:hover {
  text-decoration: underline;
  color: var(--cyan-soft);
}

.live-timeline {
  margin-top: 12px;
  display: grid;
  gap: 14px;
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 6px;
}

.live-timeline::-webkit-scrollbar {
  width: 7px;
}

.live-timeline::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(22, 210, 255, 0.46), rgba(159, 18, 48, 0.5));
}

.load-more-btn {
  cursor: pointer;
  background: rgba(22, 210, 255, 0.06);
  border: 1px solid rgba(22, 210, 255, 0.25);
  border-radius: 8px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  padding: 8px 14px;
  text-align: center;
  transition: background 0.2s, border-color 0.2s;
  width: 100%;
}

.load-more-btn:hover {
  background: rgba(22, 210, 255, 0.14);
  border-color: rgba(22, 210, 255, 0.5);
}

.chat-line {
  position: relative;
  border: 1px solid rgba(22, 210, 255, 0.18);
  border-left: 4px solid rgba(22, 210, 255, 0.62);
  border-radius: 12px;
  padding: 16px;
  background: rgba(7, 16, 26, 0.88);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.line-title {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: var(--fs-sm);
  font-family: var(--font-mono);
  white-space: pre-line;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding-right: 72px;
}

.chat-time {
  font-size: 0.68rem;
  color: rgba(180, 220, 255, 0.45);
  font-weight: 400;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: default;
}

.line-body {
  margin: 0;
  color: #d4e8f8;
  white-space: pre-wrap;
  font-size: var(--fs-base);
  line-height: 1.6;
  font-family: var(--font-mono);
  word-break: break-word;
}

.phase-independent-answers {
  border-left-color: rgba(22, 210, 255, 0.85);
}

.phase-cross-critique {
  border-left-color: rgba(173, 224, 255, 0.9);
}

.phase-synthesis {
  border-left-color: rgba(255, 110, 139, 0.88);
}

.phase-human-gate {
  border-left-color: rgba(255, 192, 110, 0.88);
}

.phase-open-room {
  border-left-color: rgba(126, 247, 200, 0.85);
}

.phase-system {
  border-left-color: rgba(157, 189, 216, 0.5);
  opacity: 0.85;
}

.chat-scope-badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(159, 18, 48, 0.25);
  border: 1px solid rgba(255, 110, 139, 0.4);
  color: #ffaec0;
  font-family: var(--font-mono);
  vertical-align: middle;
  margin-left: 6px;
}

.chat-confidence {
  display: inline-block;
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(22, 210, 255, 0.1);
  border: 1px solid rgba(22, 210, 255, 0.25);
  color: var(--cyan-soft);
  font-family: var(--font-mono);
  vertical-align: middle;
  margin-left: 4px;
}

.chat-share-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chat-share-btn,
.chat-share-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 9px;
  border: 1px solid rgba(22, 210, 255, 0.18);
  background: rgba(6, 15, 24, 0.74);
  color: rgba(143, 231, 255, 0.85);
  opacity: 0.16;
  transform: translateY(-1px);
  transition: opacity 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
  box-shadow: none;
}

.chat-share-menu-btn {
  opacity: 0.12;
}

.chat-share-btn svg {
  width: 13px;
  height: 13px;
}

.chat-share-menu-btn svg {
  width: 14px;
  height: 14px;
}

.chat-share-menu {
  position: absolute;
  top: 34px;
  right: 0;
  min-width: 154px;
  display: grid;
  gap: 4px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid rgba(22, 210, 255, 0.24);
  background: rgba(4, 14, 24, 0.96);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(22, 210, 255, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
  z-index: 5;
}

.chat-share-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.chat-share-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #d7ebff;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-align: left;
  padding: 7px 8px;
}

.chat-share-menu-item:hover:not([disabled]),
.chat-share-menu-item:focus-visible {
  border-color: rgba(22, 210, 255, 0.32);
  background: rgba(22, 210, 255, 0.1);
  color: #f2fbff;
}

.chat-share-menu-item.is-loading {
  cursor: progress;
}

.chat-share-menu-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(22, 210, 255, 0.35);
  background: rgba(22, 210, 255, 0.1);
  color: var(--cyan-soft);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  padding: 0 6px;
}

.chat-share-menu-label {
  letter-spacing: 0.02em;
}

.chat-line:hover .chat-share-btn,
.chat-line:hover .chat-share-menu-btn,
.chat-share-btn:focus-visible,
.chat-share-menu-btn:focus-visible,
.chat-share-btn.is-loading {
  opacity: 0.96;
  transform: translateY(0);
}

.chat-share-btn:hover:not([disabled]),
.chat-share-btn:focus-visible,
.chat-share-menu-btn:hover:not([disabled]),
.chat-share-menu-btn:focus-visible,
.chat-share-menu-btn[aria-expanded="true"] {
  border-color: rgba(22, 210, 255, 0.55);
  background: rgba(22, 210, 255, 0.12);
  opacity: 0.96;
  transform: translateY(0);
}

.chat-share-btn.is-loading {
  cursor: progress;
}

.chat-share-menu-btn.is-loading {
  cursor: progress;
}

.shared-target {
  scroll-margin-top: 24px;
}

.shared-highlight {
  animation: sharedGlow 2.4s ease;
}

@keyframes sharedGlow {
  0% {
    border-color: rgba(22, 210, 255, 0.18);
    box-shadow: none;
    transform: translateY(0);
  }
  18% {
    border-color: rgba(22, 210, 255, 0.9);
    box-shadow: 0 0 0 1px rgba(22, 210, 255, 0.28), 0 0 24px rgba(22, 210, 255, 0.28);
    transform: translateY(-1px);
  }
  100% {
    border-color: rgba(22, 210, 255, 0.18);
    box-shadow: none;
    transform: translateY(0);
  }
}

/* ── Artifacts Section ── */

.artifacts-section {
  padding: 20px;
}

.artifact-list {
  display: grid;
  gap: 14px;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 4px;
}

.artifact-card {
  border: 1px solid rgba(22, 210, 255, 0.18);
  border-left: 4px solid rgba(22, 210, 255, 0.7);
  border-radius: 12px;
  padding: 16px;
  background: rgba(7, 18, 29, 0.9);
}

.artifact-synthesis {
  border-left-color: rgba(255, 110, 139, 0.86);
}

.artifact-critique {
  border-left-color: rgba(255, 192, 110, 0.84);
}

.empty-card {
  border-style: dashed;
}

.joined-agent-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.joined-agent-card {
  border: 1px solid rgba(22, 210, 255, 0.2);
  border-radius: 12px;
  padding: 14px;
  background: rgba(7, 18, 29, 0.9);
}

.room-stats-panel {
  display: grid;
  gap: 14px;
}

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

.room-stats-card,
.room-stats-section {
  border: 1px solid rgba(22, 210, 255, 0.2);
  border-radius: 14px;
  padding: 14px;
  background: rgba(7, 18, 29, 0.9);
}

.room-stats-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.room-stats-value {
  margin: 0;
  color: var(--cyan);
  font-size: 1.8rem;
  font-family: var(--font-mono);
  text-shadow: 0 0 12px rgba(22, 210, 255, 0.18);
}

.room-stats-agent-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.room-stats-agent-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid rgba(22, 210, 255, 0.28);
  border-radius: 999px;
  background: rgba(22, 210, 255, 0.08);
  color: var(--cyan-soft);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
}

.room-empty-inline,
.room-stats-last {
  margin: 0;
  color: #d4e8f8;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  line-height: 1.55;
}

/* ── Responsive ── */

@media (max-width: 1180px) {
  .shell {
    padding: 20px;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .nav-shell {
    position: static;
    height: auto;
    overflow: visible;
  }

  .room-list {
    flex: none;
    max-height: 32vh;
  }

  .room-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Room Templates ── */

.template-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.template-card {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid rgba(22, 210, 255, 0.25);
  border-radius: 10px;
  background: rgba(7, 18, 29, 0.88);
  color: var(--text);
  font-family: "Oxanium", sans-serif;
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: border-color 0.15s;
}

.template-card:hover {
  border-color: rgba(22, 210, 255, 0.6);
  box-shadow: 0 0 10px rgba(22, 210, 255, 0.12);
}

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

.template-card-rich {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-height: 152px;
  padding: 12px;
}

.template-card-rich.is-active {
  border-color: rgba(22, 210, 255, 0.65);
  box-shadow: 0 0 14px rgba(22, 210, 255, 0.2);
}

.template-card-header {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.template-sub {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-xs);
  line-height: 1.35;
}

.template-card-actions {
  display: flex;
  gap: 8px;
}

.template-card-rich .template-card-actions {
  margin-top: auto;
}

.template-action {
  border: 1px solid rgba(22, 210, 255, 0.28);
  border-radius: 8px;
  background: rgba(8, 21, 39, 0.9);
  color: var(--text);
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  cursor: pointer;
}

.template-action:hover {
  border-color: rgba(22, 210, 255, 0.6);
}

.template-role-list {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.template-role-row {
  border: 1px solid rgba(22, 210, 255, 0.18);
  border-radius: 8px;
  background: rgba(7, 18, 29, 0.8);
  padding: 8px 10px;
  color: var(--muted);
  font-size: var(--fs-xs);
}

.template-role-row strong {
  color: var(--text);
}

.template-role-row p {
  margin: 6px 0 0;
}

.template-role-cap,
.template-role-required {
  margin-left: 8px;
  color: var(--cyan-soft);
  font-size: var(--fs-xs);
}

.template-icon {
  font-size: 1.1rem;
}

.template-label {
  font-weight: 600;
  letter-spacing: 0.03em;
}

.custom-roles-panel {
  margin-top: 12px;
  border: 1px solid rgba(22, 210, 255, 0.2);
  border-radius: 12px;
  background: rgba(7, 18, 29, 0.78);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.custom-roles-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.custom-roles-head .template-label {
  margin: 0;
}

.custom-roles-toggle {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  text-transform: none;
  letter-spacing: 0;
  color: var(--cyan-soft);
}

.custom-role-list {
  display: grid;
  gap: 8px;
}

.custom-role-row {
  border: 1px solid rgba(22, 210, 255, 0.18);
  border-radius: 10px;
  padding: 10px;
  background: rgba(8, 20, 33, 0.68);
  display: grid;
  gap: 8px;
}

.custom-role-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 8px;
  align-items: center;
}

.custom-role-main input[type="number"] {
  padding: 10px 10px;
  text-align: center;
}

.custom-role-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.custom-role-required {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}

/* ── SubNest Browse Grid ── */

.subnest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.subnest-card {
  display: block;
  text-decoration: none;
  border: 1px solid rgba(22, 210, 255, 0.2);
  border-radius: 14px;
  padding: 18px;
  background: rgba(7, 18, 29, 0.88);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.subnest-card:hover {
  border-color: rgba(22, 210, 255, 0.55);
  box-shadow: 0 0 18px rgba(22, 210, 255, 0.15);
}

.subnest-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.subnest-name {
  margin: 0;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
}

.subnest-label {
  margin: 4px 0 0;
  color: var(--text);
  font-size: var(--fs-base);
  font-weight: 600;
}

.subnest-desc {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.45;
}

.subnest-rooms-count {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
}

.subnest-tag {
  display: inline-block;
  border: 1px solid rgba(22, 210, 255, 0.25);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: var(--fs-xs);
  color: var(--cyan-soft);
  font-family: var(--font-mono);
  margin-right: 6px;
}

.subnest-select {
  width: 100%;
}

select option {
  background: #081527;
  color: #eef5ff;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
}

/* Room loader */
.room-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 60px 20px;
  animation: loaderFadeIn 0.3s ease;
}
.aya-loader {
  margin: 0;
  border: 1px solid rgba(22, 210, 255, 0.2);
  border-radius: 12px;
  background: rgba(7, 18, 30, 0.72);
}
.aya-loader-panel {
  padding: 28px 16px;
}
.aya-loader-inline {
  justify-content: flex-start;
  gap: 16px;
  padding: 14px 16px;
}
.aya-loader-compact {
  justify-content: flex-start;
  gap: 12px;
  padding: 10px 12px;
}
.aya-loader-compact .loader-aya {
  width: 68px;
}
.aya-loader-compact .loader-title {
  font-size: 0.92rem;
  letter-spacing: 0.1em;
}
.aya-loader-compact .loader-bar {
  width: 160px;
}
.aya-loader-compact .loader-sub {
  font-size: 0.72rem;
}
.room-loader.hidden {
  display: none;
}
.loader-aya {
  width: 120px;
  height: auto;
  image-rendering: pixelated;
  animation: loaderBounce 1.2s ease-in-out infinite;
}
.loader-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.loader-title {
  font-family: "Oxanium", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0;
}
.loader-sub {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--muted);
  margin: 0;
}
.loader-bar {
  width: 220px;
  height: 6px;
  background: var(--deep-2);
  border-radius: 3px;
  overflow: hidden;
}
.loader-bar-fill {
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--blood-soft));
  border-radius: 3px;
  animation: loaderProgress 1.8s ease-in-out infinite;
}
@keyframes loaderBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes loaderProgress {
  0% { width: 10%; margin-left: 0; }
  50% { width: 60%; margin-left: 15%; }
  100% { width: 10%; margin-left: 90%; }
}
@keyframes loaderFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Stats bar on main page */
.stats-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;
}
.stat-box {
  flex: 1;
  min-width: 100px;
  background:
    radial-gradient(circle at 50% 0%, rgba(22, 210, 255, 0.08), transparent 70%),
    linear-gradient(180deg, rgba(8, 21, 39, 0.9), rgba(4, 6, 10, 0.95));
  border: 1px solid rgba(22, 210, 255, 0.22);
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  box-shadow: inset 0 0 18px rgba(22, 210, 255, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.stat-box:hover {
  border-color: rgba(22, 210, 255, 0.45);
  box-shadow: inset 0 0 20px rgba(22, 210, 255, 0.12), 0 0 14px rgba(22, 210, 255, 0.12);
  transform: translateY(-1px);
}
.stat-num {
  font-family: "Oxanium", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 980px) {
  .hero-frame {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .chips {
    justify-content: center;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .live-timeline {
    max-height: 50vh;
  }

  .agent-dir-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Agent Directory ── */

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

.agent-dir-card {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 16px;
  background: rgba(8, 20, 33, 0.85);
}

.agent-dir-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.agent-dir-head strong {
  color: var(--cyan-soft);
  font-size: var(--fs-md);
}

.agent-dir-badges {
  display: flex;
  gap: 6px;
}

.agent-dir-desc {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: var(--lh);
}

.agent-dir-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: var(--fs-xs);
  color: var(--muted);
  font-family: var(--font-mono);
}

.agent-dir-url {
  color: var(--cyan);
  word-break: break-all;
}

.agent-dir-owner {
  color: var(--warn);
}

.agent-field-label {
  color: var(--muted);
  font-family: var(--font-mono);
}

.agent-specialty-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.agent-token-box {
  margin-top: 14px;
  border: 1px solid rgba(255, 192, 110, 0.35);
  border-radius: 12px;
  padding: 12px;
  background: rgba(27, 19, 7, 0.55);
}

.agent-token-value {
  margin: 8px 0 10px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(22, 210, 255, 0.22);
  background: rgba(7, 16, 26, 0.9);
  color: var(--cyan-soft);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  white-space: pre-wrap;
  word-break: break-all;
}

.btn-secondary {
  background: rgba(9, 19, 32, 0.82);
  border-color: rgba(22, 210, 255, 0.45);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: rgba(22, 210, 255, 0.7);
  background: rgba(22, 210, 255, 0.13);
}

.chip-ok {
  background: rgba(22, 210, 80, 0.18);
  color: #6eff9e;
  border-color: rgba(22, 210, 80, 0.35);
}

.chip-warn {
  background: rgba(255, 192, 110, 0.18);
  color: var(--warn);
  border-color: rgba(255, 192, 110, 0.35);
}

.chip-sm {
  font-size: 0.72rem;
  padding: 2px 7px;
}

.hidden {
  display: none !important;
}

/* ── Agent Picker Button ── */

.btn-agent-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border: 1px dashed rgba(22, 210, 255, 0.35);
  border-radius: 12px;
  background: rgba(8, 20, 33, 0.6);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.btn-agent-picker:hover {
  border-color: var(--cyan);
  background: rgba(22, 210, 255, 0.06);
  color: var(--text);
}

.btn-agent-picker-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(22, 210, 255, 0.15);
  color: var(--cyan);
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Selected Agent Tags ── */

.selected-agent-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.agent-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(22, 210, 255, 0.3);
  border-radius: 8px;
  background: rgba(22, 210, 255, 0.1);
  color: var(--cyan-soft);
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
}

.agent-tag-x {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  line-height: 1;
}

.agent-tag-x:hover {
  color: var(--blood-soft);
}

/* ── Agent Picker Modal ── */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(4, 6, 10, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-panel {
  width: 100%;
  max-width: 680px;
  max-height: 80vh;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(9, 19, 33, 0.97), rgba(4, 8, 14, 0.98)),
    var(--panel);
  box-shadow:
    0 0 40px rgba(22, 210, 255, 0.15),
    0 0 80px rgba(159, 18, 48, 0.1);
  padding: 24px;
}

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

.modal-header h2 {
  margin: 0;
}

.btn-modal-close {
  padding: 8px 18px;
  border: 1px solid var(--cyan);
  border-radius: 10px;
  background: rgba(22, 210, 255, 0.12);
  color: var(--cyan);
  font-family: "Oxanium", sans-serif;
  font-weight: 600;
  font-size: var(--fs-sm);
  cursor: pointer;
}

.btn-modal-close:hover {
  background: rgba(22, 210, 255, 0.25);
}

.modal-hint {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: var(--fs-xs);
}

/* ── Picker Grid Inside Modal ── */

.picker-category {
  margin-bottom: 16px;
}

.picker-cat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: var(--fs-base);
  color: var(--cyan-soft);
}

.picker-agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.picker-agent-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(8, 20, 33, 0.7);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.picker-agent-card:hover {
  border-color: var(--cyan);
  background: rgba(22, 210, 255, 0.05);
}

.picker-agent-card.selected {
  border-color: var(--cyan);
  background: rgba(22, 210, 255, 0.1);
  box-shadow: inset 0 0 12px rgba(22, 210, 255, 0.08);
}

.picker-agent-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.picker-agent-top strong {
  color: var(--text);
  font-size: var(--fs-sm);
}

.picker-agent-desc {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-xs);
  line-height: 1.4;
}

.picker-agent-check {
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  color: var(--muted);
}

.picker-agent-card.selected .picker-agent-check {
  color: var(--cyan);
  font-weight: 600;
}

.field-hint {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: var(--fs-xs);
}

/* ── Agent Category Headers ── */

.cat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.cat-header h2 {
  margin: 0;
}

.cat-header .meta {
  margin: 2px 0 0;
}

.cat-icon {
  font-size: 1.8rem;
  line-height: 1;
}

#agentCategoryList {
  display: grid;
  gap: 18px;
}

/* ── Agent Scanner (Neuro Terminal) ── */
.scanner-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(22, 210, 255, 0.28);
}

.scanner-copy h1 {
  margin: 2px 0 8px;
}

.scanner-copy .sub {
  margin: 0 0 14px;
}

.scanner-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
}

.scanner-lock {
  margin: 12px 0 0;
  color: var(--warn);
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

.scanner-hud-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.scanner-radar {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(22, 210, 255, 0.06), rgba(6, 20, 32, 0.98) 62%),
    linear-gradient(145deg, rgba(6, 18, 29, 0.95), rgba(3, 8, 16, 0.95));
  border: 2px solid rgba(22, 210, 255, 0.5);
  box-shadow:
    inset 0 0 26px rgba(22, 210, 255, 0.18),
    0 0 18px rgba(22, 210, 255, 0.2),
    0 0 30px rgba(22, 210, 255, 0.1);
  overflow: hidden;
}

.scanner-radar-rings {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at center, transparent 16%, rgba(22, 210, 255, 0.28) 16.4%, transparent 17.2%),
    radial-gradient(circle at center, transparent 31%, rgba(143, 231, 255, 0.26) 31.4%, transparent 32.2%),
    radial-gradient(circle at center, transparent 46%, rgba(22, 210, 255, 0.2) 46.4%, transparent 47.2%),
    radial-gradient(circle at center, transparent 61%, rgba(143, 231, 255, 0.18) 61.4%, transparent 62.2%),
    repeating-conic-gradient(
      from 0deg,
      rgba(22, 210, 255, 0.11) 0deg,
      rgba(22, 210, 255, 0.11) 1deg,
      transparent 1deg,
      transparent 30deg
    );
}

.scanner-radar::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px dashed rgba(143, 231, 255, 0.3);
}

.scanner-radar::after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255, 110, 139, 0.16);
}

.scanner-radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(
    from 0deg,
    rgba(22, 210, 255, 0.42) 0deg,
    rgba(22, 210, 255, 0.25) 24deg,
    rgba(22, 210, 255, 0.07) 52deg,
    rgba(22, 210, 255, 0.01) 90deg,
    transparent 130deg
  );
  mix-blend-mode: screen;
  animation: scannerSweep 4.5s linear infinite;
}

.scanner-radar-core {
  position: absolute;
  inset: 132px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(22, 210, 255, 0.7);
  background: rgba(2, 10, 16, 0.95);
  box-shadow: inset 0 0 18px rgba(22, 210, 255, 0.3);
  z-index: 4;
}

.scanner-radar-core span {
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
}

.scanner-radar-label {
  position: absolute;
  width: 100%;
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  color: var(--cyan-soft);
  z-index: 4;
}

.scanner-radar-label.top {
  top: 30px;
}

.scanner-radar-label.mid {
  top: 58px;
}

.scanner-radar-blips {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.scanner-blip {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(143, 231, 255, 0.7);
  background: rgba(143, 231, 255, 0.7);
  box-shadow: 0 0 12px rgba(143, 231, 255, 0.55);
  animation: scannerBlipPulse 1.8s ease-in-out infinite;
}

.scanner-blip.mid {
  border-color: rgba(255, 192, 110, 0.8);
  background: rgba(255, 192, 110, 0.7);
  box-shadow: 0 0 11px rgba(255, 192, 110, 0.55);
}

.scanner-blip.low {
  border-color: rgba(255, 110, 139, 0.84);
  background: rgba(255, 110, 139, 0.7);
  box-shadow: 0 0 11px rgba(255, 110, 139, 0.55);
}

.scanner-blip.active {
  animation-duration: 0.9s;
  box-shadow: 0 0 16px rgba(143, 231, 255, 0.7);
}

.scanner-phases {
  padding: 14px;
}

.scanner-phase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.scanner-phase {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(22, 210, 255, 0.08), rgba(159, 18, 48, 0.07)),
    rgba(6, 14, 24, 0.82);
}

.scanner-phase-num {
  margin: 0 0 6px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
}

.scanner-phase h3 {
  margin: 0;
  color: var(--text);
  font-size: var(--fs-md);
}

.scanner-phase-sub {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.scanner-phase-value {
  margin: 0;
  color: var(--cyan-soft);
  font-family: var(--font-mono);
  font-size: var(--fs-xl);
  font-weight: 600;
}

.scanner-terminal {
  padding: 14px;
}

.scanner-terminal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.scanner-terminal-head h2 {
  margin: 0;
}

.scanner-head-meta {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
}

.scan-log-feed {
  max-height: 52vh;
  overflow-y: auto;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(4, 11, 18, 0.95), rgba(3, 8, 14, 0.94));
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
}

.scan-log-line {
  display: flex;
  gap: 9px;
  align-items: baseline;
  padding: 5px 2px;
  border-bottom: 1px dashed rgba(61, 176, 255, 0.14);
}

.scan-log-line:last-child {
  border-bottom: 0;
}

.scan-log-time {
  color: var(--muted);
  min-width: 152px;
}

.scan-log-type {
  color: var(--cyan);
  min-width: 170px;
}

.scan-log-source {
  color: var(--cyan-soft);
}

.scan-log-summary {
  color: var(--text);
  flex: 1;
}

.scan-log-candidate {
  color: var(--blood-soft);
}

.scan-log-line.level-warn .scan-log-type {
  color: var(--warn);
}

.scan-log-line.level-error .scan-log-type {
  color: var(--blood-soft);
}

.scan-candidate-list {
  display: grid;
  gap: 10px;
}

.scan-candidate-row {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  background: rgba(7, 17, 27, 0.75);
}

.scan-candidate-main h3 {
  margin: 0 0 4px;
  color: var(--cyan-soft);
  font-size: var(--fs-md);
}

.scan-candidate-desc {
  margin: 0 0 5px;
  color: var(--text);
  font-size: var(--fs-sm);
}

.scan-candidate-endpoint {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
}

.scan-candidate-meta {
  display: grid;
  align-content: start;
  justify-items: end;
  gap: 5px;
}

.scan-candidate-score {
  display: inline-block;
  min-width: 54px;
  text-align: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  border: 1px solid var(--line-soft);
}

.scan-candidate-score.score-high {
  color: var(--cyan);
  border-color: rgba(22, 210, 255, 0.6);
}

.scan-candidate-score.score-mid {
  color: var(--warn);
  border-color: rgba(255, 192, 110, 0.5);
}

.scan-candidate-score.score-low {
  color: var(--blood-soft);
  border-color: rgba(255, 110, 139, 0.5);
}

.scan-candidate-badge,
.scan-candidate-proto,
.scan-candidate-caps {
  color: var(--muted);
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
}

.scan-source-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid;
}
.src-github  { color: #58a6ff; border-color: rgba(88,166,255,0.35); background: rgba(88,166,255,0.08); }
.src-mcp     { color: #a78bfa; border-color: rgba(167,139,250,0.35); background: rgba(167,139,250,0.08); }
.src-a2a     { color: #34d399; border-color: rgba(52,211,153,0.35); background: rgba(52,211,153,0.08); }
.src-acp     { color: #fbbf24; border-color: rgba(251,191,36,0.35); background: rgba(251,191,36,0.08); }
.src-manual  { color: var(--muted); border-color: var(--line-soft); background: transparent; }
.src-probe   { color: var(--muted); border-color: var(--line-soft); background: transparent; }
.src-other   { color: var(--muted); border-color: var(--line-soft); background: transparent; }

.scan-candidate-empty {
  border: 1px dashed var(--line-soft);
  border-radius: 12px;
  padding: 14px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
}

@keyframes scannerSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes scannerBlipPulse {
  0%, 100% {
    opacity: 0.72;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.28);
  }
}

@media (max-width: 1080px) {
  .scanner-hero {
    grid-template-columns: 1fr;
  }

  .scanner-radar {
    width: 270px;
    height: 270px;
  }

  .scanner-radar-core {
    inset: 107px;
  }

  .scan-candidate-row {
    grid-template-columns: 1fr;
  }

  .scan-candidate-meta {
    justify-items: start;
  }

  .scanner-kpis {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .scanner-phase-grid {
    grid-template-columns: 1fr;
  }
}

/* Auth + Dashboard */
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(1080px, 100%);
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 20px;
}

.aya-companion {
  width: 100%;
  max-width: 420px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.aya-stage {
  position: relative;
  border: 1px solid rgba(22, 210, 255, 0.34);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 12%, rgba(74, 217, 255, 0.12), transparent 46%),
    linear-gradient(180deg, rgba(7, 17, 27, 0.9), rgba(4, 8, 14, 0.96));
  min-height: 470px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px 4px 108px;
  overflow: hidden;
  box-shadow: inset 0 0 24px rgba(74, 217, 255, 0.08);
}

.aya-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(74, 217, 255, 0.045) 0px,
    rgba(74, 217, 255, 0.02) 1px,
    transparent 2px,
    transparent 4px
  );
  opacity: 0.45;
}

.aya-stage img {
  width: min(100%, 430px);
  max-height: 500px;
  margin-bottom: -140px;
  object-fit: contain;
  image-rendering: pixelated;
  animation: aya-float 3s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.aya-reacting .aya-stage img {
  animation: aya-react 0.3s ease-out;
}

.aya-celebrating .aya-stage img {
  animation: aya-celebrate 0.75s ease-in-out;
}

.aya-terminal-dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 0 10px 10px;
}

.aya-terminal-dock .crt-display {
  width: 100%;
}

.aya-terminal-line {
  min-height: 70px;
  display: grid;
  place-items: center;
  padding: 8px 12px;
}

.aya-speech-wrap {
  display: flex;
  justify-content: center;
}

.aya-speech {
  position: relative;
  max-width: 260px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--deep-2);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  line-height: 1.45;
  padding: 10px 12px;
  box-shadow: 0 0 14px rgba(22, 210, 255, 0.14);
}

.aya-speech::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 14px;
  height: 14px;
  background: var(--deep-2);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: translateX(-50%) rotate(45deg);
}

.auth-form-wrap {
  padding: 8px 8px 8px 4px;
}

.auth-form {
  margin-top: 10px;
}

.auth-password-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.auth-toggle {
  min-width: 88px;
}

.auth-inline-meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
}

.auth-field-error {
  margin: 6px 0 0;
  color: #ff9bb2;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  line-height: 1.4;
}

.auth-input-invalid {
  border-color: rgba(255, 110, 139, 0.65) !important;
  box-shadow: 0 0 0 2px rgba(159, 18, 48, 0.22) !important;
}

.auth-mode-terminal {
  margin-top: 16px;
  max-width: 360px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(22, 210, 255, 0.24);
  border-radius: 12px;
  background:
    radial-gradient(circle at 10% 10%, rgba(22, 210, 255, 0.11), transparent 55%),
    linear-gradient(180deg, rgba(5, 15, 24, 0.92), rgba(2, 8, 13, 0.98));
  overflow: hidden;
  position: relative;
}

.auth-mode-terminal::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(22, 210, 255, 0.06) 0px,
    rgba(22, 210, 255, 0.02) 1px,
    transparent 2px,
    transparent 4px
  );
}

.auth-mode-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid rgba(22, 210, 255, 0.26);
  border-radius: 10px;
  text-decoration: none;
  background: rgba(6, 17, 28, 0.9);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.auth-mode-link:hover {
  border-color: rgba(22, 210, 255, 0.58);
  color: var(--cyan-soft);
  box-shadow: 0 0 10px rgba(22, 210, 255, 0.16);
}

.auth-mode-link.active {
  border-color: rgba(22, 210, 255, 0.7);
  color: var(--cyan-soft);
  background: linear-gradient(120deg, rgba(10, 30, 49, 0.96), rgba(5, 13, 22, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(22, 210, 255, 0.16),
    0 0 14px rgba(22, 210, 255, 0.2);
}

.auth-mode-caret {
  display: inline-block;
  width: 10px;
  text-align: center;
  color: var(--cyan);
}

.auth-mode-link:not(.active) .auth-mode-caret {
  color: rgba(22, 210, 255, 0.4);
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 24px 28px;
}

.dashboard-hero-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.dashboard-hero-head {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.dashboard-aya-badge {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid rgba(22, 210, 255, 0.35);
  background: rgba(6, 15, 24, 0.9);
  padding: 5px;
  object-fit: contain;
}

.dashboard-hero h1 {
  margin: 2px 0 0;
}

.dashboard-hero-sub {
  max-width: 62ch;
}

.dashboard-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: start;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px 28px;
}

.dashboard-card {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 14px;
  background: rgba(7, 17, 27, 0.75);
}

.dashboard-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.dashboard-kv {
  display: grid;
  gap: 6px;
}

.dashboard-kv p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.dashboard-kv span {
  color: var(--text);
}

.dashboard-node-list {
  display: grid;
  gap: 10px;
}

.dashboard-node-row {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 10px;
  background: rgba(8, 19, 30, 0.82);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-register {
  padding: 24px 28px;
}

.dashboard-credentials {
  margin-top: 14px;
  border: 1px solid rgba(255, 192, 110, 0.35);
  border-radius: 12px;
  padding: 12px;
  background: rgba(27, 19, 7, 0.45);
}

@keyframes aya-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes aya-react {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes aya-celebrate {
  0% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-12px) rotate(-3deg); }
  50% { transform: translateY(-4px) rotate(2deg); }
  75% { transform: translateY(-8px) rotate(-1deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@media (max-width: 900px) {
  .auth-card {
    grid-template-columns: 1fr;
  }

  .aya-stage {
    min-height: 400px;
    padding-bottom: 112px;
  }

  .aya-stage img {
    width: min(380px, 96%);
    max-height: 420px;
    margin-bottom: -122px;
  }

  .aya-terminal-line {
    min-height: 64px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-hero {
    grid-template-columns: 1fr;
  }

  .dashboard-aya-badge {
    width: 44px;
    height: 44px;
  }

  .dashboard-hero-head {
    align-items: flex-start;
  }

  .dashboard-hero-actions {
    justify-content: flex-start;
  }
}

/* Nodes */
.nodes-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
}

.nodes-hero-actions {
  display: flex;
  gap: 10px;
}

.nodes-grid-wrap,
.nodes-control-wrap {
  padding: 16px;
}

.nodes-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.nodes-section-head h2 {
  margin: 0;
}

.nodes-meta {
  color: var(--muted);
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
}

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

.node-card {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 12px;
  background: rgba(7, 17, 27, 0.78);
  display: grid;
  gap: 8px;
  min-width: 0;
}

.node-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.node-card-head > div:first-child {
  min-width: 0;
  flex: 1 1 180px;
}

.node-card-head h3 {
  margin: 0;
  color: var(--cyan-soft);
  font-size: var(--fs-md);
  overflow-wrap: anywhere;
}

.node-id {
  margin: 4px 0 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  overflow-wrap: anywhere;
}

.node-status {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
}

.node-status.status-online,
.node-status.status-approved {
  color: #7ef7c8;
  border-color: rgba(110, 255, 185, 0.35);
}

.node-status.status-busy,
.node-status.status-pending {
  color: var(--warn);
  border-color: rgba(255, 192, 110, 0.45);
}

.node-status.status-suspended,
.node-status.status-rejected {
  color: var(--blood-soft);
  border-color: rgba(255, 110, 139, 0.5);
}

.node-status.status-unknown {
  color: var(--muted);
}

.node-kv {
  display: grid;
  gap: 4px;
}

.node-kv p,
.node-caps {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-xs);
}

.node-kv p span,
.node-caps span {
  color: var(--text);
}

.node-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: stretch;
}

.node-actions button {
  border: 1px solid rgba(22, 210, 255, 0.28);
  border-radius: 8px;
  background: rgba(8, 21, 39, 0.9);
  color: var(--text);
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  min-width: 0;
  flex: 0 1 auto;
}

.node-actions button:hover {
  border-color: rgba(22, 210, 255, 0.6);
}

.nodes-empty {
  border: 1px dashed var(--line-soft);
  border-radius: 12px;
  padding: 14px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
}

.nodes-control-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-width: 560px;
}

.nodes-control-row label {
  margin: 0;
}

/* ── Node Net ── */

.nodenet-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  flex-wrap: wrap;
}

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

.nodenet-view-toggle {
  display: flex;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow: hidden;
}

.nodenet-view-toggle button {
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.05em;
}

.nodenet-view-toggle button:hover {
  color: var(--text);
  background: rgba(22, 210, 255, 0.06);
}

.nodenet-view-toggle button.active {
  color: var(--cyan);
  background: rgba(22, 210, 255, 0.12);
  text-shadow: 0 0 8px rgba(22, 210, 255, 0.5);
}

.nodenet-refresh {
  background: rgba(8, 21, 39, 0.9);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  padding: 6px 12px;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: all 0.2s;
}

.nodenet-refresh:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.nodenet-stats {
  padding: 10px 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.nodenet-stats .stat-box {
  flex: 1 1 0;
  min-width: 80px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nodenet-stats .stat-num {
  font-size: var(--fs-lg);
}

.nodenet-stats .stat-label {
  font-size: var(--fs-xs);
}

.nodenet-map-wrap {
  padding: 0;
  overflow: hidden;
  position: relative;
}

.nodenet-map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.nodenet-map-label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--cyan);
  letter-spacing: 0.08em;
  text-shadow: 0 0 6px rgba(22, 210, 255, 0.3);
}

.nodenet-map-status {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--muted);
}

.nodenet-canvas {
  width: 100%;
  height: 480px;
  display: block;
  background:
    radial-gradient(circle at 50% 50%, rgba(22, 210, 255, 0.03), transparent 70%),
    linear-gradient(180deg, rgba(4, 6, 10, 0.95), rgba(8, 21, 39, 0.6));
}

.nodenet-list-wrap {
  padding: 16px;
}

.nodenet-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 60px 20px;
  text-align: center;
}

.nodenet-empty p {
  margin: 0;
  font-family: var(--font-mono);
  color: var(--muted);
  letter-spacing: 0.06em;
}

.nodenet-empty p:first-child {
  color: var(--cyan);
  font-size: var(--fs-lg);
  text-shadow: 0 0 12px rgba(22, 210, 255, 0.4);
}

.nodenet-empty a {
  margin-top: 12px;
  display: inline-block;
  border: 1px solid var(--cyan);
  border-radius: 8px;
  padding: 8px 20px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: all 0.2s;
}

.nodenet-empty a:hover {
  background: rgba(22, 210, 255, 0.12);
  box-shadow: 0 0 16px rgba(22, 210, 255, 0.25);
}

.node-card-clickable {
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.node-card-clickable:hover {
  border-color: rgba(22, 210, 255, 0.45);
  box-shadow: 0 0 20px rgba(22, 210, 255, 0.12), inset 0 0 0 1px rgba(22, 210, 255, 0.08);
}

/* Node Detail Modal */
.nodenet-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 4, 8, 0.85);
  backdrop-filter: blur(6px);
  animation: nodenet-fade-in 0.15s ease-out;
}

@keyframes nodenet-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.nodenet-modal {
  width: 90%;
  max-width: 560px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(22, 210, 255, 0.06), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(159, 18, 48, 0.05), transparent 50%),
    rgba(6, 12, 21, 0.96);
  box-shadow:
    0 0 30px rgba(22, 210, 255, 0.15),
    inset 0 0 0 1px rgba(22, 210, 255, 0.06);
  animation: nodenet-modal-in 0.2s ease-out;
}

@keyframes nodenet-modal-in {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.nodenet-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.nodenet-modal-header h2 {
  margin: 4px 0 0;
  color: var(--cyan-soft);
  font-size: var(--fs-lg);
}

.nodenet-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin-bottom: 20px;
}

.nodenet-modal-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nodenet-modal-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.nodenet-modal-value {
  color: var(--text);
  font-size: var(--fs-sm);
  overflow-wrap: anywhere;
}

.nodenet-modal-value.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
}

.nodenet-modal-close {
  display: block;
  width: 100%;
  background: transparent;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: all 0.2s;
}

.nodenet-modal-close:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(22, 210, 255, 0.4);
}

/* Admin */
.admin-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
}

.admin-sub {
  max-width: 820px;
}

.admin-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.admin-hero-actions button {
  border: 1px solid rgba(22, 210, 255, 0.32);
  border-radius: 10px;
  background: rgba(7, 18, 31, 0.9);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 9px 14px;
  font-weight: 600;
  white-space: nowrap;
  min-height: 38px;
}

.admin-hero-actions button:hover:not([disabled]) {
  border-color: rgba(22, 210, 255, 0.65);
  box-shadow: 0 0 12px rgba(22, 210, 255, 0.18);
}

.admin-access-denied,
.admin-stats-wrap,
.admin-tabs-shell,
.admin-section {
  padding: 16px;
}

.admin-tabs-shell {
  overflow-x: auto;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-tab {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(6, 15, 24, 0.74);
  border-color: rgba(22, 210, 255, 0.22);
}

.admin-tab.active {
  border-color: rgba(255, 110, 139, 0.48);
  background: linear-gradient(120deg, rgba(30, 11, 18, 0.96), rgba(12, 27, 43, 0.96));
  box-shadow: 0 0 14px rgba(159, 18, 48, 0.18);
}

.admin-stats-bar {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.admin-stats-bar-wide {
  grid-template-columns: repeat(9, minmax(0, 1fr));
}

.node-status.status-admin {
  color: #ffaec0;
  border-color: rgba(255, 110, 139, 0.42);
}

.node-status.status-operator,
.node-status.status-creator {
  color: #8ad6ff;
  border-color: rgba(22, 210, 255, 0.35);
}

.node-status.status-viewer {
  color: var(--muted);
}

.admin-inline-meta-row {
  display: grid;
  gap: 4px;
  margin-top: 10px;
}

.admin-inline-meta {
  margin: 0;
}

.admin-inline-success {
  color: #7ef7c8;
}

.admin-grid {
  display: grid;
  gap: 18px;
}

.admin-grid-primary {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.admin-grid-secondary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-card {
  padding: 16px;
}

.admin-card-compact {
  max-width: 560px;
}

.admin-card-wide {
  min-height: 100%;
}

.admin-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-card-head.compact {
  margin-bottom: 8px;
}

.admin-card-head h2,
.admin-card-head h3 {
  margin: 0;
}

.admin-copy {
  margin: 0 0 12px;
  color: var(--muted);
}

.admin-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-bulk-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid rgba(22, 210, 255, 0.16);
  border-radius: 12px;
  background: rgba(8, 19, 30, 0.62);
}

.admin-card-select-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-select-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  font-size: var(--fs-xs);
}

.admin-select-check input {
  margin: 0;
}

.admin-filter-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.admin-loader-slot {
  margin-bottom: 12px;
}

.admin-loader-slot .aya-loader {
  width: 100%;
}

.admin-filter-row {
  display: grid;
  gap: 10px;
}

.admin-filter-row-top {
  grid-template-columns: minmax(0, 1fr) 220px 120px;
}

.admin-filter-row-mid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-filter-row-actions {
  grid-template-columns: 1fr;
  padding: 12px;
  border: 1px solid rgba(22, 210, 255, 0.16);
  border-radius: 12px;
  background: rgba(8, 19, 30, 0.62);
}

.admin-filter-row-actions .node-actions {
  flex-wrap: wrap;
}

.discovery-status-panel {
  margin-bottom: 14px;
  border: 1px solid rgba(22, 210, 255, 0.2);
  border-radius: 12px;
  padding: 12px;
  background: rgba(8, 19, 30, 0.56);
  display: grid;
  gap: 8px;
}

.discovery-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-filter-row-triple {
  grid-template-columns: minmax(0, 1fr) 220px 220px;
}

.admin-section-fill {
  min-width: 0;
}

.admin-entity-grid,
.admin-inbox-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.admin-candidate-card,
.admin-room-card,
.admin-webhook-card,
.admin-inbox-card {
  border: 1px solid rgba(22, 210, 255, 0.22);
  border-radius: 12px;
  padding: 12px;
  background: rgba(7, 17, 27, 0.78);
  display: grid;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.admin-candidate-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-candidate-card p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-candidate-card.is-expanded {
  max-height: none;
}

.admin-webhook-card p,
.admin-inbox-card p,
.admin-webhook-card .node-caps,
.admin-webhook-card a {
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}

.admin-candidate-card .admin-card-head.compact {
  flex-wrap: wrap;
  align-items: flex-start;
}

.admin-candidate-card .admin-card-head.compact > div:first-child {
  min-width: 0;
  flex: 1 1 180px;
}

.admin-candidate-card .admin-card-head.compact h3,
.admin-candidate-card .node-id,
.admin-candidate-card .node-caps {
  overflow-wrap: anywhere;
}

.admin-candidate-card .admin-card-select-wrap {
  flex: 0 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-candidate-card .admin-select-check {
  white-space: nowrap;
}

.admin-candidate-card .admin-status-grid {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  margin-top: auto;
}

.admin-candidate-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.candidate-chip {
  display: inline-block;
  border: 1px solid rgba(22, 210, 255, 0.22);
  border-radius: 999px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--muted);
  white-space: nowrap;
  vertical-align: middle;
}

.candidate-chip.joinable {
  color: var(--cyan-soft);
  border-color: rgba(22, 210, 255, 0.55);
  background: rgba(22, 210, 255, 0.12);
}

.candidate-chip.manual {
  color: #ffb84d;
  border-color: rgba(255, 184, 77, 0.55);
  background: rgba(255, 184, 77, 0.14);
}

.candidate-chip.unknown {
  color: var(--muted);
  border-color: rgba(157, 189, 216, 0.28);
}

.admin-candidate-endpoint {
  color: var(--cyan-soft);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  overflow-wrap: anywhere;
  word-break: break-word;
  text-decoration: none;
}

.admin-candidate-endpoint:hover {
  text-decoration: underline;
}

.admin-candidate-toggle {
  display: flex;
  justify-content: flex-end;
}

.admin-candidate-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 10px 0 10px 12px;
  margin-top: 8px;
  border-left: 2px solid rgba(22, 210, 255, 0.3);
}

.admin-candidate-details .node-caps {
  margin: 0;
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-candidate-details .node-caps .chip {
  margin: 2px 4px 2px 0;
}

.admin-candidate-details .node-caps code {
  font-family: var(--font-mono);
  color: var(--cyan-soft);
  overflow-wrap: anywhere;
  word-break: break-all;
}

.admin-candidate-details-id {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.admin-candidate-details-id .node-caps {
  flex: 1 1 auto;
  min-width: 0;
}

.admin-candidate-handshake {
  border: 1px solid rgba(22, 210, 255, 0.18);
  border-radius: 10px;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.admin-candidate-handshake .node-caps {
  margin: 0;
}

.admin-candidate-handshake .node-caps:last-of-type {
  color: var(--warn);
}

.admin-export-link {
  min-height: 38px;
}

.admin-log-filter-banner {
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid rgba(22, 210, 255, 0.2);
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
}

.admin-discovery-add-modal {
  max-width: 760px;
}

.admin-discovery-add-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-protocol-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}

.admin-form-error {
  margin: 6px 0 0;
  color: #ff9bb2;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
}

.admin-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-log-feed {
  max-height: 780px;
  overflow: auto;
}

.admin-webhook-form {
  margin-bottom: 16px;
}

.admin-json-preview {
  margin: 0;
  border: 1px solid rgba(22, 210, 255, 0.18);
  border-radius: 10px;
  padding: 10px;
  background: #050b12;
  color: #bde6ff;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 220px;
  overflow: auto;
}

.confirm-dialog {
  max-width: 560px;
}

.confirm-dialog-copy {
  margin: 0;
  color: var(--muted);
}

.confirm-dialog-actions {
  justify-content: flex-end;
}

@media (max-width: 1180px) {
  .admin-stats-bar,
  .admin-stats-bar-wide,
  .admin-grid-primary,
  .admin-grid-secondary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .admin-hero {
    flex-direction: column;
  }

  .admin-filter-row {
    grid-template-columns: 1fr;
  }

  .admin-filter-row-triple {
    grid-template-columns: 1fr;
  }

  .discovery-status-grid,
  .admin-discovery-add-grid {
    grid-template-columns: 1fr;
  }

  .admin-bulk-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-entity-grid,
  .admin-inbox-list,
  .admin-status-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Private Rooms ── */
.nav-section-label {
  font-size: var(--fs-xs);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  padding: 8px 0 4px;
  border-top: 1px solid rgba(22, 210, 255, 0.1);
  margin-top: 4px;
}

.room-item--private {
  border-color: rgba(159, 18, 48, 0.3);
}

.room-item--private:hover {
  border-color: rgba(159, 18, 48, 0.55);
}

.room-lock {
  margin-right: 4px;
  font-size: 10px;
  opacity: 0.8;
}

.check-card--private {
  border-color: rgba(159, 18, 48, 0.35);
}

.check-card--private:has(input:checked) {
  border-color: rgba(159, 18, 48, 0.7);
  background: rgba(159, 18, 48, 0.08);
}

/* ── Dashboard Private Section ── */
.dashboard-private-section {
  padding: 24px 28px;
}

.dashboard-private-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.dashboard-private-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.button-sm {
  font-size: 0.78rem;
  padding: 5px 12px;
  line-height: 1.4;
}

/* ── Dashboard Private Rooms ── */
.dashboard-private-rooms {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.dashboard-private-room-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid rgba(159, 18, 48, 0.3);
  border-radius: 10px;
  background: rgba(7, 18, 31, 0.6);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}

.dashboard-private-room-row:hover {
  border-color: rgba(159, 18, 48, 0.6);
}

.dashboard-private-room-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dashboard-room-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.room-badge-private {
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 20px;
  border: 1px solid rgba(159, 18, 48, 0.5);
  color: rgba(255, 100, 120, 0.9);
  background: rgba(159, 18, 48, 0.12);
  white-space: nowrap;
}
