/* ============================================================
   V2 — shared styles (Brief / Queue / Chronicle / Findings)
   Extends ../styles.css with v2-specific components and
   the Amy avatar + brand wordmark treatment.
   ============================================================ */

/* Sidebar wordmark */
.sb-logo {
  padding: 0 6px 14px 6px;
}
.sb-logo svg.wordmark {
  height: 30px;
  width: auto;
  display: block;
}

/* Amy avatars: brand-blue background, white A-mark */
.brief-avatar,
.chat-avatar,
.msg-avatar.agent {
  background: var(--brand);
  color: #ffffff;
}
.amy-mark {
  width: 60%;
  height: 60%;
  display: block;
  fill: currentColor;
}
.msg-avatar.agent .amy-mark {
  width: 56%;
  height: 56%;
}

/* Static replacement for the few Tailwind utilities used by the embedded hero. */
.flex {
  display: flex;
}
.flex-1 {
  flex: 1 1 0%;
}
.items-center {
  align-items: center;
}
.gap-1 {
  gap: 0.25rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 0.75rem;
}
.ml-auto {
  margin-left: auto;
}
.min-w-0 {
  min-width: 0;
}
.h-2\.5 {
  height: 0.625rem;
}
.w-2\.5 {
  width: 0.625rem;
}
.h-3 {
  height: 0.75rem;
}
.w-3 {
  width: 0.75rem;
}
.text-\[11px\] {
  font-size: 11px;
}

/* ============================================================
   PAGE HEAD
   ============================================================ */
.page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
}
.greeting {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text-1);
}
.greeting .date {
  color: var(--text-3);
  font-weight: 400;
  margin-left: 10px;
}
.greeting-sub {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 5px;
}

/* ============================================================
   BRIEF
   ============================================================ */
.brief {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 24px 20px 24px;
  position: relative;
  overflow: hidden;
}
.brief-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.brief-avatar {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  position: relative;
}
.brief-avatar::after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--emerald);
  border: 2px solid var(--surface);
}
.brief-name {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.brief-name .ts {
  color: var(--text-3);
  font-weight: 400;
  margin-left: 6px;
}
.brief-body {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-1);
}
.brief-body p {
  margin-bottom: 9px;
}
.brief-body p:last-child {
  margin-bottom: 0;
}
.brief-body .num {
  color: var(--accent);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.brief-body .num.bad {
  color: var(--rose);
}
.brief-body .ref {
  background: var(--surface-2);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 12.5px;
}
.brief-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.brief-foot .meta {
  font-size: 11px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 14px;
}
.brief-foot .meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ============================================================
   SECTION HEAD
   ============================================================ */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 28px 0 12px 0;
}
.section-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-1);
  letter-spacing: -0.01em;
}
.section-title .num {
  color: var(--text-3);
  font-weight: 400;
  margin-left: 6px;
}
.section-aside {
  font-size: 11px;
  color: var(--text-3);
}

/* ============================================================
   QUEUE CARDS
   ============================================================ */
.queue {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.qcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px 12px 16px;
  position: relative;
  transition: border-color 140ms;
}
.qcard:hover {
  border-color: var(--border-strong);
}

.qcard-head {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.qcard-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-1);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.qcard-meta {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.qcard-body {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.55;
  margin-top: 8px;
}
.qcard-evidence {
  margin-top: 8px;
  padding: 7px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 11px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 7px;
}
.qcard-evidence .ev-label {
  color: var(--text-3);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.qcard-actions {
  margin-top: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.qcard-actions .conf {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--text-3);
}
.qcard-actions .conf .bar {
  width: 50px;
  height: 3px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}
.qcard-actions .conf .bar > span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.empty-queue {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-3);
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
}

.qcard-question .qcard-body {
  color: var(--text-1);
}
.qcard.question .qcard-actions .ans-yes {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* ============================================================
   CHRONICLE
   ============================================================ */
.chron {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.chron-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.chron-day {
  padding: 14px 18px 6px 18px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-4);
}
.chron-entry {
  display: grid;
  grid-template-columns: 64px 16px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 9px 18px;
  font-size: 12px;
  transition: background 120ms;
  cursor: pointer;
}
.chron-entry:hover {
  background: var(--surface-hover);
}
.chron-entry .ce-time {
  color: var(--text-4);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.chron-entry .ce-bullet {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  flex: none;
}
.chron-entry .ce-text {
  color: var(--text-1);
  line-height: 1.55;
}
.chron-entry .ce-text .verb {
  color: var(--text-2);
}
.chron-entry .ce-text .num {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.chron-entry .ce-text .ref {
  background: var(--surface-2);
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 11.5px;
}
.chron-entry .ce-text .badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  height: 17px;
  border-radius: 3px;
  font-size: 10.5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: 1px;
  margin-left: 2px;
}
.chron-entry .ce-text .badge.flagged {
  color: var(--rose);
  border-color: rgba(225, 29, 72, 0.25);
  background: rgba(225, 29, 72, 0.05);
}
.chron-entry .ce-text .badge.closed {
  color: var(--emerald);
  border-color: rgba(22, 163, 74, 0.25);
  background: rgba(22, 163, 74, 0.05);
}
.chron-entry .ce-link {
  font-size: 10.5px;
  color: var(--text-3);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.35;
}
.chron-entry:hover .ce-link {
  color: var(--accent);
}

.chron-foot {
  padding: 10px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
