/* Solutions UI styles. Layered on top of colors_and_type.css.
   Light theme – warm paper aesthetic, layered surfaces. */

:root { color-scheme: light; }

* { box-sizing: border-box; }
html, body, #root { height: 100%; margin: 0; }
body {
  font-family: var(--font-sans);
  background: #ffffff;
  color: #1d1f27;
  overflow: hidden;
  font-feature-settings: "ss01", "cv11";
}

/* ============== App shell ============== */
.app { display: flex; flex-direction: column; height: 100vh; background: #fafaf7; }

.titlebar {
  height: 36px; flex-shrink: 0; display: flex; align-items: center;
  background: #fbfbf6; border-bottom: 1px solid #e8e3d5;
  padding: 0 12px;
}
.traffic { display: flex; gap: 8px; }
.traffic .dot { width: 12px; height: 12px; border-radius: 50%; }
.traffic .red { background: #e54848; }
.traffic .yellow { background: #febc2e; }
.traffic .green { background: #28c840; }
.titlebar .title {
  flex: 1; text-align: center; font-size: 12px; color: #6b6e7a; font-weight: 500;
}
.titlebar .right { display: flex; align-items: center; gap: 6px; }
.title-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10.5px; color: #3a3d4a;
  background: #f4f1e8; border: 1px solid #e8e3d5; padding: 3px 8px;
  border-radius: 4px;
}
.title-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: #b88800; }

.shell { display: flex; flex: 1; min-height: 0; }

/* Mini sidebar – full Code app context, but compressed because Solutions takes the screen */
.minirail {
  width: 56px; flex-shrink: 0;
  background: #ffffff; border-right: 1px solid #e8e3d5;
  display: flex; flex-direction: column; align-items: stretch; padding: 10px 0;
}
.mr-logo {
  width: 32px; height: 32px; margin: 0 auto 14px;
  border-radius: 6px; background: #b88800;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 14px; color: #1a1200;
}
.mr-item {
  height: 38px; display: flex; align-items: center; justify-content: center;
  margin: 2px 8px; border-radius: 6px; color: #8a8d99; cursor: pointer;
  position: relative;
}
.mr-item:hover { background: #f4f1e8; color: #3a3d4a; }
.mr-item.active { background: #fff4d6; color: #b88800; }
.mr-item.active::before {
  content: ""; position: absolute; left: -8px; top: 8px; bottom: 8px;
  width: 2px; border-radius: 2px; background: #b88800;
}
.mr-badge {
  position: absolute; top: 4px; right: 4px;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9999px;
  background: #e54848; color: #fff; font-family: var(--font-mono);
  font-size: 9.5px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.mr-spacer { flex: 1; }
.mr-avatar {
  width: 32px; height: 32px; border-radius: 50%; margin: 6px auto 0;
  background: #f54d00; color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}

/* ============== Solutions surface ============== */
.solutions {
  flex: 1; min-width: 0; min-height: 0;
  display: flex; flex-direction: column;
  background: #fafaf7;
}

/* Top-of-page header */
.sol-head {
  padding: 18px 28px 0; flex-shrink: 0;
}
.sol-eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: #8a8d99; margin-bottom: 6px;
}
.sol-eyebrow .pulse {
  width: 6px; height: 6px; border-radius: 50%; background: #b88800;
  animation: ph-pulse 1s ease-in-out infinite;
}
@keyframes ph-pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

.sol-h1 {
  font-size: 22px; font-weight: 700; line-height: 1.2; color: #1d1f27;
  margin: 0 0 4px; letter-spacing: -0.01em;
}
.sol-sub {
  font-size: 13px; color: #6b6e7a; margin: 0 0 16px; max-width: 760px; line-height: 1.5;
}
.sol-sub strong { color: #3a3d4a; font-weight: 500; }

.sol-toolbar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-top: 1px solid #e8e3d5;
  font-size: 13px;
}
.toolbar-group { display: flex; align-items: center; gap: 6px; }
.toolbar-divider { width: 1px; height: 18px; background: #e8e3d5; }

.scope-toggle {
  display: inline-flex; padding: 2px; background: #fbfbf6;
  border: 1px solid #e8e3d5; border-radius: 6px;
  position: relative;
}
.scope-toggle button {
  background: transparent; border: none; color: #6b6e7a;
  font-family: var(--font-sans); font-size: 12.5px; font-weight: 500;
  padding: 4px 10px; border-radius: 4px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.scope-toggle button:hover { color: #3a3d4a; }
.scope-toggle button.active { background: #fff4d6; color: #b88800; }
.scope-toggle .pill {
  background: rgba(0, 0, 0, 0.048); color: inherit;
  font-family: var(--font-mono); font-size: 10px; padding: 1px 5px; border-radius: 9999px;
}

.t-btn {
  background: transparent; border: 1px solid #e8e3d5; color: #3a3d4a;
  font-family: var(--font-sans); font-size: 12.5px; font-weight: 500;
  padding: 5px 10px; border-radius: 4px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.t-btn:hover { background: #f4f1e8; border-color: #d4ccb8; }
.t-btn.ghost { border-color: transparent; color: #6b6e7a; }
.t-btn.ghost:hover { color: #1d1f27; background: #f4f1e8; }
.t-btn .kbd {
  font-family: var(--font-mono); font-size: 10px; color: #8a8d99;
  border: 1px solid #e8e3d5; border-radius: 3px; padding: 0 4px; line-height: 14px;
}

.search-input {
  flex: 1; min-width: 0; background: #fbfbf6; border: 1px solid #e8e3d5;
  border-radius: 4px; padding: 5px 10px;
  color: #1d1f27; font-size: 12.5px; font-family: var(--font-sans);
  outline: none; transition: border-color 100ms ease;
}
.search-input::placeholder { color: #a8acb8; }
.search-input:focus { border-color: #b88800; }

.tabs { display: flex; gap: 2px; }
.tab {
  background: transparent; border: none; color: #6b6e7a;
  font-family: var(--font-sans); font-size: 13px; font-weight: 500;
  padding: 6px 12px; border-radius: 4px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; position: relative;
}
.tab:hover { color: #1d1f27; background: #f4f1e8; }
.tab.active { color: #b88800; background: #fff4d6; }
.tab .count {
  font-family: var(--font-mono); font-size: 10.5px; color: inherit; opacity: 0.7;
  background: rgba(0, 0, 0, 0.036); padding: 1px 5px; border-radius: 9999px;
}

/* ============== Priority chip ============== */
.pchip {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  height: 18px; padding: 0 6px; border-radius: 3px; letter-spacing: 0.04em;
}

/* ============== Layout: KANBAN ============== */
.kanban-wrap {
  flex: 1; min-height: 0; padding: 12px 28px 20px;
  display: flex; gap: 14px; overflow-x: auto;
}
.col {
  flex: 1; min-width: 320px; max-width: 460px;
  display: flex; flex-direction: column; min-height: 0;
  background: #ffffff; border: 1px solid #e8e3d5; border-radius: 8px;
}
.col-head {
  padding: 12px 14px 10px; display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid #e8e3d5;
}
.col-title { font-size: 13px; font-weight: 600; color: #1d1f27; }
.col-count {
  font-family: var(--font-mono); font-size: 10.5px; color: #8a8d99;
  background: #f4f1e8; border-radius: 9999px; padding: 1px 7px;
}
.col-spacer { flex: 1; }
.col-icon {
  width: 22px; height: 22px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.col-icon.ready    { background: rgba(47, 158, 68, 0.21000000000000002); color: #2f9e44; }
.col-icon.feedback { background: rgba(184, 136, 0, 0.21000000000000002); color: #b88800; }
.col-icon.reports  { background: rgba(107, 110, 122, 0.27); color: #3a3d4a; }
.col-blurb {
  font-size: 11.5px; color: #8a8d99; padding: 8px 14px 0;
  font-family: var(--font-mono); border-top: 1px dashed #e8e3d5;
}
.col-body { flex: 1; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 8px; }

/* ============== Card ============== */
.card {
  background: #fbfbf6; border: 1px solid #e8e3d5; border-radius: 6px;
  padding: 10px 12px 11px; cursor: pointer; transition: border-color 80ms ease, background 80ms ease;
  position: relative;
}
.card:hover { background: #f4f1e8; border-color: #d4ccb8; }
.card.selected { border-color: #b88800; background: #f4f1e8; }

.card-row { display: flex; align-items: center; gap: 8px; }
.card-meta-row { margin-bottom: 6px; }
.card-id {
  font-family: var(--font-mono); font-size: 10.5px; color: #8a8d99;
}
.card-age {
  font-family: var(--font-mono); font-size: 10.5px; color: #a8acb8; margin-left: auto;
}
.card-title {
  font-size: 13px; line-height: 1.4; color: #1d1f27; font-weight: 500;
  margin: 4px 0 8px; text-wrap: pretty;
}
.card-foot { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.card-repo {
  font-family: var(--font-mono); font-size: 10.5px; color: #6b6e7a;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0;
}
.card-stats {
  font-family: var(--font-mono); font-size: 10.5px; color: #8a8d99;
  display: inline-flex; align-items: center; gap: 6px;
}
.card-stats .add { color: #2f9e44; }
.card-stats .del { color: #d8503a; }
.card-confidence {
  font-family: var(--font-mono); font-size: 10px; color: #8a8d99;
  display: inline-flex; align-items: center; gap: 4px;
}
.confidence-bar {
  width: 32px; height: 3px; border-radius: 2px; background: #e8e3d5; overflow: hidden;
}
.confidence-bar > span { display: block; height: 100%; background: #2f9e44; }
.confidence-bar.med > span { background: #b88800; }
.confidence-bar.low > span { background: #d8503a; }

.signal-strip {
  display: flex; gap: 4px; margin-top: 7px;
}
.signal-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: #ffffff; border: 1px solid #e8e3d5; border-radius: 9999px;
  padding: 1px 7px; font-size: 10.5px; color: #3a3d4a;
}
.signal-pill .dot { width: 5px; height: 5px; border-radius: 50%; }

.reviewers { display: inline-flex; }
.reviewers .av {
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 9px; font-weight: 700;
  border: 1.5px solid #fbfbf6; margin-left: -5px;
}
.reviewers .av:first-child { margin-left: 0; }
.card.selected .reviewers .av { border-color: #f4f1e8; }

/* ============== Layout: LIST ============== */
.list-wrap { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 28px 20px; }
.list-section { margin-top: 16px; }
.list-section-head {
  display: flex; align-items: center; gap: 10px; padding: 4px 0 8px;
}
.list-section-head .col-icon { width: 24px; height: 24px; }
.list-section-head h3 { margin: 0; font-size: 14px; font-weight: 600; color: #1d1f27; }

.list-row {
  display: grid;
  grid-template-columns: 28px 1fr auto auto auto auto auto;
  column-gap: 12px;
  row-gap: 4px;
  align-items: center;
  padding: 10px 12px; border-radius: 6px; cursor: pointer;
  border: 1px solid #e6dfd0;
  background: #fff;
  position: relative;
  min-width: 0;
}
.list-row > * { min-width: 0; }
.list-row:hover { background: #fbfbf6; border-color: #d4ccb8; }
.list-row.selected { background: #f4f1e8; border-color: #b88800; }
.list-rows { display: flex; flex-direction: column; gap: 6px; }

/* Container-query-driven narrow mode for the list, used when the detail pane is open */
.list-narrow .list-row {
  grid-template-columns: 28px 1fr auto auto;
  column-gap: 10px;
}
.list-narrow .list-row .col-hide-narrow { display: none; }
.list-narrow .list-row .lr-title .m { font-size: 10px; gap: 6px; }
.list-row .lr-title { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.list-row .lr-title .t {
  font-size: 13.5px; color: #1d1f27; font-weight: 500; line-height: 1.4;
  text-wrap: pretty;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.list-row .lr-title .d {
  font-size: 12px; color: #6b6e7a; line-height: 1.5;
  text-wrap: pretty;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 1px;
}
.list-row.comfortable .lr-title .d { -webkit-line-clamp: 3; }
.list-row .lr-title .m {
  font-family: var(--font-mono); font-size: 10.5px; color: #8a8d99;
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.list-row .lr-title .m .sep { color: #d4ccb8; }

/* Compact stats inside list-row */
.list-row .card-stats { font-family: var(--font-mono); font-size: 11px; gap: 5px; }
.list-row .card-confidence { font-size: 10.5px; }
.list-row .reviewers { gap: 2px; }

/* Action buttons in list-row */
.list-row .row-actions {
  display: inline-flex; align-items: center; gap: 6px;
}
.list-row .row-actions .inline-merge,
.list-row .row-actions .inline-review {
  font-size: 11.5px; padding: 4px 10px;
}
.list-row .row-actions .inline-dismiss {
  width: 24px; height: 24px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; line-height: 1;
}

/* Comfortable density: more breathing room + show impact preview */
.list-row.comfortable { padding: 14px 14px; }
.list-row.comfortable .lr-title .t { font-size: 14px; -webkit-line-clamp: 3; }
.list-row .lr-impact {
  grid-column: 2 / -1;
  font-size: 12px; color: #6b6e7a; line-height: 1.5;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed #e8e3d5;
}
.list-row.has-impact { padding-bottom: 12px; }

/* ============== Detail panel ============== */
.detail {
  width: 540px; flex-shrink: 0; background: #ffffff;
  border-left: 1px solid #e8e3d5; display: flex; flex-direction: column; min-height: 0;
}

/* ============== Detail in scene/full-page mode ============== */
.detail.scene {
  width: auto; flex: 1; min-width: 0;
  border-left: none;
  background: transparent;
}
.detail.scene .dt-head {
  padding: 8px 32px 16px;
  border-bottom: 1px solid #e8e3d5;
  max-width: 1100px; width: 100%;
  margin: 0 auto; box-sizing: border-box;
}
.detail.scene .dt-title { font-size: 26px; line-height: 1.15; margin: 4px 0 12px; letter-spacing: -0.01em; }
.detail.scene .dt-meta { font-size: 13px; }
.detail.scene .dt-actions { margin-top: 18px; }
.detail.scene .dt-tabs {
  padding: 0 32px;
  max-width: 1100px; margin: 0 auto; width: 100%; box-sizing: border-box;
  background: transparent;
  border-bottom: 1px solid #e8e3d5;
}
.detail.scene .dt-body {
  max-width: 1100px; width: 100%; margin: 0 auto; box-sizing: border-box;
}
.detail.scene .dt-section { padding: 20px 32px; }

/* Scene top bar (breadcrumb + back) */
.scene-topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 32px 6px;
  max-width: 1100px; width: 100%; margin: 0 auto; box-sizing: border-box;
  font-size: 12.5px; color: #6b6e7a;
  flex-shrink: 0;
}
.scene-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: none; cursor: pointer;
  color: #6b6e7a; font: inherit; padding: 4px 6px 4px 0; border-radius: 4px;
}
.scene-back:hover { color: #1d1f27; }
.scene-back svg { color: #8a8d99; }
.scene-back:hover svg { color: #1d1f27; }
.scene-crumb-sep { color: #c5beae; font-size: 12px; }
.scene-crumb-tab { color: #6b6e7a; }
.scene-crumb-id {
  font-family: var(--font-mono); font-size: 11.5px; color: #8a8d99;
  background: #f4f1e8; padding: 2px 7px; border-radius: 3px;
}
.detail-empty {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center;
}
.detail-empty img { width: 84px; opacity: 0.85; }
.detail-empty h3 { margin: 0; font-size: 14px; color: #3a3d4a; font-weight: 600; }
.detail-empty p { margin: 0; font-size: 12.5px; color: #8a8d99; max-width: 280px; line-height: 1.5; }

.dt-head {
  padding: 16px 20px 12px; border-bottom: 1px solid #e8e3d5;
  flex-shrink: 0;
}
.dt-eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10.5px; color: #8a8d99;
  margin-bottom: 8px;
}
.dt-id {
  font-family: var(--font-mono); font-size: 10.5px; color: #8a8d99;
  background: #f4f1e8; padding: 1px 6px; border-radius: 3px;
}
.dt-title { font-size: 16px; font-weight: 600; color: #1d1f27; line-height: 1.3; margin: 0 0 10px; text-wrap: pretty; }
.dt-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #6b6e7a; flex-wrap: wrap; }
.dt-meta .branch { font-family: var(--font-mono); font-size: 11.5px; color: #3a3d4a; }
.dt-meta .sep { color: #d4ccb8; }

.dt-actions { display: flex; gap: 6px; margin-top: 14px; }
.dt-merge {
  background: #2f9e44; color: #ffffff; font-weight: 600; font-size: 13px;
  border: none; border-radius: 4px; padding: 7px 14px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.dt-merge:hover { background: #268a3a; }
.dt-merge.merged { background: #1a5a2a; color: #dcefdc; }
.dt-feedback {
  background: #b88800; color: #1a1200; font-weight: 600; font-size: 13px;
  border: none; border-radius: 4px; padding: 7px 14px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.dt-feedback:hover { background: #a37800; }

.dt-body { flex: 1; overflow-y: auto; padding: 0; }

.dt-section { padding: 16px 20px; border-bottom: 1px solid #e8e3d5; }
.dt-section:last-child { border-bottom: none; }
.dt-section-head {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em;
  text-transform: uppercase; color: #6b6e7a; margin-bottom: 10px;
}
.dt-section-head .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 3px; background: #fff4d6;
  color: #b88800; font-size: 10px;
}
.dt-section-body { font-size: 13px; color: #3a3d4a; line-height: 1.5; }
.dt-section-body p { margin: 0 0 8px; }
.dt-section-body p:last-child { margin-bottom: 0; }

/* ============== Evidence widgets ============== */
.evidence-list { display: flex; flex-direction: column; gap: 8px; }
.evidence {
  background: #fbfbf6; border: 1px solid #e8e3d5; border-radius: 6px;
  overflow: hidden;
}
.evidence-head {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px;
  font-size: 12px;
}
.evidence-icon {
  width: 22px; height: 22px; border-radius: 4px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.evidence-icon.error { background: rgba(229, 72, 72, 0.21000000000000002); color: #d8503a; }
.evidence-icon.replay { background: rgba(124, 92, 255, 0.21000000000000002); color: #7c5cff; }
.evidence-icon.issue { background: rgba(29, 74, 255, 0.24); color: #3858d6; }
.evidence-icon.support { background: rgba(31, 138, 91, 0.21000000000000002); color: #1f8a5b; }
.evidence-icon.funnel { background: rgba(184, 136, 0, 0.21000000000000002); color: #b88800; }
.evidence-title { flex: 1; min-width: 0; color: #1d1f27; font-weight: 500; line-height: 1.3; }
.evidence-source { font-family: var(--font-mono); font-size: 10.5px; color: #8a8d99; margin-top: 2px; }
.evidence-count {
  font-family: var(--font-mono); font-size: 11px; color: #b88800; font-weight: 600;
  white-space: nowrap;
}

/* Inline mini chart */
.mini-chart {
  height: 56px; background: #ffffff; border-top: 1px solid #e8e3d5; padding: 4px 8px;
  display: flex; align-items: flex-end; gap: 2px;
}
.mini-chart .bar {
  flex: 1; background: linear-gradient(to top, rgba(216, 80, 58, 0.8999999999999999), rgba(216, 80, 58, 1.35));
  border-radius: 1px 1px 0 0; min-height: 2px;
}

/* Replay strip */
.replay-strip {
  height: 64px; background: #ffffff; border-top: 1px solid #e8e3d5;
  position: relative; overflow: hidden;
}
.replay-track {
  position: absolute; left: 8px; right: 8px; top: 50%; transform: translateY(-50%);
  height: 6px; background: #f4f1e8; border-radius: 3px;
}
.replay-track .seg {
  position: absolute; top: 0; bottom: 0; background: #7c5cff; border-radius: 3px; opacity: 0.85;
}
.replay-meta {
  position: absolute; left: 8px; bottom: 6px; right: 8px;
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px; color: #8a8d99;
}
.replay-thumb {
  position: absolute; left: 8px; top: 8px;
  width: 50px; height: 32px; border-radius: 3px;
  background: linear-gradient(135deg, #e8e3d5, #f4f1e8);
  border: 1px solid #d4ccb8;
  display: flex; align-items: center; justify-content: center; color: #7c5cff; font-size: 12px;
}

/* Issue body */
.issue-body {
  padding: 6px 12px 10px; border-top: 1px solid #e8e3d5; background: #ffffff;
  font-family: var(--font-mono); font-size: 11px; color: #6b6e7a; line-height: 1.5;
}

/* ============== Diff tour ============== */
.tour-strip {
  display: flex; align-items: center; gap: 8px; padding: 10px 0;
  font-size: 12px; color: #3a3d4a;
}
.tour-strip .dot { width: 6px; height: 6px; border-radius: 50%; background: #e8e3d5; }
.tour-strip .dot.active { background: #b88800; }
.tour-strip .step { font-family: var(--font-mono); font-size: 10.5px; color: #8a8d99; }
.tour-strip .nav-btn {
  width: 26px; height: 26px; border-radius: 4px; background: #fbfbf6;
  color: #3a3d4a; border: 1px solid #e8e3d5; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.tour-strip .nav-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.tour-strip .nav-btn:hover:not(:disabled) { background: #fff4d6; border-color: #d4ccb8; }

.tour-card {
  background: #ffffff; border: 1px solid #e8e3d5; border-radius: 6px;
  overflow: hidden; margin-top: 4px;
}
.tour-narration {
  padding: 10px 12px; font-size: 12.5px; color: #3a3d4a; line-height: 1.5;
  background: linear-gradient(90deg, rgba(184, 136, 0, 0.09), transparent);
  border-left: 2px solid #b88800;
  display: flex; gap: 10px; align-items: flex-start;
}
.tour-narration .hh-ico {
  width: 22px; height: 22px; border-radius: 50%; background: #b88800;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #1a1200; font-size: 12px; font-weight: 700;
}
.tour-file {
  font-family: var(--font-mono); font-size: 10.5px; color: #6b6e7a;
  padding: 7px 12px; background: #fbfbf6; border-top: 1px solid #e8e3d5;
  display: flex; align-items: center; gap: 6px;
}
.tour-file .fileln { color: #3a3d4a; }
.tour-file .stats { margin-left: auto; }
.tour-file .add { color: #2f9e44; }
.tour-file .del { color: #d8503a; }
.diff-pre {
  margin: 0; padding: 6px 0; background: #fafaf7;
  font-family: var(--font-mono); font-size: 11.5px; color: #3a3d4a;
  overflow-x: auto;
}
.diff-line { display: flex; padding: 0 12px; }
.diff-line.add { background: rgba(47, 158, 68, 0.15000000000000002); color: #dcefdc; }
.diff-line.del { background: rgba(216, 80, 58, 0.15000000000000002); color: #7a3a30; }
.diff-line.context { color: #6b6e7a; }
.diff-marker { width: 14px; flex-shrink: 0; opacity: 0.7; }
.diff-lineno { width: 28px; flex-shrink: 0; color: #a8acb8; text-align: right; padding-right: 8px; }

/* ============== Reviewers chips ============== */
.rev-row { display: flex; flex-direction: column; gap: 8px; }
.rev-card {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  background: #fbfbf6; border: 1px solid #e8e3d5; border-radius: 6px;
}
.rev-card .av {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-weight: 700;
}
.rev-name { font-size: 13px; color: #1d1f27; font-weight: 500; }
.rev-reason { font-size: 11.5px; color: #8a8d99; line-height: 1.4; margin-top: 2px; font-family: var(--font-mono); }
.rev-badge {
  font-family: var(--font-mono); font-size: 10px; color: #b88800;
  background: #fff4d6; padding: 1px 6px; border-radius: 3px; margin-left: auto;
}

/* ============== Reports ============== */
.report-card {
  background: #fbfbf6; border: 1px solid #e8e3d5; border-radius: 6px;
  padding: 12px 14px; cursor: pointer; position: relative;
}
.report-card:hover { background: #f4f1e8; border-color: #d4ccb8; }
.report-card.selected { border-color: #b88800; }
.report-status {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  padding: 1px 6px; border-radius: 3px; text-transform: uppercase; letter-spacing: 0.04em;
}
.report-status.needs-input    { background: rgba(184, 136, 0, 0.24); color: #b88800; }
.report-status.non-actionable { background: rgba(107, 110, 122, 0.24); color: #6b6e7a; }
.report-status.researching    { background: rgba(56, 88, 214, 0.24); color: #3858d6; }
.report-status.ready          { background: rgba(47, 158, 68, 0.24); color: #2f9e44; }
.report-status.failed         { background: rgba(229, 72, 72, 0.24); color: #d8503a; }

/* Researching gets a subtle pulse */
.report-status.researching::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: #3858d6;
  animation: ph-pulse 1.6s ease-in-out infinite;
}
.report-status.failed::before    { content: "✕"; font-weight: 700; }
.report-status.ready::before     { content: "✓"; font-weight: 700; }
.report-status.needs-input::before { content: "?"; font-weight: 700; }

/* Progress bar for in-progress reports */
.report-progress {
  height: 3px; background: #e8e3d5; border-radius: 9999px; overflow: hidden;
  margin-top: 8px;
}
.report-progress > span {
  display: block; height: 100%; background: linear-gradient(90deg, #3858d6, #7c5cff);
  border-radius: 9999px;
  animation: shimmer 2s ease-in-out infinite;
}
@keyframes shimmer { 0%,100% { opacity: 0.7; } 50% { opacity: 1; } }

/* ============== Filter bar (search + signal source + status) ============== */
.filter-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 28px 0;
}
.search-wrap {
  position: relative; display: inline-flex; align-items: center;
  flex: 1; min-width: 220px; max-width: 420px;
}
.search-wrap .ico {
  position: absolute; left: 10px; color: #a8acb8; pointer-events: none;
  font-size: 13px;
}
.filter-search {
  width: 100%;
  background: #fbfbf6; border: 1px solid #e8e3d5; border-radius: 5px;
  color: #1d1f27; font-family: var(--font-sans); font-size: 12.5px;
  padding: 7px 30px 7px 30px; outline: none;
  transition: border-color 100ms ease;
}
.filter-search:focus { border-color: #b88800; }
.filter-search::placeholder { color: #a8acb8; }
.search-wrap .clear {
  position: absolute; right: 6px; background: transparent; border: none; color: #a8acb8;
  cursor: pointer; font-size: 12px; padding: 4px;
}
.search-wrap .clear:hover { color: #1d1f27; }

.filter-group {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px; background: #ffffff; border: 1px solid #e8e3d5; border-radius: 5px;
}
.filter-group .label {
  font-family: var(--font-mono); font-size: 10px; color: #8a8d99;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 0 6px 0 8px;
}
.filter-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: transparent; border: none; color: #6b6e7a;
  font-family: var(--font-sans); font-size: 11.5px; font-weight: 500;
  padding: 4px 8px; border-radius: 3px; cursor: pointer;
  transition: background 80ms, color 80ms;
}
.filter-chip:hover { color: #1d1f27; background: #fbfbf6; }
.filter-chip.active { color: #1d1f27; background: #f4f1e8; }
.filter-chip.active.signal-error { color: #d8503a; box-shadow: inset 0 0 0 1px rgba(216, 80, 58, 0.44999999999999996); }
.filter-chip.active.signal-replay { color: #7c5cff; box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.44999999999999996); }
.filter-chip.active.signal-issue { color: #3858d6; box-shadow: inset 0 0 0 1px rgba(56, 88, 214, 0.44999999999999996); }
.filter-chip.active.signal-support { color: #1f8a5b; box-shadow: inset 0 0 0 1px rgba(31, 138, 91, 0.44999999999999996); }
.filter-chip.active.signal-funnel { color: #b88800; box-shadow: inset 0 0 0 1px rgba(184, 136, 0, 0.44999999999999996); }
.filter-chip .dot {
  width: 6px; height: 6px; border-radius: 50%;
}
.filter-chip .num {
  font-family: var(--font-mono); font-size: 9.5px; color: #8a8d99;
  background: #ffffff; border-radius: 3px; padding: 1px 4px;
}
.filter-chip.active .num { color: #3a3d4a; background: #e8e3d5; }

.filter-empty {
  padding: 32px; text-align: center; color: #8a8d99; font-size: 13px;
}
.filter-empty button {
  margin-top: 10px; background: transparent; border: 1px solid #e8e3d5;
  color: #3a3d4a; padding: 6px 12px; border-radius: 4px; cursor: pointer;
  font-size: 12px;
}
.filter-empty button:hover { border-color: #b88800; color: #b88800; }

/* ============== Source dropdown ============== */
.src-dd { position: relative; }
.src-trigger {
  display: inline-flex; align-items: center; gap: 8px;
  background: #ffffff; border: 1px solid #e8e3d5; border-radius: 5px;  padding: 6px 10px 6px 10px; cursor: pointer;
  font-family: var(--font-sans); font-size: 12.5px; color: #1d1f27;
  transition: border-color 100ms ease, background 100ms ease;
  height: 32px;
}
.src-trigger:hover { border-color: #d4ccb8; background: #fbfbf6; }
.src-trigger.has-selection { border-color: #b88800; background: #fff4d6; }
.src-trigger .src-icon { color: #8a8d99; font-size: 13px; }
.src-trigger .src-label {
  font-family: var(--font-mono); font-size: 10px; color: #8a8d99;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.src-trigger .src-value { font-weight: 500; }
.src-trigger.has-selection .src-value { color: #b88800; }
.src-trigger .src-clear {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 3px;
  color: #8a8d99; font-size: 10px;
  background: rgba(0,0,0,0.05);
}
.src-trigger .src-clear:hover { color: #1d1f27; background: rgba(0,0,0,0.1); }
.src-trigger .src-caret { color: #8a8d99; font-size: 10px; margin-left: 2px; }

.src-menu {
  position: absolute; top: calc(100% + 4px); left: 0; z-index: 30;
  min-width: 240px; background: #ffffff;
  border: 1px solid #e8e3d5; border-radius: 6px;
  box-shadow: 0 6px 24px rgba(20, 18, 14, 0.10);
  overflow: hidden;
}
.src-menu-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px 6px;
  font-family: var(--font-mono); font-size: 10px; color: #8a8d99;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-bottom: 1px solid #f4f1e8;
}
.src-menu-clear {
  background: transparent; border: none; cursor: pointer;
  font-family: var(--font-mono); font-size: 10px; color: #b88800;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0;
}
.src-menu-clear:hover { text-decoration: underline; }
.src-menu-body { padding: 4px; max-height: 320px; overflow-y: auto; }
.src-option {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: transparent; border: none; cursor: pointer;
  padding: 7px 8px; border-radius: 4px;
  font-family: var(--font-sans); font-size: 12.5px; color: #1d1f27;
  text-align: left;
}
.src-option:hover { background: #fbfbf6; }
.src-option.selected { background: #fff4d6; }
.src-option .src-check {
  width: 14px; flex-shrink: 0; color: #b88800; font-weight: 700; font-size: 12px;
}
.src-option .src-opt-icon {
  width: 18px; flex-shrink: 0; text-align: center; font-size: 12px;
}
.src-option .src-opt-label { flex: 1; min-width: 0; }
.src-option .src-opt-count {
  font-family: var(--font-mono); font-size: 10.5px; color: #8a8d99;
  background: #f4f1e8; padding: 1px 6px; border-radius: 9999px;
}
.src-option.selected .src-opt-count { color: #b88800; background: rgba(184,136,0,0.12); }
.src-empty { padding: 12px; color: #8a8d99; font-size: 12px; text-align: center; }
.report-blockers {
  margin-top: 10px; padding: 8px 10px;
  background: #ffffff; border: 1px dashed #d4ccb8; border-radius: 4px;
}
.report-blockers .head {
  font-family: var(--font-mono); font-size: 10px; color: #b88800;
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px;
}
.report-blockers ul { margin: 0; padding-left: 16px; font-size: 12px; color: #3a3d4a; line-height: 1.5; }

/* ============== Tweaks panel custom hooks ============== */
[data-screen-label] { outline: none; }

/* hedgehog floats in detail-empty */
.detail-empty img { animation: zen-float 4s ease-in-out infinite; }
@keyframes zen-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Layout: TRIAGE (full-width focused list, compact) */
.triage-grid {
  flex: 1; min-height: 0; display: grid;
  grid-template-columns: 1fr 540px; min-width: 0;
}
.triage-grid.no-detail { grid-template-columns: 1fr; }
.triage-list {
  overflow-y: auto; padding: 8px 28px 20px; min-width: 0;
}

/* Layout: STREAM – single column high-density feed */
.stream-wrap {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 16px 28px 20px;
  max-width: 920px; width: 100%; margin: 0 auto;
}
.stream-card {
  background: #fbfbf6; border: 1px solid #e8e3d5; border-radius: 8px;
  padding: 14px 16px; margin-bottom: 10px; cursor: pointer;
  transition: border-color 80ms ease;
}
.stream-card:hover { border-color: #d4ccb8; }
.stream-card.selected { border-color: #b88800; }
.stream-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
  flex-wrap: wrap;
}
.stream-kind {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10.5px; padding: 2px 8px;
  border-radius: 9999px; letter-spacing: 0.04em;
}
.stream-kind.ready { background: rgba(47, 158, 68, 0.21000000000000002); color: #2f9e44; }
.stream-kind.feedback { background: rgba(184, 136, 0, 0.21000000000000002); color: #b88800; }
.stream-kind.report { background: rgba(107, 110, 122, 0.27); color: #3a3d4a; }
.stream-title { font-size: 14.5px; color: #1d1f27; font-weight: 600; line-height: 1.35; margin: 0 0 6px; }
.stream-summary { font-size: 12.5px; color: #6b6e7a; line-height: 1.5; }
.stream-foot {
  display: flex; align-items: center; gap: 10px; margin-top: 10px;
  font-size: 11.5px; color: #6b6e7a; flex-wrap: wrap;
}

/* Tour hover dim non-active line */
.diff-line.dim { opacity: 0.35; }

/* ============== Chat with agents ============== */
.chat-list { display: flex; flex-direction: column; gap: 10px; }
.chat-msg { display: flex; gap: 10px; align-items: flex-start; }
.chat-avatar {
  width: 26px; height: 26px; border-radius: 6px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.chat-avatar.agent { background: #fff4d6; color: #b88800; border: 1px solid #f0e2c1; }
.chat-avatar.user { background: #f54d00; color: #fff; }
.chat-body { flex: 1; min-width: 0; }
.chat-meta {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10.5px; color: #8a8d99; margin-bottom: 3px;
}
.chat-name { color: #3a3d4a; font-weight: 600; }
.chat-text {
  font-size: 12.5px; color: #3a3d4a; line-height: 1.55;
  background: #fbfbf6; border: 1px solid #e8e3d5; border-radius: 6px;
  padding: 8px 10px;
}
.chat-msg.user .chat-text { background: #f4f1e8; border-color: #d4ccb8; }

.chat-composer {
  margin-top: 12px; background: #fbfbf6; border: 1px solid #e8e3d5; border-radius: 6px;
  transition: border-color 100ms ease;
}
.chat-composer:focus-within { border-color: #b88800; }
.chat-composer textarea {
  width: 100%; box-sizing: border-box; background: transparent; color: #1d1f27;
  border: none; outline: none; resize: none; font-family: var(--font-sans);
  font-size: 12.5px; line-height: 1.5; padding: 8px 10px; min-height: 44px;
}
.chat-composer textarea::placeholder { color: #a8acb8; }
.chat-toolbar {
  display: flex; align-items: center; gap: 6px; padding: 4px 6px 6px;
  border-top: 1px solid #e8e3d5;
}
.chat-target {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10.5px; color: #6b6e7a;
  background: #ffffff; border: 1px solid #e8e3d5; border-radius: 4px;
  padding: 3px 8px; cursor: pointer;
}
.chat-target:hover { color: #1d1f27; border-color: #d4ccb8; }
.chat-target .dot { width: 6px; height: 6px; border-radius: 50%; }

/* ============== Anti-slop transparency strip ============== */
.trust-strip {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px; background: rgba(47, 158, 68, 0.07500000000000001);
  border: 1px solid rgba(47, 158, 68, 0.27); border-radius: 6px;
  font-size: 11.5px; color: #6b6e7a;
}
.trust-strip .ok { color: #2f9e44; font-weight: 600; }
.trust-strip .item { display: inline-flex; align-items: center; gap: 5px; }
.trust-strip .div { width: 1px; height: 14px; background: #e8e3d5; }
.trust-strip a {
  color: #3a3d4a; text-decoration: none; font-family: var(--font-mono); font-size: 10.5px;
  border-bottom: 1px dotted #d4ccb8;
}
.trust-strip a:hover { color: #b88800; border-color: #b88800; }

/* ============== Auto-merging strip (top of list) ============== */
.automerge-banner {
  margin: 0 28px 12px;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; background: linear-gradient(90deg, rgba(47, 158, 68, 0.15000000000000002), rgba(47, 158, 68, 0.03));
  border: 1px solid rgba(47, 158, 68, 0.33); border-radius: 6px;
}
.automerge-banner .ico {
  width: 24px; height: 24px; border-radius: 5px; background: rgba(47, 158, 68, 0.27);
  color: #2f9e44; display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.automerge-banner .label { font-size: 12.5px; color: #1a5a2a; }
.automerge-banner .label strong { color: #2f9e44; font-weight: 600; }
.automerge-banner .meta {
  font-family: var(--font-mono); font-size: 10.5px; color: #8a8d99; margin-left: auto;
}

/* ============== Dismiss dialog ============== */
.dismiss-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.35); z-index: 90;
  display: flex; align-items: center; justify-content: center;
}
.dismiss-card {
  width: 440px; background: #fbfbf6; border: 1px solid #d4ccb8; border-radius: 8px;
  padding: 18px 18px 14px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.dismiss-card h3 { margin: 0 0 4px; font-size: 15px; color: #1d1f27; }
.dismiss-card .sub { font-size: 12.5px; color: #6b6e7a; margin-bottom: 14px; line-height: 1.5; }
.dismiss-reasons { display: flex; flex-direction: column; gap: 6px; }
.dismiss-reason {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; background: #ffffff; border: 1px solid #e8e3d5;
  border-radius: 5px; cursor: pointer; font-size: 12.5px; color: #3a3d4a;
}
.dismiss-reason:hover { border-color: #b88800; }
.dismiss-reason.selected { border-color: #b88800; background: #f4f1e8; }
.dismiss-reason .marker { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #d4ccb8; flex-shrink: 0; }
.dismiss-reason.selected .marker { background: #b88800; border-color: #b88800; }
.dismiss-card textarea {
  width: 100%; box-sizing: border-box; margin-top: 10px;
  background: #ffffff; border: 1px solid #e8e3d5; border-radius: 4px;
  color: #1d1f27; padding: 8px; font-family: var(--font-sans);
  font-size: 12.5px; resize: vertical; min-height: 60px; outline: none;
}
.dismiss-card textarea:focus { border-color: #b88800; }
.dismiss-actions { display: flex; gap: 8px; margin-top: 14px; justify-content: flex-end; }

/* ============== Detail tabs (Overview / Diff / Chat) ============== */
.dt-tabs {
  display: flex; gap: 2px; padding: 0 16px; border-bottom: 1px solid #e8e3d5;
  background: #fbfbf6; flex-shrink: 0;
}
.dt-tab {
  background: transparent; border: none; color: #6b6e7a;
  font-family: var(--font-sans); font-size: 12.5px; font-weight: 500;
  padding: 9px 12px; cursor: pointer; position: relative;
  display: inline-flex; align-items: center; gap: 6px;
}
.dt-tab:hover { color: #1d1f27; }
.dt-tab.active { color: #b88800; }
.dt-tab.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: #b88800;
}
.dt-tab .badge {
  font-family: var(--font-mono); font-size: 10px; padding: 0 5px; border-radius: 9999px;
  background: #fff4d6; color: inherit;
}
.dt-tab .nudge {
  width: 6px; height: 6px; border-radius: 50%; background: #b88800;
}

/* ============== Kanban: per-kind accent ============== */
.col.ready-col .col-head { border-bottom-color: rgba(47, 158, 68, 0.375); }
.col.review-col .col-head { border-bottom-color: rgba(184, 136, 0, 0.375); }

.card.kind-ready { border-left: 2px solid rgba(47, 158, 68, 0.75); }
.card.kind-review { border-left: 2px solid rgba(184, 136, 0, 0.75); }

/* In-stream merge button */
.inline-merge {
  background: #2f9e44; color: #ffffff; font-weight: 600; font-size: 12px;
  border: none; border-radius: 4px; padding: 5px 10px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
}
.inline-merge:hover { background: #268a3a; }
.inline-merge.merged { background: #1a5a2a; color: #dcefdc; cursor: default; }
.inline-review {
  background: #b88800; color: #1a1200; font-weight: 600; font-size: 12px;
  border: none; border-radius: 4px; padding: 5px 10px; cursor: pointer;
}
.inline-review:hover { background: #a37800; }
.inline-dismiss {
  background: transparent; color: #6b6e7a; font-size: 12px;
  border: 1px solid #e8e3d5; border-radius: 4px; padding: 4px 9px; cursor: pointer;
}
.inline-dismiss:hover { color: #1d1f27; border-color: #d4ccb8; }


/* Reviewer dropdown trigger – icon-only button with optional count badge */
.src-trigger.rev-trigger {
  padding: 6px 9px; gap: 6px; min-height: 32px;
  color: #6b6e7a;
}
.src-trigger.rev-trigger:hover { color: #1d1f27; }
.src-trigger.rev-trigger.has-selection { color: #b88800; background: #fff4d6; border-color: #b88800; }
.src-trigger.rev-trigger svg { display: block; }
.rev-count {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  color: #b88800; background: rgba(184,136,0,0.18);
  padding: 1px 6px; border-radius: 9999px; min-width: 16px; text-align: center;
}


/* "For [...]" scope picker */
.scope-for { display: inline-flex; align-items: center; gap: 8px; position: relative; font-size: 13px; }
.scope-for-prefix { color: #8a8d99; font-weight: 400; padding-right: 2px; }
.scope-for-trigger.open .scope-for-prefix { color: #b88800; }
.scope-for-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid #e8e3d5; border-radius: 6px;
  padding: 4px 8px 4px 6px; cursor: pointer; min-height: 30px;
  color: #1d1f27; font-family: var(--font-sans); font-size: 13px; font-weight: 500;
}
.scope-for-trigger:hover { border-color: #d4ccb8; background: #fbfbf6; }
.scope-for-trigger.open { border-color: #b88800; background: #fff4d6; color: #b88800; }
.scope-for-trigger .pill {
  font-family: var(--font-mono); font-size: 10.5px; color: #8a8d99;
  background: #f4f1e8; padding: 1px 6px; border-radius: 9999px; font-weight: 500;
}
.scope-for-trigger.open .pill { color: #b88800; background: rgba(184,136,0,0.16); }
.scope-for-caret { color: #a8acb8; font-size: 9px; margin-left: 2px; }
.scope-for-av {
  width: 20px; height: 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 9px; font-weight: 700; flex-shrink: 0;
}
.scope-for-value { line-height: 1; }

.scope-for-menu {
  position: absolute; top: calc(100% + 4px); left: 0; z-index: 30;
  min-width: 240px; background: #ffffff;
  border: 1px solid #e8e3d5; border-radius: 6px;
  box-shadow: 0 6px 24px rgba(20, 18, 14, 0.10);
  overflow: hidden; padding: 4px;
}
.scope-for-opt {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: transparent; border: none; cursor: pointer;
  padding: 7px 8px; border-radius: 4px;
  font-family: var(--font-sans); font-size: 12.5px; color: #1d1f27;
  text-align: left;
}
.scope-for-opt:hover { background: #fbfbf6; }
.scope-for-opt.selected { background: #fff4d6; }
.scope-for-opt-check { width: 12px; flex-shrink: 0; color: #b88800; font-weight: 700; font-size: 11px; text-align: center; }
.scope-for-opt-label { flex: 1; min-width: 0; }
.scope-for-opt.selected .scope-for-opt-label { color: #b88800; font-weight: 600; }
.scope-for-opt-count {
  font-family: var(--font-mono); font-size: 10.5px; color: #8a8d99;
  background: #f4f1e8; padding: 1px 6px; border-radius: 9999px;
}
.scope-for-opt.selected .scope-for-opt-count { color: #b88800; background: rgba(184,136,0,0.12); }
.scope-for-sep {
  padding: 8px 10px 4px; margin-top: 4px;
  font-family: var(--font-mono); font-size: 10px; color: #8a8d99;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-top: 1px solid #f4f1e8;
}


/* "Why?" reasoning popover */
.why { position: relative; display: inline-flex; }
.why-trigger {
  display: inline-flex; align-items: center;
  background: transparent; border: none; cursor: pointer;
  color: #8a8d99; font: inherit; font-size: 11px; font-weight: 500;
  padding: 1px 6px; border-radius: 3px;
  text-transform: lowercase; letter-spacing: 0.02em;
  border-bottom: 1px dotted #c5beae;
  line-height: 1.2;
}
.why-trigger:hover { color: #b88800; border-color: #b88800; }
.why-trigger.open { color: #b88800; border-color: #b88800; background: rgba(184,136,0,0.08); }
.why-pop {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 40;
  min-width: 320px; max-width: 420px;
  background: #fff; border: 1px solid #e8e3d5; border-radius: 6px;
  box-shadow: 0 8px 32px rgba(20, 18, 14, 0.12);
  padding: 12px 14px;
  font-family: var(--font-sans); font-size: 12.5px; color: #3a3d4a;
  line-height: 1.55; text-transform: none; letter-spacing: 0;
}
.why-pop::before {
  content: ""; position: absolute; top: -5px; left: 14px;
  width: 10px; height: 10px; background: #fff;
  border-left: 1px solid #e8e3d5; border-top: 1px solid #e8e3d5;
  transform: rotate(45deg);
}
.why-title {
  font-family: var(--font-mono); font-size: 10.5px; color: #8a8d99;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 8px;
}
.why-body p { margin: 0 0 8px; }
.why-body p:last-child { margin-bottom: 0; }
.why-body ul { margin: 0 0 8px; padding-left: 18px; }
.why-body ul li { margin-bottom: 3px; }
.why-body em { font-style: normal; color: #6b6e7a; }
.why-body strong { color: #1d1f27; font-weight: 600; }
.why-foot {
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed #e8e3d5;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11.5px; color: #8a8d99;
}
.why-link {
  background: transparent; border: none; cursor: pointer;
  color: #b88800; font-size: 11.5px; font-weight: 500;
  padding: 0; font-family: inherit;
}
.why-link:hover { text-decoration: underline; }


/* ============== Unread indicator ============== */
.list-row.unread::before,
.report-card.unread::before {
  content: ""; position: absolute;
  top: 12px; right: 12px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #f54d00;
  box-shadow: 0 0 0 3px rgba(245, 77, 0, 0.15);
}
.list-row.unread .lr-title .t { font-weight: 600; color: #1d1f27; }
.list-row:not(.unread) .lr-title .t { color: #6b6e7a; font-weight: 500; }
.report-card.unread .card-title { font-weight: 600; }
.report-card:not(.unread) .card-title { color: #6b6e7a; }

/* ============== Daily briefing ============== */
.briefing {
  margin: 4px 28px 16px;
  background: linear-gradient(180deg, #fffaee 0%, #fffdf6 100%);
  border: 1px solid #f0e2c1;
  border-radius: 10px;
  padding: 16px 20px 16px;
}
.briefing-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap; gap: 8px;
}
.briefing-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10.5px; color: #8a6a00;
  letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600;
}
.briefing-hh {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 6px;
  background: #fff4d6; color: #b88800; border: 1px solid #f0e2c1;
}
.briefing-meta {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10.5px; color: #8a8d99;
}
.briefing-meta a { color: #8a8d99; text-decoration: none; border-bottom: 1px dotted #d4ccb8; }
.briefing-meta a:hover { color: #b88800; border-color: #b88800; }
.briefing-meta-sep { color: #c5beae; }

.briefing-body { font-size: 13.5px; line-height: 1.6; color: #1d1f27; text-wrap: pretty; max-width: 860px; }
.briefing-body p { margin: 0 0 10px; }
.briefing-body p:last-child { margin-bottom: 0; }
.briefing-body strong { color: #1d1f27; font-weight: 600; }

.briefing-signoff {
  font-size: 12.5px; color: #6b6e7a; font-style: italic;
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed #f0e2c1;
}



/* ============== Briefing collapsed ============== */

/* ============== Configure agents modal ============== */
.agents-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20, 18, 14, 0.30);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  backdrop-filter: blur(2px);
}
.agents-modal {
  width: 920px; max-width: 100%; max-height: calc(100vh - 48px);
  background: #fff; border-radius: 12px;
  border: 1px solid #e6dfd0;
  box-shadow: 0 20px 60px rgba(20, 18, 14, 0.22);
  display: flex; flex-direction: column; overflow: hidden;
}
.agents-head {
  padding: 18px 24px 14px;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #f0e2c1;
  background: linear-gradient(180deg, #fffaee 0%, #ffffff 100%);
}
.agents-eyebrow {
  font-family: var(--font-mono); font-size: 10.5px; color: #8a6a00;
  letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600;
  margin-bottom: 4px;
}
.agents-title { font-size: 16px; color: #1d1f27; font-weight: 600; line-height: 1.35; max-width: 600px; }
.agents-subtabs {
  display: flex; gap: 2px; padding: 0 18px;
  border-bottom: 1px solid #f0e2c1;
  background: #fbfbf6;
}
.subtab {
  background: transparent; border: none; cursor: pointer;
  font-family: var(--font-sans); font-size: 13px; font-weight: 500;
  color: #6b6e7a; padding: 12px 14px; position: relative;
  display: inline-flex; align-items: center; gap: 8px;
}
.subtab:hover { color: #1d1f27; }
.subtab.active { color: #b88800; }
.subtab.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: #b88800;
}
.subtab-count {
  font-family: var(--font-mono); font-size: 10px; color: inherit;
  background: rgba(184,136,0,0.12); padding: 1px 6px; border-radius: 9999px;
}
.agents-body { flex: 1; overflow-y: auto; padding: 18px 24px 24px; }

/* shared field styles */
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.field-row { display: flex; gap: 16px; }
.field-row > .field { flex: 1; margin-bottom: 14px; }
.field-label { font-family: var(--font-mono); font-size: 10.5px; color: #8a8d99; letter-spacing: 0.06em; text-transform: uppercase; }
.field-hint { font-size: 11.5px; color: #8a8d99; margin-top: 4px; }
.field-input, .field-textarea {
  background: #fbfbf6; border: 1px solid #e8e3d5; border-radius: 6px;
  padding: 9px 11px; font-family: inherit; font-size: 13.5px; color: #1d1f27;
  outline: none; transition: border-color 100ms ease;
}
.field-textarea { resize: vertical; line-height: 1.55; min-height: 90px; }
.field-input:focus, .field-textarea:focus { border-color: #b88800; background: #fff; }

.seg {
  display: inline-flex; padding: 2px; background: #fbfbf6;
  border: 1px solid #e8e3d5; border-radius: 6px;
}
.seg-btn {
  background: transparent; border: none; cursor: pointer;
  font-family: inherit; font-size: 12.5px; color: #6b6e7a;
  padding: 5px 10px; border-radius: 4px;
}
.seg-btn:hover { color: #1d1f27; }
.seg-btn.active { background: #fff4d6; color: #b88800; font-weight: 600; }

.t-btn.primary { background: #b88800; color: #fff; border-color: transparent; font-weight: 600; }
.t-btn.primary:hover { background: #a37800; }
.t-btn.primary:disabled { opacity: 0.5; cursor: not-allowed; background: #b88800; }

/* ============== Scouts ============== */
.scouts-head, .resp-head, .sources-tab .resp-head, .agents-tab-section-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  margin-bottom: 14px;
}
.scouts-h3, .agents-tab-section-head h3 {
  font-size: 15px; color: #1d1f27; font-weight: 600; margin: 0 0 4px;
}
.scouts-blurb, .agents-tab-section-head p {
  font-size: 12.5px; color: #6b6e7a; line-height: 1.5; margin: 0;
  max-width: 560px;
}

.scout-list { display: flex; flex-direction: column; gap: 10px; }
.scout-card {
  background: #fbfbf6; border: 1px solid #e8e3d5; border-radius: 8px;
  padding: 12px 14px;
}
.scout-card.paused { opacity: 0.65; }
.scout-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.scout-card-title-row { display: flex; align-items: center; gap: 8px; }
.scout-pulse {
  width: 7px; height: 7px; border-radius: 50%; background: #d4ccb8;
}
.scout-pulse.live {
  background: #2f9e44;
  box-shadow: 0 0 0 3px rgba(47,158,68,0.18);
  animation: ph-pulse 1.6s ease-in-out infinite;
}
.scout-card-name { font-size: 14px; color: #1d1f27; font-weight: 600; }
.scout-card-cadence {
  font-family: var(--font-mono); font-size: 10.5px; color: #6b6e7a;
  background: #f4f1e8; padding: 1px 6px; border-radius: 9999px;
}
.scout-card-actions { display: inline-flex; gap: 4px; }
.scout-card-prompt {
  font-size: 13px; color: #3a3d4a; line-height: 1.5;
  margin-bottom: 10px;
  font-style: italic;
  border-left: 2px solid #f0e2c1;
  padding-left: 10px;
  text-wrap: pretty;
}
.scout-card-foot {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 11.5px; color: #6b6e7a;
}
.scout-foot-item { display: inline-flex; align-items: center; gap: 5px; }
.scout-foot-sep { color: #c5beae; }

/* Scout editor */
.scout-editor {}
.scout-editor-head { margin-bottom: 14px; }
.scout-editor-head h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.scout-editor-head .caption { font-size: 12.5px; color: #6b6e7a; }

.source-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  margin-top: 4px;
}
.source-check {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  background: #fbfbf6; border: 1px solid #e8e3d5; border-radius: 6px;
  font-size: 12.5px; color: #3a3d4a; cursor: pointer;
}
.source-check.on { background: #fff4d6; border-color: #f0c869; }
.source-check input { margin: 0; accent-color: #b88800; }
.source-check .source-icon { font-size: 14px; flex-shrink: 0; }

.output-options { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.output-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: #fbfbf6; border: 1px solid #e8e3d5; border-radius: 6px;
  font-size: 13px; color: #1d1f27; cursor: pointer;
}
.output-opt.selected { background: #fff4d6; border-color: #f0c869; }
.output-opt input { accent-color: #b88800; }
.output-opt-hint {
  margin-left: auto;
  font-family: var(--font-mono); font-size: 10px; color: #8a6a00;
  background: rgba(184,136,0,0.12); padding: 1px 6px; border-radius: 9999px;
  letter-spacing: 0.04em; text-transform: uppercase;
}

.scout-editor-foot {
  display: flex; gap: 8px; align-items: center;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid #f0e2c1;
}

/* Responder settings */
.resp-settings { display: flex; flex-direction: column; gap: 14px; }
.resp-row {
  display: flex; gap: 16px; align-items: center; justify-content: space-between;
  padding: 14px; background: #fbfbf6; border: 1px solid #e8e3d5; border-radius: 8px;
}
.resp-row-l { flex: 1; min-width: 0; }
.resp-row-title { font-size: 13.5px; color: #1d1f27; font-weight: 600; margin-bottom: 2px; }
.resp-row-sub { font-size: 12px; color: #6b6e7a; line-height: 1.5; }
.chip-group { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: 11.5px; color: #3a3d4a;
  background: #fff; border: 1px solid #e8e3d5; border-radius: 9999px;
  padding: 3px 10px;
}
.chip-add { cursor: pointer; color: #8a8d99; }
.chip-add:hover { color: #b88800; border-color: #b88800; }

/* Sources */
.source-list { display: flex; flex-direction: column; gap: 8px; }
.source-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: #fbfbf6; border: 1px solid #e8e3d5; border-radius: 8px;
}
.source-row .source-icon { font-size: 16px; }
.source-row-body { flex: 1; min-width: 0; }
.source-row-title { font-size: 13.5px; color: #1d1f27; font-weight: 600; }
.source-row-sub { font-size: 12px; color: #6b6e7a; }
.toggle { position: relative; display: inline-flex; cursor: pointer; }
.toggle input { display: none; }
.toggle-track {
  width: 34px; height: 18px; background: #d4ccb8; border-radius: 9999px;
  position: relative; transition: background 120ms;
}
.toggle-thumb {
  position: absolute; top: 2px; left: 2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.15);
  transition: left 120ms;
}
.toggle input:checked + .toggle-track { background: #2f9e44; }
.toggle input:checked + .toggle-track .toggle-thumb { left: 18px; }

.empty-state {
  padding: 28px 20px;
  border: 1px dashed #e8e3d5; border-radius: 8px;
  text-align: center; color: #6b6e7a; font-size: 13px;
}
.empty-state button { margin-top: 12px; }

/* ============== Agents tab (inside Inbox) ============== */
.agents-tab-body {
  flex: 1; overflow-y: auto; padding: 8px 28px 24px;
  display: flex; flex-direction: column; gap: 24px;
}
.agents-tab-section {}
.agents-tab-section-head { margin-bottom: 12px; }

.scout-list.compact { display: flex; flex-direction: column; gap: 6px; }
.scout-mini {
  background: #fff; border: 1px solid #e6dfd0; border-radius: 6px;
  padding: 10px 14px;
}
.scout-mini.paused { opacity: 0.6; background: #fbfbf6; }
.scout-mini-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: #6b6e7a;
}
.scout-mini-name { font-size: 13.5px; color: #1d1f27; font-weight: 600; }
.scout-mini-cadence {
  font-family: var(--font-mono); font-size: 10.5px; color: #6b6e7a;
  background: #f4f1e8; padding: 1px 6px; border-radius: 9999px;
}
.scout-mini-meta { font-family: var(--font-mono); font-size: 11px; color: #8a8d99; }
.scout-mini-finding {
  font-family: var(--font-mono); font-size: 11px; color: #b88800;
  background: rgba(184,136,0,0.10); padding: 2px 8px; border-radius: 9999px;
}
.scout-mini-prompt {
  font-size: 12px; color: #6b6e7a; line-height: 1.5;
  margin-top: 6px; padding-left: 15px;
  border-left: 2px solid #f0e2c1; font-style: italic;
  text-wrap: pretty;
}
.scout-paused-divider {
  font-family: var(--font-mono); font-size: 10.5px; color: #8a8d99;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 12px 0 4px;
}

.live-resp-list { display: flex; flex-direction: column; gap: 10px; }
.live-resp {
  background: #fff; border: 1px solid #e6dfd0; border-radius: 6px;
  padding: 12px 14px;
}
.live-resp-head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #6b6e7a; margin-bottom: 6px; }
.live-resp-pulse {
  width: 7px; height: 7px; border-radius: 50%; background: #3858d6;
  box-shadow: 0 0 0 3px rgba(56,88,214,0.18);
  animation: ph-pulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
.live-resp-trigger { font-size: 13.5px; color: #1d1f27; font-weight: 600; }
.live-resp-meta { font-family: var(--font-mono); font-size: 11px; color: #6b6e7a; }
.live-resp-eta {
  font-family: var(--font-mono); font-size: 11px; color: #3858d6;
  background: rgba(56,88,214,0.10); padding: 2px 8px; border-radius: 9999px;
}
.live-resp-step { font-size: 12.5px; color: #3a3d4a; line-height: 1.5; margin-bottom: 8px; }
.live-resp-progress { height: 3px; background: #f0e2c1; border-radius: 9999px; overflow: hidden; margin-bottom: 6px; }
.live-resp-progress > span { display: block; height: 100%; background: linear-gradient(90deg, #3858d6, #7c5cff); border-radius: 9999px; animation: shimmer 2s ease-in-out infinite; }
.live-resp-foot {
  display: flex; align-items: center; font-family: var(--font-mono); font-size: 10.5px; color: #8a8d99;
}
.live-resp-foot a { color: #8a8d99; text-decoration: none; border-bottom: 1px dotted #d4ccb8; }
.live-resp-foot a:hover { color: #b88800; border-color: #b88800; }


/* Source row dual-toggle */
.source-row-controls { display: inline-flex; align-items: center; gap: 18px; flex-shrink: 0; }
.source-control {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
}
.source-control-label {
  font-family: var(--font-mono); font-size: 9.5px; color: #8a8d99;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.toggle.disabled { opacity: 0.35; cursor: not-allowed; }
.source-foot-note {
  margin-top: 16px; padding: 10px 14px;
  background: #fbfbf6; border: 1px dashed #e8e3d5; border-radius: 6px;
  font-size: 12px; color: #6b6e7a; line-height: 1.5;
}


/* MCP sections, source-row tags, link buttons */
.mcp-section { margin-top: 16px; }
.mcp-section:first-child { margin-top: 0; }
.mcp-section-head {
  font-family: var(--font-mono); font-size: 10.5px; color: #8a8d99;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 8px;
  display: inline-flex; align-items: center; gap: 8px;
}
.src-tag {
  display: inline-block; margin-left: 6px;
  font-family: var(--font-mono); font-size: 9.5px;
  color: #8a8d99; background: #f4f1e8;
  padding: 1px 6px; border-radius: 9999px;
  letter-spacing: 0.04em; text-transform: uppercase; vertical-align: middle;
}
.src-tag.connected { color: #1a5a2a; background: rgba(47,158,68,0.14); }
.source-row.available { background: #fff; }
.link-btn {
  background: transparent; border: none; cursor: pointer; padding: 0;
  color: #b88800; font: inherit; font-size: 12px; font-weight: 500;
}
.link-btn:hover { text-decoration: underline; }


/* ============== Floating Inbox chat dock ============== */
.inbox-dock {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  z-index: 90;
  width: min(720px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid #e6dfd0;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(20, 18, 14, 0.14), 0 2px 6px rgba(20, 18, 14, 0.05);
  overflow: hidden;
  font-family: var(--font-sans);
  backdrop-filter: saturate(160%);
}
.inbox-dock-head {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: #fff;
  border-bottom: 1px solid #f0e2c1;
}
.inbox-dock-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 6px;
  background: #fbfbf6; color: #8a8d99; border: 1px solid #e8e3d5;
  flex-shrink: 0;
}
.inbox-dock-title {
  font-size: 13px; color: #3a3d4a; font-weight: 500;
}
.inbox-dock-sub {
  font-family: var(--font-mono); font-size: 10.5px; color: #8a6a00;
  letter-spacing: 0.04em; text-transform: uppercase; font-weight: 500;
}
.inbox-dock-collapse {
  background: transparent; border: none; cursor: pointer;
  font-family: var(--font-mono); font-size: 10.5px; color: #b88800;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 4px 6px; border-radius: 4px;
}
.inbox-dock-collapse:hover { background: rgba(184,136,0,0.10); }
.inbox-dock-min {
  background: transparent; border: none; cursor: pointer;
  color: #8a8d99; font: inherit; font-size: 14px; padding: 0 6px; line-height: 1;
  border-radius: 4px;
}
.inbox-dock-min:hover { color: #1d1f27; background: rgba(0,0,0,0.04); }

.inbox-dock-briefing-wrap { /* direct prose, no scroll, no border – flows into composer */ }
.briefing.in-dock { background: transparent; padding: 12px 16px 6px; }
.briefing.in-dock .briefing-meta { margin-bottom: 6px; font-size: 10px; color: #8a8d99; }
.briefing.in-dock .briefing-body { font-size: 12.5px; line-height: 1.55; color: #1d1f27; }
.briefing.in-dock .briefing-body p { margin: 0 0 6px; }
.briefing.in-dock .briefing-signoff { padding: 0; margin-top: 4px; font-size: 12px; color: #8a8d99; font-style: italic; border: none; }

.inbox-dock-messages {
  max-height: 260px; overflow-y: auto;
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 10px;
  border-bottom: 1px solid #f0e2c1;
}

.inbox-dock-composer {
  padding: 8px 10px 10px;
  background: #fff;
}
.inbox-dock-composer textarea {
  width: 100%; box-sizing: border-box;
  background: #fbfbf6; border: 1px solid #e8e3d5; border-radius: 8px;
  padding: 10px 12px;
  font: inherit; font-size: 13px; color: #1d1f27; line-height: 1.5;
  resize: none; outline: none;
  min-height: 38px; max-height: 140px;
  transition: border-color 100ms;
}
.inbox-dock-composer textarea:focus { border-color: #b88800; background: #fff; }
.inbox-dock-composer textarea::placeholder { color: #8a8d99; }
.inbox-dock-composer-foot {
  display: flex; align-items: center; gap: 8px;
  margin-top: 6px;
}
.inbox-dock-hint {
  font-family: var(--font-mono); font-size: 10px; color: #8a8d99;
}
.inbox-dock-composer-foot .t-btn.primary { margin-left: auto; padding: 5px 12px; font-size: 12px; }

/* Floating FAB (minimized) */
.inbox-dock-fab {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
  z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff;
  border: 1px solid #e6dfd0; border-radius: 8px;
  padding: 8px 16px 8px 10px;
  box-shadow: 0 6px 18px rgba(20, 18, 14, 0.10);
  cursor: pointer;
  font: inherit; font-size: 13px; color: #8a8d99; font-weight: 400;
  transition: transform 100ms, box-shadow 100ms;
  min-width: 360px;
}
.inbox-dock-fab:hover {
  transform: translateX(-50%) translateY(-1px);
  box-shadow: 0 12px 28px rgba(20, 18, 14, 0.18);
  border-color: #b88800;
}
.inbox-dock-fab-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 5px;
  background: #fbfbf6; color: #8a8d99; border: 1px solid #e8e3d5;
}
.inbox-dock-fab-label { padding-right: 4px; }


/* Make briefing the most prominent thing in the dock */
.briefing.in-dock { background: #fff; padding: 14px 16px; }
.briefing.in-dock .briefing-body p:first-child strong { color: #1d1f27; }
.briefing.in-dock .briefing-signoff { color: #8a8d99; font-style: italic; }

/* Pulse on the inbox-dock icon when briefing is open and fresh */



/* Briefing teaser – two-line preview that expands to the full briefing */
.inbox-dock-teaser {
  display: flex; align-items: flex-end; gap: 10px;
  width: 100%;
  padding: 9px 14px 11px;
  background: transparent;
  border: none; border-bottom: 1px solid #f0e2c1;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: background 100ms;
}
.inbox-dock-teaser:hover { background: #fffdf6; }
.inbox-dock-teaser-text {
  flex: 1;
  font-size: 12px; color: #8a8d99; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  text-wrap: pretty;
}
.inbox-dock-teaser-more {
  font-family: var(--font-mono); font-size: 10px; color: #b88800;
  letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600;
  flex-shrink: 0; padding-bottom: 1px;
}
.inbox-dock-teaser:hover .inbox-dock-teaser-more { text-decoration: underline; }


/* ============== Integrations strip (top of Configure agents modal) ============== */
.agents-integrations {
  display: flex; flex-direction: column;
  padding: 6px 18px 14px;
  background: #fff;
  border-bottom: 1px solid #f0e2c1;
}
.integ-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px dashed #f0e2c1;
}
.integ-row:last-child { border-bottom: none; }
.integ-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: #fbfbf6; color: #3a3d4a; border: 1px solid #e8e3d5;
  flex-shrink: 0;
}
.integ-ico.slack { color: #4A154B; background: #fff; }
.integ-body { flex: 1; min-width: 0; }
.integ-title { font-size: 13.5px; color: #1d1f27; font-weight: 600; line-height: 1.3; }
.integ-sub { font-size: 12px; color: #6b6e7a; line-height: 1.45; margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.integ-info {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; border-radius: 50%;
  background: #f4f1e8; color: #8a8d99; font-size: 9px; cursor: help;
  user-select: none;
}
.integ-status {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: #2f9e44; color: #fff; font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}
.integ-action {
  background: #ffe8dc; color: #c94800;
  border: none; border-radius: 6px;
  padding: 7px 12px;
  font: inherit; font-size: 12.5px; font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}
.integ-action:hover { background: #ffd0b8; }


.source-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.source-icon svg { display: block; }


/* ============== Origin chip ============== */
.origin-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 10.5px;
  padding: 1px 7px 1px 5px;
  border-radius: 9999px;
  border: 1px solid currentColor;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.origin-chip svg { flex-shrink: 0; }

/* ============== Scout card sparkline ============== */
.scout-card-spark {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
  padding: 8px 10px;
  background: rgba(56, 88, 214, 0.04);
  border: 1px solid rgba(56, 88, 214, 0.12);
  border-radius: 6px;
}
.scout-spark-label {
  font-family: var(--font-mono); font-size: 10px; color: #6b6e7a;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.scout-spark-total {
  font-family: var(--font-mono); font-size: 11px; color: #3858d6;
  margin-left: auto; font-weight: 600;
}
