/* The floor assistant: a launcher, a panel, and the highlight ring that makes
   guide mode worth having. Deliberately additive - it is injected into every
   screen and must never disturb the layout beneath it. */

.assist-launch {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  display: flex; align-items: center; gap: 8px;
  background: var(--accent); color: #06121f;
  border: none; border-radius: 999px;
  padding: 10px 16px; font: inherit; font-weight: 600; font-size: 14px;
  cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
}
.assist-launch:hover { filter: brightness(1.08); }
.assist-launch:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

.assist-panel {
  position: fixed; right: 18px; bottom: 18px; z-index: 41;
  width: min(380px, calc(100vw - 36px));
  max-height: min(560px, calc(100vh - 36px));
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
  overflow: hidden;
}
.assist-head {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}
.assist-head strong { font-size: 14px; }
.assist-head .spacer { flex: 1; }
.assist-head button {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  border-radius: 6px; padding: 2px 9px; cursor: pointer; font: inherit; font-size: 13px;
}
.assist-head button:hover { color: var(--text); }

.assist-log { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.assist-msg { font-size: 13.5px; line-height: 1.55; }
.assist-msg.you { color: var(--muted); }
.assist-msg.you::before { content: "you "; font-family: var(--mono); font-size: 11px; }
.assist-msg.bot { color: var(--text); white-space: pre-wrap; }
.assist-msg.thinking { color: var(--muted); font-style: italic; }

.assist-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 10px; }
.assist-suggest button {
  background: var(--panel-2); border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 4px 11px; font: inherit; font-size: 12px; cursor: pointer;
}
.assist-suggest button:hover { color: var(--text); border-color: var(--accent); }

.assist-ask { display: flex; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line); }
.assist-ask input {
  flex: 1; background: var(--panel-2); border: 1px solid var(--line);
  color: var(--text); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 13.5px;
}
.assist-ask button {
  background: var(--accent); color: #06121f; border: none;
  border-radius: 8px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer;
}

/* ---------- guide mode ---------- */

.assist-ring {
  position: fixed; z-index: 60; pointer-events: none;
  border: 2px solid var(--accent); border-radius: 10px;
  box-shadow: 0 0 0 9999px rgba(4, 8, 14, .55), 0 0 22px rgba(74, 158, 255, .55);
  transition: all .28s cubic-bezier(.4, 0, .2, 1);
}
@media (prefers-reduced-motion: reduce) { .assist-ring { transition: none; } }

.assist-coach {
  position: fixed; z-index: 61;
  width: min(320px, calc(100vw - 24px));
  background: var(--panel); border: 1px solid var(--accent);
  border-radius: 10px; padding: 12px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.assist-coach .step {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 4px;
}
.assist-coach h4 { margin: 0 0 5px; font-size: 15px; }
.assist-coach p { margin: 0 0 10px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.assist-coach .row { display: flex; gap: 6px; align-items: center; }
.assist-coach button {
  background: var(--accent); color: #06121f; border: none;
  border-radius: 7px; padding: 6px 13px; font: inherit; font-weight: 600;
  font-size: 13px; cursor: pointer;
}
.assist-coach button.ghost {
  background: transparent; color: var(--muted); border: 1px solid var(--line); font-weight: 400;
}
.assist-coach .spacer { flex: 1; }
