/* Tiny — translucent executive chat. The graph stays visible through the glass. */
/* Floating "Tiny" node — the primary way in. Styled like a graph node in Tiny's teal (agent color). */
#tiny-fab { position: fixed; right: 20px; bottom: 34px; z-index: 34;
  width: 54px; height: 54px; border-radius: 50%; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: #07110e;
  background: radial-gradient(circle at 34% 30%, #7cffe6, #2ed4ba 68%);
  border: 1px solid rgba(140, 255, 232, 0.6);
  box-shadow: 0 0 0 5px rgba(49, 214, 187, 0.12), 0 8px 22px rgba(0, 0, 0, 0.55);
  transition: transform 150ms ease, box-shadow 150ms ease; }
#tiny-fab:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 0 0 7px rgba(49, 214, 187, 0.18), 0 10px 26px rgba(0, 0, 0, 0.6); }
#tiny-fab:active { transform: scale(0.97); }
#tiny-fab svg { width: 27px; height: 27px; }
#tiny-fab::after { content: ''; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid rgba(49, 214, 187, 0.5); animation: fabpulse 2.6s ease-out infinite; }
@keyframes fabpulse { 0% { transform: scale(1); opacity: 0.5; } 70% { transform: scale(1.5); opacity: 0; } 100% { opacity: 0; } }
.fab-label { position: absolute; right: 62px; white-space: nowrap; padding: 5px 10px; border-radius: 7px;
  font: 600 11px var(--mono); letter-spacing: 0.5px; color: var(--text);
  background: rgba(22, 25, 30, 0.9); border: 1px solid var(--line);
  opacity: 0; transform: translateX(6px); pointer-events: none; transition: opacity 150ms, transform 150ms; }
#tiny-fab:hover .fab-label { opacity: 1; transform: translateX(0); }
body.tiny-open #tiny-fab { display: none; } /* panel has its own close */

#tiny-panel { position: absolute; right: 14px; bottom: 14px; width: min(420px, calc(100vw - 28px));
  height: min(580px, calc(100dvh - 96px)); z-index: 35; display: none; flex-direction: column;
  background: rgba(22, 25, 30, 0.58); backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(79, 195, 247, 0.25); border-radius: 10px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55); overflow: hidden; }
body.tiny-open #tiny-panel { display: flex; }

#tiny-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border-bottom: 1px solid rgba(79, 195, 247, 0.18); flex: none; }
#tiny-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 8px var(--accent); flex: none; }
#tiny-head .title { flex: 1; min-width: 0; font: 700 11px var(--mono); letter-spacing: 1.6px; color: #dfe6ec;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#tiny-head .title span { color: var(--dim); font-weight: 400; letter-spacing: 0.6px; }
#tiny-clear { cursor: pointer; color: var(--dim); background: none; padding: 2px 4px; flex: none;
  display: flex; align-items: center; }
#tiny-clear:hover { color: var(--text); }
#tiny-clear svg { width: 15px; height: 15px; }
/* "Advising you as" row — a clearly labeled seat selector, no longer a cryptic box in the header. */
#tiny-as { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 6px 10px; flex: none;
  border-bottom: 1px solid rgba(79, 195, 247, 0.12); }
#tiny-as label { font: 10px var(--mono); letter-spacing: 0.4px; color: var(--dim); white-space: nowrap; }
#tiny-operate { flex: 1 1 150px; min-width: 0; height: 26px; padding: 0 8px; font: 11px var(--sans);
  background: rgba(0,0,0,0.3); color: var(--text); border: 1px solid var(--line); border-radius: 4px; outline: none; }
#tiny-operate:focus { border-color: var(--accent); }
#tiny-operate::placeholder { color: #5a626c; }
/* One-click seat chips shown by default (the "suggestions"); they disambiguate that this box is YOU,
   and vanish once a seat is chosen. */
#tiny-as-suggest { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 5px; }
#tiny-as.set #tiny-as-suggest { display: none; }
.as-chip { font: 10px var(--mono); padding: 3px 9px; border-radius: 11px; cursor: pointer;
  background: #2c3138; color: var(--dim); border: 1px solid transparent; white-space: nowrap; }
.as-chip:hover { border-color: var(--accent); color: #fff; }
#tiny-close { cursor: pointer; color: var(--dim); font-size: 14px; padding: 2px 6px; flex: none; }
#tiny-close:hover { color: #fff; }

#tiny-log { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.tmsg { max-width: 92%; padding: 8px 11px; border-radius: 9px; font-size: 12.5px; line-height: 1.55;
  white-space: pre-wrap; overflow-wrap: break-word; }
.tmsg.user { align-self: flex-end; background: rgba(79, 195, 247, 0.16); border: 1px solid rgba(79, 195, 247, 0.25); }
.tmsg.tiny { align-self: flex-start; background: rgba(255, 255, 255, 0.055); border: 1px solid rgba(255, 255, 255, 0.09); }
.tmsg.tiny b { color: #eaf6ff; }
.tmsg.tiny code { font: 11px var(--mono); background: rgba(0,0,0,0.35); padding: 0 4px; border-radius: 3px; }
.tmsg a.node { color: var(--accent); text-decoration: none; cursor: pointer; border-bottom: 1px dotted rgba(79,195,247,0.5); }
.tmsg .node-miss { color: var(--dim); font-style: italic; }
.tground { margin-top: 8px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,0.08);
  font: 10px var(--mono); }
.tground .ok { color: #7bc47f; }
.tground .warn { color: #e0a558; }
.tmsg .cursor { display: inline-block; width: 7px; height: 12px; background: var(--accent); animation: tblink 0.9s infinite; vertical-align: -2px; }
@keyframes tblink { 50% { opacity: 0.15; } }
.ttool { align-self: flex-start; font: 10px var(--mono); color: var(--dim); background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.07); border-radius: 6px; padding: 3px 8px; }
.ttool b { color: #9ad1ea; font-weight: 600; }
.terr { align-self: center; color: #e08c8c; font: 11px var(--mono); text-align: center; }

#tiny-attachbar { display: none; gap: 6px; padding: 4px 10px; flex-wrap: wrap; flex: none; }
#tiny-attachbar.has { display: flex; }
#tiny-attachbar .att { font: 10px var(--mono); color: var(--dim); background: rgba(0,0,0,0.3);
  border: 1px solid var(--line); border-radius: 4px; padding: 2px 7px; cursor: pointer; }
#tiny-attachbar .att:hover { color: #e08c8c; }

#tiny-compose { display: flex; gap: 6px; padding: 8px 10px; border-top: 1px solid rgba(79,195,247,0.18); flex: none; align-items: flex-end; }
#tiny-input { flex: 1; min-height: 34px; max-height: 110px; resize: none; padding: 8px 10px;
  background: rgba(0,0,0,0.32); color: var(--text); border: 1px solid var(--line); border-radius: 7px;
  font: 12.5px var(--sans); outline: none; }
#tiny-input:focus { border-color: var(--accent); }
.tiny-btn { width: 34px; height: 34px; border-radius: 7px; cursor: pointer; color: var(--dim);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 14px; flex: none; }
.tiny-btn:hover { color: var(--accent); border-color: var(--accent); }
#tiny-send { color: var(--accent); }

@media (max-width: 900px) {
  #tiny-panel { position: fixed; right: 0; bottom: 0; left: 0; width: 100%; height: 76dvh; border-radius: 12px 12px 0 0; }
  #tiny-fab { right: 16px; bottom: 40px; }
  .fab-label { display: none; } /* touch: no hover, keep it clean */
}
@media (prefers-reduced-motion: reduce) {
  .tmsg .cursor, #tiny-fab::after { animation: none; }
  #tiny-fab, #tiny-fab:hover { transition: none; }
}
