/* ======================================================
   NOTEBOOK LM
====================================================== */
.notebooks { display: flex; flex-direction: column; gap: 3px; margin-bottom: 14px; }
.nb-item {
  background: var(--s2);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.4s cubic-bezier(.34,1.56,.64,1);
  transform-style: preserve-3d;
}
.nb-item:hover { background: var(--s3); }
.nb-l { flex: 1; min-width: 0; }
.nb-label { font-size: 7px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; font-family: var(--m); color: var(--t3); margin-bottom: 3px; }
.nb-title { font-size: 10px; font-weight: 600; color: var(--t); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-meta { font-size: 8px; color: var(--t3); font-family: var(--m); margin-top: 2px; }
.nb-actions { display: flex; gap: 5px; flex-shrink: 0; }
.nb-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  border: none;
  outline: none;
  font-family: var(--m);
  transition: transform 0.2s, opacity 0.2s;
}
.nb-btn:hover { transform: translateY(-1px); opacity: 0.85; }
.nb-btn.orange { background: rgba(232,87,58,0.18); color: var(--o); }
.nb-btn.lime { background: rgba(204,255,0,0.12); color: var(--l); }
.nb-btn svg { width: 10px; height: 10px; stroke: currentColor; fill: none; stroke-width: 1.5; }

/* ======================================================
   AI INSIGHT
====================================================== */
.insight-card {
  background: var(--s2);
  padding: 14px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: transform 0.4s cubic-bezier(.34,1.56,.64,1);
  transform-style: preserve-3d;
}
/* Animated gradient border via box-shadow cycling */
.insight-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--s2), var(--s2)) padding-box,
    conic-gradient(from var(--border-angle, 0deg), var(--o), var(--l), var(--o)) border-box;
  animation: spin-border 3s linear infinite;
  pointer-events: none;
}
/* We approximate the border with box-shadow instead since @property is not universal */
.insight-card { box-shadow: inset 0 0 0 1px rgba(232,87,58,0.25); animation: insight-border 3s ease-in-out infinite; }
.insight-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.ai-icon {
  width: 22px; height: 22px;
  background: var(--og);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ai-icon svg { width: 12px; height: 12px; stroke: var(--o); fill: none; stroke-width: 1.5; }
.insight-label { font-size: 9px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--o); font-family: var(--m); }
.insight-sub { font-size: 8px; color: var(--t3); font-family: var(--m); margin-left: auto; }
.insight-text {
  font-size: 11px;
  line-height: 1.6;
  color: var(--t2);
  min-height: 36px;
}
.insight-text .cursor {
  display: inline-block;
  width: 7px;
  height: 12px;
  background: var(--o);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursor-blink 0.8s step-start infinite;
}

/* ======================================================
   CHANNELS
====================================================== */
.channels { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.ch-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  background: var(--s1);
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: background 0.2s, border-color 0.2s, transform 0.3s ease;
}
.ch-item:hover { background: var(--s2); transform: translateX(3px); }
.ch-item.active-lime { border-left-color: var(--l); }
.ch-item.active-orange { border-left-color: var(--o); }
.ch-item.inactive { border-left-color: var(--s3); }
.ch-name { font-family: var(--m); font-size: 9px; font-weight: 500; color: var(--t2); }
.ch-item.active-lime .ch-name { color: var(--t); }
.ch-item.active-orange .ch-name { color: var(--t); }
.ch-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--m);
  font-size: 8px;
}
.ch-dot { width: 4px; height: 4px; border-radius: 50%; }
.ch-dot.live { background: var(--l); box-shadow: 0 0 4px var(--l); animation: blink 1.6s ease-in-out infinite; }
.ch-dot.idle { background: var(--t3); }

/* ======================================================
   TOOLS GRID
====================================================== */
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 20px; }
.tool-card {
  background: var(--s2);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), background 0.2s;
  transform-style: preserve-3d;
  text-decoration: none;
}
.tool-card:hover {
  transform: translateY(-4px);
  background: var(--s3);
}
.tool-icon {
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tool-icon.orange { background: var(--og); }
.tool-icon.lime { background: var(--lg); }
.tool-icon svg { width: 14px; height: 14px; stroke-width: 1.5; fill: none; }
.tool-icon.orange svg { stroke: var(--o); }
.tool-icon.lime svg { stroke: var(--l); }
.tool-icon.pink { background: var(--rg); }
.tool-icon.pink svg { stroke: var(--r); }
.tool-name { font-family: var(--m); font-size: 7px; font-weight: 600; letter-spacing: 0.1em; color: var(--t2); text-transform: uppercase; text-align: center; }

/* ======================================================
   COMMAND BAR — Quick Launch
====================================================== */
.cmd-bar {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
}
.cmd-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--s2);
  cursor: pointer;
  transition: background 0.2s, transform 0.3s cubic-bezier(.34,1.56,.64,1);
  text-decoration: none;
  flex: 1;
  min-width: 0;
}
.cmd-btn:hover {
  background: var(--s3);
  transform: translateY(-2px);
}
.cmd-btn-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cmd-btn-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}
.cmd-btn-name {
  font-family: var(--m);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
