/* The design conversation. Sits beside the floor assistant, deliberately
   distinct: one is for running the plant, the other for building it. */

.design-launch {
  position: fixed; right: 18px; bottom: 66px; z-index: 40;
  background: var(--panel); color: var(--accent);
  border: 1px solid var(--accent); border-radius: 999px;
  padding: 8px 15px; font: inherit; font-weight: 600; font-size: 13px;
  cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}
.design-launch:hover { background: var(--panel-2); }
.design-launch:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

.design-panel {
  position: fixed; right: 18px; bottom: 18px; z-index: 42;
  width: min(520px, calc(100vw - 36px));
  height: min(660px, calc(100vh - 36px));
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--accent);
  border-radius: 12px; box-shadow: 0 14px 44px rgba(0, 0, 0, .5);
  overflow: hidden;
}
.design-head {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--panel-2);
}
.design-head strong { font-size: 14px; }
.design-head .spacer { flex: 1; }
.design-model {
  font-family: var(--mono); font-size: 10.5px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px;
}
.design-head button {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  border-radius: 6px; padding: 2px 9px; cursor: pointer; font: inherit; font-size: 12.5px;
}
.design-head button:hover { color: var(--text); }

.design-log { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.design-msg { font-size: 13.5px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.design-msg.you {
  color: var(--text); background: var(--panel-2);
  border-left: 3px solid var(--accent); padding: 8px 10px; border-radius: 0 8px 8px 0;
}
.design-msg.bot { color: var(--text); }
.design-msg.thinking, .design-msg.note { color: var(--muted); font-style: italic; font-size: 12.5px; }

.design-ask { display: flex; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line); }
.design-ask textarea {
  flex: 1; resize: vertical; min-height: 44px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 13.5px;
}
.design-ask button {
  background: var(--accent); color: #06121f; border: none; align-self: stretch;
  border-radius: 8px; padding: 0 16px; font: inherit; font-weight: 600; cursor: pointer;
}
.design-foot {
  padding: 0 12px 10px; font-size: 11px; color: var(--muted);
}
