/* Ryze ecom — sidebar agent panel (⌘J), matches platform sidebar-agent */

.agent-panel {
  width: 0;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--background);
  transition: width 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}
.agent-panel.open { width: 416px; }
.agent-panel-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 416px;
  margin-left: auto;
  border-left: 1px solid var(--border);
}

/* Header — h-12, sparkle + title + icon actions */
.agent-panel-head {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 48px;
  padding: 0 12px 0 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.agent-panel-head .sparkle { width: 16px; height: 16px; color: var(--brand); stroke-width: 2; }
.agent-panel-head .title {
  margin-left: 4px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--text-body);
  font-weight: 600;
}

/* Empty state — suggestions anchored to the bottom */
.agent-empty {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  overflow-y: auto;
  padding: 0 12px 12px;
}
.agent-suggestion {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  font-family: inherit;
  font-size: var(--text-body);
  color: var(--foreground);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.agent-suggestion:hover {
  border-color: var(--brand-light);
  background: rgba(244, 241, 234, 0.4);
}
.agent-suggestion .stext {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.agent-suggestion .arrow {
  width: 14px;
  height: 14px;
  color: rgba(138, 130, 122, 0.5);
  transition: color 0.15s;
}
.agent-suggestion:hover .arrow { color: var(--foreground); }

/* Composer */
.agent-composer {
  flex-shrink: 0;
  padding: 0 12px 12px;
  background: var(--background);
}
.agent-composer .box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: none;
  border-radius: 18px;
  background: var(--card);
  padding: 14px 16px 10px;
  box-shadow: 0 0 0 1px rgba(15,23,42,.14), 0 0 0 4px rgba(193,151,103,.10), 0 12px 36px rgba(74,53,29,.10);
  transition: box-shadow 0.3s;
}
.agent-composer .box:hover {
  box-shadow: 0 0 0 1px rgba(15,23,42,.18), 0 0 0 4px rgba(193,151,103,.14), 0 14px 40px rgba(74,53,29,.12);
}
.agent-composer .box:focus-within {
  box-shadow: 0 0 0 1px rgba(15,23,42,.20), 0 0 0 4px rgba(193,151,103,.18), 0 14px 40px rgba(74,53,29,.14);
}
.agent-composer textarea {
  border: none;
  outline: none;
  resize: none;
  background: transparent;
  font-family: inherit;
  font-size: var(--text-body);
  line-height: 1.5;
  color: var(--foreground);
  min-height: 40px;
  max-height: 120px;
}
.agent-composer textarea::placeholder { color: #b8a988; }
.agent-composer .composer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.agent-composer .send {
  margin-left: auto;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-md);
  background: var(--foreground);
  color: var(--background);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15,23,42,.10);
  transition: transform 0.15s, box-shadow 0.15s, background-color 0.15s;
}
.agent-composer .send:hover { transform: scale(1.04); box-shadow: 0 4px 14px rgba(15,23,42,.22); background: #1e293b; }
.agent-composer .send svg { width: 16px; height: 16px; }
.agent-composer .mic {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.agent-composer .mic:hover { background: rgba(15,23,42,.05); color: var(--foreground); }
.agent-composer .mic svg { width: 16px; height: 16px; }
