/* Fraud Detection assistant — components specific to this system.
   Loaded after the shared Meridian theme, which provides the palette and the page shell. */

.assistant { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; }

.sidebar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  align-self: start;
}

.sidebar .label { display: block; margin: 14px 0 6px; }
.sidebar .label:first-child { margin-top: 0; }

.history { display: grid; gap: 2px; }

.history a {
  display: block;
  padding: 6px 8px;
  border-radius: var(--radius);
  color: var(--ink-2);
  font-size: 13px;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history a:hover { background: var(--surface-2); color: var(--brand); }
.history a[aria-current="page"] { background: var(--surface-2); color: var(--brand); font-weight: 600; }

.analyst {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

/* ---------- conversation ---------- */

.thread { display: grid; gap: 14px; }

.message {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
}

.message.analyst-message { border-left-color: var(--brass); }
.message.model-message { border-left-color: var(--brand); }

.message-author {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.message-body { margin: 0; line-height: 1.6; }

.prompt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }

.prompt-grid button {
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink-2);
  padding: 11px 13px;
}

.prompt-grid button:hover { border-color: var(--brand); color: var(--brand); }

.composer { display: flex; gap: 8px; }
.composer input[type="text"] { flex: 1; }

.composer button {
  flex: 0 0 auto;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  padding: 9px 18px;
  border-radius: var(--radius);
}

.composer button:hover { background: var(--brand-dark); border-color: var(--brand-dark); }

.disclaimer { margin: 10px 0 0; color: var(--muted); font-size: 12px; }

/* ---------- report widget ---------- */

.report-widget { position: fixed; bottom: 18px; right: 18px; z-index: 60; }

.report-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--brand-dark);
  background: var(--brand);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius);
  box-shadow: 0 10px 24px -12px rgba(15, 30, 46, .6);
}

.report-toggle:hover { background: var(--brand-dark); }

.report-pulse {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--brass);
}

.report-panel {
  width: min(420px, calc(100vw - 44px));
  margin-top: 8px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -20px rgba(15, 30, 46, .6);
  padding: 16px 18px;
}

.report-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
}

.report-close {
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 0;
}

.report-close:hover { color: var(--ink); }

.report-panel label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.report-panel input[type="url"] {
  width: 100%;
  font: inherit;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 8px 10px;
  margin-bottom: 10px;
  outline: none;
}

.report-panel input[type="url"]:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(27, 79, 140, .14);
}

.report-submit {
  width: 100%;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  padding: 8px;
  border-radius: var(--radius);
}

.report-submit:hover { background: var(--brand-dark); border-color: var(--brand-dark); }

.report-status { font-size: 12px; color: var(--muted); margin: 8px 0 0; min-height: 1em; }

@media (max-width: 820px) {
  .assistant { grid-template-columns: 1fr; }
}
