/* ═══════════════════════════════════════════════════════════════════════
   ehdm-rel-notebook.css — Relationship Engine · M9 · Alyx's Notebook
   Visual language follows ehdm-alyx-says.css: dark, quiet, small type.
   ═══════════════════════════════════════════════════════════════════════ */

#ehdm-rel-notebook {
  position: fixed;
  top: 0;
  right: 0;
  width: 360px;
  max-width: 92vw;
  height: 100vh;
  z-index: 9400;
  display: none;
  flex-direction: column;
  background: rgba(16, 14, 20, 0.97);
  color: #cfc9d6;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -12px 0 32px rgba(0, 0, 0, 0.5);
  font: 13px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  backdrop-filter: blur(6px);
}
#ehdm-rel-notebook.rnb-open { display: flex; }

#ehdm-rel-notebook .rnb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
#ehdm-rel-notebook .rnb-title {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a99fc0;
}
#ehdm-rel-notebook .rnb-close {
  background: none;
  border: 0;
  color: #8a819c;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
}
#ehdm-rel-notebook .rnb-close:hover { color: #e8e2f2; }

#ehdm-rel-notebook .rnb-tabs {
  display: flex;
  gap: 2px;
  padding: 8px 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
#ehdm-rel-notebook .rnb-tab {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #8a819c;
  font: inherit;
  font-size: 12px;
  text-transform: capitalize;
  padding: 6px 10px;
  cursor: pointer;
}
#ehdm-rel-notebook .rnb-tab:hover { color: #cfc9d6; }
#ehdm-rel-notebook .rnb-tab-on {
  color: #e8e2f2;
  border-bottom-color: #7f6fb2;
}

#ehdm-rel-notebook .rnb-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px 20px;
}

#ehdm-rel-notebook .rnb-empty {
  color: #6f6782;
  font-style: italic;
  padding: 28px 8px;
  text-align: center;
}
#ehdm-rel-notebook .rnb-note {
  color: #6f6782;
  font-size: 11px;
  margin-top: 6px;
}

#ehdm-rel-notebook .rnb-block { margin-bottom: 18px; }
#ehdm-rel-notebook .rnb-h {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7f6fb2;
  margin-bottom: 6px;
}
#ehdm-rel-notebook .rnb-t { width: 100%; border-collapse: collapse; }
#ehdm-rel-notebook .rnb-t td,
#ehdm-rel-notebook .rnb-t th {
  text-align: left;
  padding: 4px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-weight: normal;
}
#ehdm-rel-notebook .rnb-t th {
  color: #6f6782;
  font-size: 11px;
}
#ehdm-rel-notebook .rnb-t td:last-child { text-align: right; color: #e8e2f2; }

/* journal */
#ehdm-rel-notebook .rnb-j {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
#ehdm-rel-notebook .rnb-k {
  flex: 0 0 auto;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7f6fb2;
  min-width: 52px;
}
#ehdm-rel-notebook .rnb-j-drift  .rnb-k { color: #6fa2b2; }
#ehdm-rel-notebook .rnb-j-decay  .rnb-k { color: #6f6782; }
#ehdm-rel-notebook .rnb-j-promote .rnb-k { color: #9db27f; }
#ehdm-rel-notebook .rnb-jt { flex: 1; }
#ehdm-rel-notebook .rnb-when {
  flex: 0 0 auto;
  color: #555062;
  font-size: 10px;
}

/* beliefs */
#ehdm-rel-notebook .rnb-b {
  padding: 10px 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
#ehdm-rel-notebook .rnb-b-decay { opacity: 0.62; }
#ehdm-rel-notebook .rnb-bt { margin-bottom: 6px; color: #e8e2f2; }
#ehdm-rel-notebook .rnb-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}
#ehdm-rel-notebook .rnb-fill {
  height: 100%;
  background: linear-gradient(90deg, #5d4f8c, #8f7fc4);
}
#ehdm-rel-notebook .rnb-brow {
  display: flex;
  align-items: center;
  gap: 8px;
}
#ehdm-rel-notebook .rnb-ev {
  color: #6f6782;
  font-size: 11px;
  cursor: help;
}
#ehdm-rel-notebook .rnb-tag {
  font-size: 10px;
  color: #6f6782;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0 6px;
}
#ehdm-rel-notebook .rnb-veto {
  margin-left: auto;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  color: #8a819c;
  font: inherit;
  font-size: 11px;
  padding: 2px 8px;
  cursor: pointer;
}
#ehdm-rel-notebook .rnb-veto:hover { color: #cfc9d6; }
#ehdm-rel-notebook .rnb-veto-armed {
  border-color: #b25f5f;
  color: #d98a8a;
}

/* shelf */
#ehdm-rel-notebook .rnb-s {
  padding: 10px 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
#ehdm-rel-notebook .rnb-st {
  font-size: 11px;
  color: #7f6fb2;
  margin-bottom: 4px;
  text-transform: capitalize;
}
#ehdm-rel-notebook .rnb-sc {
  color: #cfc9d6;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 72px;
  overflow: hidden;
  margin-bottom: 6px;
}
#ehdm-rel-notebook .rnb-act {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  color: #cfc9d6;
  font: inherit;
  font-size: 11px;
  padding: 2px 8px;
  cursor: pointer;
}
#ehdm-rel-notebook .rnb-act:hover { border-color: #8f7fc4; }
#ehdm-rel-notebook .rnb-dim { color: #6f6782; }

@media (max-width: 480px) {
  #ehdm-rel-notebook { width: 100vw; border-left: 0; }
}
