/* IntelliFlow — widget stage + channels */

.channels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; margin-top: 10px; }

.stage {
  position: relative;
  height: clamp(340px, 46vw, 440px);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(600px 300px at 82% 0%, rgba(138, 155, 255, 0.12), transparent 62%),
    linear-gradient(180deg, #0a0a0c, #070708);
}
.stage__page {
  position: absolute; inset: 0;
  padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
  opacity: 0.55;
}
.stage__bar { width: 88px; height: 8px; border-radius: 4px; background: rgba(244, 241, 234, 0.18); }
.stage__line { width: 72%; height: 6px; border-radius: 3px; background: rgba(244, 241, 234, 0.1); }
.stage__line--short { width: 46%; }
.stage__block { width: 100%; height: 96px; border-radius: 10px; background: rgba(244, 241, 234, 0.06); margin: 4px 0; }

.wf {
  --wf-accent: #8a9bff;
  position: absolute; bottom: 16px; right: 16px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  max-width: calc(100% - 32px);
  z-index: 2;
}
.wf[data-pos="left"] { right: auto; left: 16px; align-items: flex-start; }

.wf__launcher {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 17px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--wf-accent); color: #08080a;
  font-size: 13.5px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s var(--ease), filter 0.25s ease;
}
.wf__launcher:hover { transform: translateY(-1px); filter: brightness(1.06); }
.wf__launcher-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #08080a; opacity: 0.7;
}

.wf__panel {
  width: min(300px, 88vw);
  border: 1px solid rgba(244, 241, 234, 0.14);
  border-radius: 14px; padding: 14px;
  background: rgba(12, 12, 15, 0.97);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
}
.wf__head { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.wf__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wf-accent); box-shadow: 0 0 10px var(--wf-accent); }
.wf__name { font-family: var(--font-display); font-size: 12px; letter-spacing: 0.04em; }
.wf__hint { margin-left: auto; font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.14em; color: var(--dim); }
.wf__greet { font-size: 13.5px; color: var(--bone); margin-top: 10px; line-height: 1.5; }
.wf__log { display: grid; gap: 6px; margin-top: 8px; max-height: 130px; overflow-y: auto; }
.wf__msg { font-size: 12.5px; line-height: 1.55; padding: 7px 10px; border-radius: 10px; max-width: 92%; }
.wf__msg--user { justify-self: end; background: var(--wf-accent); color: #08080a; border-bottom-right-radius: 3px; }
.wf__msg--bot { background: rgba(244, 241, 234, 0.07); color: var(--bone-dim); border-bottom-left-radius: 3px; }
.wf__quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.wf__quick button {
  border: 1px solid rgba(244, 241, 234, 0.18); background: transparent;
  color: var(--bone-dim); border-radius: 999px; padding: 6px 11px;
  font-size: 11.5px; cursor: pointer; transition: all 0.2s ease;
}
.wf__quick button:hover { border-color: var(--wf-accent); color: var(--bone); }
