/*
  RaccordChat — OpenCode design system
  Single monospaced font, cream canvas, ink-dark, hairline borders.
  Edit this file for visual tweaks; reload the page to see changes.
*/

/* ── Design tokens ────────────────────────── */
:root {
  --radius-lg:        0.2rem;
  --ink:              #43394C;
  --ink-deep:         #0f0000;
  --charcoal:         #302c2c;
  --body-color:       #424245;
  --mute:             #625A69;
  --stone:            #6e6e73;
  --ash:              #9a9898;
  --canvas:           #FCFCFB;
  --surface-soft:     #f8f7f7;
  --surface-card:     #f1eeee;
  --surface-dark:     #201d1d;
  --surface-dark-elv: #302c2c;
  --hairline:        #E8E8E8;
  --hairline-strong:  #646262;
  --on-dark:          #fdfcfc;
  --on-dark-mute:     #9a9898;
  --danger:           #994D4D;
  --danger-hover:     #994D4D;
  --success:          #30d158;

  /* Accent used by badges and inline links */
  --accent:       #65139B;
  --accent-hover: #4d0e75;

  /* Legacy aliases used in component classNames */
  --background: var(--canvas);
  --foreground:  var(--ink);
  --brand:       var(--ink);
  --brand-dark:  var(--ink-deep);
  --line:        var(--hairline);
}

/* ── Base ─────────────────────────────────── 'JetBrains Mono', */
*, *::before, *::after { box-sizing: border-box; }



@font-face {
    font-display: block;
    font-family: "Diatype Variable";
    src: url("https://type.cargo.site/files/Cargo-DiatypePlusVariable.woff2") format("woff2-variations");
    font-style: normal;
    font-weight: 200 1000;
}

<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap" rel="stylesheet">

@font-face {
    font-display: block;
    font-family: "IBM Plex Mono", monospace;
  font-weight: 400;
  font-style: normal;
}



body {
  font-family: "Diatype Variable", 'IBM Plex Mono', ui-monospace, 'SFMono-Regular',
               Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--ink);
  background:#FCFCFB;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }

a { color: inherit; text-decoration: none; }

p {
  color: var(--body-color);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  max-width: none;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: inherit;
  letter-spacing: 0;
  color: var(--ink);
  margin: 0;
}

/* ── Container ────────────────────────────── */
.container-shell {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
}

/* ── Page shells ──────────────────────────── */
.dashboard-page,
.dashboard-detail-page,
.transcript-page,
.new-interview-page,
.participant-interview-page {
  min-height: 100vh;
  background: var(--canvas);
}

/* ── Panel ────────────────────────────────── */
/* Sections are flat hairline-bordered rectangles — no radius, no shadow */
.panel {
  background: white;
  border: 1px solid var(--hairline);
  border-radius: 0;
  box-shadow: none;
}

/* ── Buttons ──────────────────────────────── */
.button-primary,
.button-secondary,
.button-danger {
display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 45px;
    padding: 5px 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 2;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.1s;
}

.button-primary {
  background: #202221;
  color: var(--on-dark);
}

.button-primary:hover:not(:disabled) {
  background: var(--ink-deep);
}

.button-secondary {
  background: var(--canvas);
  color: var(--ink);
  /*border: 1px solid var(--hairline-strong);*/
}

.button-secondary:hover:not(:disabled) {
  background: var(--surface-soft);
}

.button-danger {
    background: var(--canvas);
    color: #994D4D;
   /* border: 1px solid #994D4D;*/
}

.button-danger:hover:not(:disabled) {
  background: #FFCCCC;
}

.button-primary:disabled,
.button-secondary:disabled,
.button-danger:disabled {
  background: var(--surface-card);
  color: var(--ash);
  border-color: transparent;
  cursor: not-allowed;
  opacity: 1;
}

/* ── Form fields ──────────────────────────── */
.field {
  display: block;
  width: 100%;
  height: 40px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.1s, background 0.1s;
}

.field:focus {
  background: var(--canvas);
  border-color: var(--ink);
}

textarea.field {
  height: auto;
  resize: vertical;
  padding: 12px;
}

.label {
  display: block;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 6px;
}

/* ── Badges ───────────────────────────────── */
.badge {
    display: block;
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #65139B;
    /*background: #f8faf8;*/
    align-items: center;
    padding: 7px 9px 1px 0px;
    /*margin-bottom: 4px;*/
}

/* ── Utility classes ──────────────────────── */
.muted { color: var(--mute); }

.mono {
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
}

/* Override Tailwind's font-semibold — keep monospace, no uppercase */
.font-semibold {
  /*font-family: inherit;*/
  font-weight: 700;
  /*font-size: inherit;*/
  text-transform: none;
  letter-spacing: 0;
  color: inherit;
}

/* ── Dashboard shell ──────────────────────── */
.dashboard-shell {
  display: flex;
  min-height: 100vh;
}

.dashboard-left-rail {
  width: 224px;
  flex: 0 0 245px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 12px 12px 24px;
  border-right: 1px solid var(--hairline);
background: #f1f3ee;
}

.dashboard-content {
  min-width: 0;
  flex: 1;
}

.rail-logo-link {
  display: block;
  margin-bottom: 16px;
}

.rail-logo-link img {
  display: block;
  height: auto;
}

.workspace-switcher {
  display: flex;
  width: 100%;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  background: var(--canvas);
  padding: 0 12px;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
}

.workspace-switcher-wrap {
  position: relative;
}

.workspace-switcher span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-menu {
  position: absolute;
  z-index: 10;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: grid;
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--hairline);
  background: var(--canvas);
  padding: 4px;
}

.workspace-menu-item {
  min-width: 0;
  overflow: hidden;
  border-radius: 4px;
  padding: 8px;
  color: var(--mute);
  font-size: 14px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-menu-item:hover,
.workspace-menu-item-active {
  background: var(--surface-soft);
  color: var(--ink);
}

.rail-nav {
  display: grid;
  gap: 5px;
  margin-top: 12px;
}

.rail-nav-item {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 10px;
  border-radius: 3px;
  padding: 0 10px;
  color: var(--mute);
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
}

.rail-nav-item svg {
  flex: 0 0 auto;
  color: var(--ash);
  stroke-width: 1.6;
}

.rail-nav-item:hover {
  background: #E7DFF9;
  color: var(--ink);
}

.rail-nav-item:hover svg {
  color: var(--ink);
}

.rail-nav-item-active {
  background: #E7DFF9;
  color: var(--ink);
}

.rail-nav-item-active svg {
  color: var(--ink);
}

.rail-badge {
  margin-left: auto;
  border-radius: 4px;
  background: var(--surface-card);
  padding: 2px 8px;
  color: var(--body-color);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
}

.rail-section-label {
  margin: 24px 8px 10px;
  color: var(--ash);
    font-family: "IBM Plex Mono", monospace;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rail-bottom {
  margin-top: auto;
}

button.rail-nav-item {
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}

button.rail-nav-item:hover {
  color: var(--ink);
}

/* ── Dashboard headings ───────────────────── */
.page-title {
  font-family: inherit;
  font-size: 35px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  margin-bottom: 8px;
}

.dashboard-page h2,
.dashboard-detail-page h2,
.new-interview-page h2,
.transcript-page h2 {
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

/* ── Interview cards ──────────────────────── */
.dashboard-interview-card {
    position: relative;
    scroll-margin-top: 24px;
    transition: none;
    background: #ffffff;
}

/* Kebab pinned to the card's top-right corner — same placement everywhere. */
.dashboard-interview-card {
    padding-right: 52px;
}
.dashboard-interview-card .row-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
}

.dashboard-interview-card:hover {
  transform: none !important;
  box-shadow: none !important;
}

.dashboard-metric {
    background: var(--surface-soft);
    /* border: 1px solid var(--hairline); */
    border-radius: 5px;
    padding: 10px;
}

/* ── Project overview ─────────────────────── */
.overview-metrics .dashboard-metric {
  min-height: 72px;
}

.guide-health-list,
.activity-list {
  display: grid;
}

.guide-health-row,
.activity-row {
  display: grid;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.guide-health-row {
  grid-template-columns: minmax(180px, 1fr) minmax(360px, auto);
  align-items: center;
}

.guide-health-row:last-child,
.activity-row:last-child {
  border-bottom: 0;
}

.guide-health-row:hover,
.activity-row:hover {
  background: var(--surface-soft);
}

.activity-row {
  gap: 4px;
}

@media (max-width: 960px) {
  .guide-health-row {
    grid-template-columns: 1fr;
  }
}

/* ── Participants list ────────────────────── */
.participants-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.participants-controls {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.segmented-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.segmented-control-item {
  min-height: 32px;
  border-radius: 4px;
  padding: 6px 10px;
  color: var(--mute);
  font-size: 13px;
  font-weight: 500;
}

.segmented-control-item-active {
  background: var(--surface-soft);
  color: var(--ink);
}

.participant-table {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(150px, 1fr) 120px 110px minmax(250px, auto);
}

.participant-table-row {
  display: contents;
}

.participant-table-cell {
  min-width: 0;
  display: flex;
  align-items: center;
  padding-right: 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.participant-table-cell:nth-child(5n + 1) {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-left: 20px;
}

.participant-table-cell:nth-child(5n) {
  padding-right: 20px;
}

.participant-table-row:last-child .participant-table-cell {
  border-bottom: 0;
}

.participant-table-cell > .badge,
.participant-table-cell.badge {
  margin: 0;
}

.participant-table-head .participant-table-cell {
  min-height: 48px;
}

.participant-table-row:not(.participant-table-head) .participant-table-cell {
  min-height: 92px;
}

.participant-table-head {
  color: var(--ash);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.participant-table-sort {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  color: inherit;
}

.participant-table-sort:hover,
.participant-table-sort-active {
  color: var(--ink);
}

.participant-table-sort-indicator {
  opacity: 0;
}

.participant-table-sort:hover .participant-table-sort-indicator,
.participant-table-sort:focus-visible .participant-table-sort-indicator,
.participant-table-sort-active .participant-table-sort-indicator {
  opacity: 1;
}

@media (max-width: 960px) {
  .participants-toolbar {
    flex-direction: column;
  }

  .participants-controls {
    justify-items: start;
  }

  .participant-table {
    grid-template-columns: 1fr;
  }

  .participant-table-head {
    display: none;
  }
}

/* ── Participant chat ─────────────────────── */
.participant-chat {
  width: min(768px, 100%);
}

.participant-chat-header {
  position: sticky;
  top: 0;
  z-index: 1;
}

.participant-chat-window {
  min-height: 58vh;
}

.participant-chat-messages {
  scroll-behavior: smooth;
}

.participant-chat-composer {
  position: sticky;
  bottom: 0;
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
}

.chat-message-row { display: flex; }
.chat-message-row-ai  { justify-content: flex-start; }
.chat-message-row-user { justify-content: flex-end; }

.chat-message-bubble {
  max-width: 86%;
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 16px;
  line-height: 1.5;
}

.chat-message-bubble-ai {
  background: var(--surface-soft);
  color: var(--ink);
  border: 0px solid var(--hairline);
}

/* User bubble uses the dark surface — same as OpenCode TUI mockup treatment */
.chat-message-bubble-user {
  background: var(--surface-dark);
  color: #f1f3ee;
}

.participant-welcome-panel,
.participant-resume-panel {
  max-width: 672px;
}

/* ── Script editor ────────────────────────── */
.new-interview-form  { align-items: start; }
.script-editor-panel,
.script-preview-panel { min-width: 0; }
.script-textarea { line-height: 1.65; }
.script-preview-question { border: 1px solid var(--hairline); }

/* ── Transcript + insights ────────────────── */
.insight-item        { border-color: var(--hairline); }
.insight-notebook,
.transcript-panel    { scroll-margin-top: 24px; }
.coverage-list       { display: grid; gap: 12px; }
.transcript-pre      { line-height: 1.6; font-family: inherit; }

/* ── Inline links ─────────────────────────── */
.participant-link {
  color: var(--ink);
  text-decoration: none;
font-size: 11px;
}









/* ── Login page ───────────────────────────── */
.login-page {
position: relative;
    min-height: 100vh;
    /* background: radial-gradient(ellipse 680px 560px at 50% 44%, #f1f3ee 0%, rgba(252, 249, 244, 0.8) 38%, transparent 68%), radial-gradient(ellipse at 50% 50%, #f5f2ec 0%, #f1f3ee 100%); */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Grain texture — very subtle noise overlay on top of everything */
.login-page::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* Edge vignette — fades deco elements toward the viewport edges */
.login-page::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
  background: radial-gradient(
    ellipse 62% 68% at 50% 45%,
    transparent 28%,
    rgba(244, 242, 239, 0.6) 62%,
    #f4f2ef 88%
  );
}

/* Positioning root — all deco/gif elements are absolute to this */
.login-scene {
  position: relative;
  z-index: 8; /* above vignette (6), below card (10) */
  width: 380px;
}

/* Dotted grid — sibling before .login-scene, behind the entire composition */
.login-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, #9a9288 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  mask-image: radial-gradient(
    ellipse 62% 66% at 50% 46%,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.4) 48%,
    transparent 72%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 62% 66% at 50% 46%,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.4) 48%,
    transparent 72%
  );
      opacity: 0.4;
}

/* Login card sits in normal flow inside the scene */
.login-card {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 48px 40px 36px;
  background: var(--canvas);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.10), 0 2px 8px rgba(0, 0, 0, 0.04);
  border-radius: 4px;
}

.login-logo {
  display: block;
  margin-bottom: 28px;
}

.login-heading {
  font-size: 42px !important;
  font-weight: 700;
  margin-bottom: 28px !important;
  letter-spacing: -0.5px !important;
}

.login-footer {
  margin-top: 24px;
  font-size: 13px;
  color: var(--ash);
  text-align: center;
  position: relative;
  z-index: 10;
}

.login-footer-link {
  color: var(--ink);
  text-decoration: underline;
}

/* ── Deco & GIF shared base ── */
.login-deco,
.login-gif {
  position: absolute;
  z-index: 1;
  filter: sepia(0.15) saturate(0.82);
  mix-blend-mode: multiply;
  will-change: translate;
}

.login-deco img,
.login-gif img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.login-gif {
  overflow: hidden;
}

.login-gif img {
  height: 100%;
  object-fit: cover;
}

/* ── Drift keyframes (subtle float, different directions) ── */
@keyframes driftA {
  0%, 100% { translate: 0px 0px; }
  50%       { translate: 0px -5px; }
}
@keyframes driftB {
  0%, 100% { translate: 0px 0px; }
  50%       { translate: 4px -3px; }
}
@keyframes driftC {
  0%, 100% { translate: 0px 0px; }
  50%       { translate: -3px 4px; }
}
@keyframes driftD {
  0%, 100% { translate: 0px 0px; }
  50%       { translate: 3px 3px; }
}

@keyframes scaleIn {
  0% { scale: 0.4; opacity: 0; }
  100% { scale: 1; opacity: 0.28; }
}

/* ── Individual positions (all relative to .login-scene) ── */
/* Scale encodes distance: closer = 1.0, farther = 0.84            */
/* Adjust positions freely — those are the only values to touch     */

.login-deco-email {
    width: 325px;
    top: -50px;
    left: -180px;
    opacity: 0.35;
    transform: rotate(-2deg) scale(0.93);
    animation: driftA 9s ease-in-out infinite;
}

.login-deco-study {
    width: 370px;
    bottom: -250px;
    left: -296px;
    opacity: 0.28;
    transform: rotate(0deg) scale(0.86);
    animation: driftC 13s ease-in-out infinite 1s;
}

.login-deco-cure {
    width: 320px;
    top: 50%;
    right: -336px;
    opacity: 0.38;
    transform: rotate(-1deg) scale(0.92);
    animation: driftB 11s ease-in-out infinite 2s;
}

.login-gif-primary {
    width: 260px;
    height: 146px;
    top: -70px;
    right: -186px;
    opacity: 0.48;
    transform: rotate(2deg) scale(1.0);
    animation: scaleIn 0.5s ease-out, driftD 8s ease-in-out infinite 0.8s;
}

.login-gif-secondary {
    width: 168px;
    height: 94px;
    bottom: -50px;
    right: -134px;
    opacity: 0.40;
    transform: rotate(357deg) scale(0.96);
    animation: driftA 10s ease-in-out infinite 1.5s;
}

.login-gif-extra1 {
    width: 200px;
    height: 112px;
    top: -230px;
    left: -310px;
    opacity: 0.30;
    transform: rotate(1deg) scale(0.88);
    animation: driftC 12s ease-in-out infinite 3s;
}

.login-gif-extra2 {
    width: 200px;
    height: 112px;
    top: -280px;
    right: -510px;
    opacity: 0.24;
    transform: rotate(-2.5deg) scale(0.83);
    animation: driftB 15s ease-in-out infinite 0.5s;
}

.login-gif-extra3 {
    width: 200px;
    height: 112px;
    bottom: 170px;
    left: -460px;
    opacity: 0.30;
    transform: rotate(2deg) scale(0.88);
    animation: driftA 14s ease-in-out infinite 2.5s;
}

.login-gif-extra4 {
    width: 200px;
    height: 112px;
    bottom: -260px;
    right: -500px;
    opacity: 0.24;
    transform: rotate(-1deg) scale(0.84);
    animation: driftD 11s ease-in-out infinite 1s;
}

/* ── Faded edge elements (left & right) ── */
.login-fade {
    position: absolute;
    z-index: 1;
    overflow: hidden;
    will-change: translate;
}

.login-fade img {
    display: block;
    width: 100%;
    height: auto;
}

/* Left edge elements */
.login-fade-left-1 {
    width: 180px;
    top: 120px;
    left: -890px;
    opacity: 0.2;
    transform: rotate(1deg) scale(0.75) scaleX(-1);
    animation: driftA 12s ease-in-out infinite 0.3s;
}

.login-fade-left-2 {
    width: 150px;
    height: 84px;
    bottom: 0px;
    left: -790px;
    opacity: 0.3;
    transform: rotate(-1.5deg) scale(0.68);
    animation: driftC 16s ease-in-out infinite 1.2s;
}

.login-fade-left-3 {
    width: 160px;
    top: 500px;
    left: -420px;
    opacity: 0.08;
    transform: rotate(2deg) scale(0.70) scaleX(-1);
    animation: driftB 14s ease-in-out infinite 2s;
}

/* Right edge elements */
.login-fade-right-1 {
    width: 170px;
    top: 30px;
    right: -790px;
    opacity: 0.3;
    transform: rotate(-2deg) scale(0.72);
    animation: driftD 13s ease-in-out infinite 0.5s;
}

.login-fade-right-2 {
    width: 140px;
    height: 79px;
    bottom: 50px;
    right: -840px;
    opacity: 0.09;
    transform: rotate(1.5deg) scale(0.65) scaleX(-1);
    animation: driftA 15s ease-in-out infinite 1.8s;
}

.login-fade-right-3 {
    width: 155px;
    top: 480px;
    right: -400px;
    opacity: 0.10;
    transform: rotate(-1deg) scale(0.71);
    animation: driftC 17s ease-in-out infinite 2.3s;
}

@media (max-width: 900px) {
  .login-deco,
  .login-gif { display: none; }
}

.backtopage {
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #686868;
    margin-bottom: 12px;
}


header p {
    margin-top: 8px;
}

/* Participant detail — project tags */
.participant-project-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border: 1px solid var(--line, #e3e3e3);
    border-radius: 999px;
    background: #f8faf8;
}
.participant-project-tag-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #65139B;
    cursor: pointer;
    line-height: 0;
}
.participant-project-tag-remove:hover {
    opacity: 0.7;
}
.participant-notes-field {
    min-height: 320px;
    resize: vertical;
}

/* Tertiary inline link */
.link-tertiary {
        color: #406453;
    font-weight: 600;
    text-decoration: none;
    text-underline-offset: 2px;
}
.link-tertiary:hover {
    text-decoration: underline;
}

.page-subtitle {
  font-size: 16px;
}


.guide-detail-value {
    font-weight: 400;
    color: #6e607b;
}
/* ── Row actions (kebab) menu ─────────────── */
.row-actions {
    position: relative;
    flex: 0 0 auto;
}
.row-actions-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--ash);
    cursor: pointer;
}
.row-actions-trigger svg {
    transform: rotate(90deg);
}
.row-actions-trigger:hover,
.row-actions-trigger[aria-expanded="true"] {
    background: var(--surface-soft);
    color: var(--ink);
}
.row-actions-trigger-plain {
    width: auto;
    height: 45px;
    padding: 0 12px;
    color: var(--danger);
}
.row-actions-trigger-plain svg {
    transform: none;
}
.row-actions-trigger-plain:hover,
.row-actions-trigger-plain[aria-expanded="true"] {
    background: var(--surface-soft);
    color: var(--danger);
}
.row-actions-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    right: 0;
    min-width: 168px;
    display: grid;
    padding: 4px;
    border: 1px solid var(--hairline);
    background: var(--canvas);
}
.row-actions-item {
    width: 100%;
    border: 0;
    border-radius: 4px;
    background: transparent;
    padding: 8px;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    color: var(--mute);
    cursor: pointer;
}
.row-actions-item:hover:not(:disabled) {
    background: var(--surface-soft);
    color: var(--ink);
}
.row-actions-item:disabled {
    opacity: 0.6;
    cursor: default;
}
.row-actions-item-danger {
    color: var(--danger);
}
.row-actions-item-danger:hover:not(:disabled) {
    background: #FFEBEB;
    color: var(--danger-hover, var(--danger));
}

/* ── Modal (type-to-confirm) ──────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 0, 0, 0.4);
}
.modal-card {
    width: 100%;
    max-width: 440px;
    padding: 24px;
        border-radius: 3px;
}

/* ── Row removal transition ───────────────── */
.dashboard-interview-card {
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                margin 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.dashboard-interview-card.row-removing {
    opacity: 0;
    transform: translateX(-8px) scale(0.99);
    pointer-events: none;
    margin: 0;
}

.dashboard-interview-list {
    transition: gap 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


.whitespace-pre-wrap p {
    color: white;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    max-width: none;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   Understand / Decide — Insights, Opportunities, Export
   (moved here from src/app/dashboard/insights.css so it is editable)
   ═══════════════════════════════════════════════════════════════════ */

/* ── Insights toolbar + card grid ── */

.insights-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.insight-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 310px;        /* fixed height for all cards */
  overflow: hidden;     /* clip content, no scrolling within card */
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg, 0.2rem);
  background: #fff;
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.insight-card:hover {
/*  border-color: var(--hairline-strong);*/
  box-shadow: 0 2px 10px rgba(15, 0, 0, 0.06);
}

.insight-card-rejected {
  opacity: 0.55;
}

.insight-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.insight-card-title {
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.3;
  height: 3.9em;        /* always reserve exactly 3 lines (3 x 1.3em) */
  flex: none;           /* don't let the fixed-height card squash the title */
  overflow: hidden;     /* titles longer than 3 lines clip cleanly */
}

/* Workflow/stakeholders line between title and summary (opportunity,
   contradiction cards): reserve 2 lines so the summary below always
   starts at the same spot. */
.insight-card > .insight-card-title + .muted {
  height: 3em;          /* 2 lines at line-height 1.5 */
  flex: none;
  overflow: hidden;
}

.insight-card-summary {
  color: var(--body-color);
  font-size: 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.insight-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

/* ── Finding type badges (per cardType) ── */

.finding-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  /*border-radius: 999px;*/
  padding: 2px 9px;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
 /* border: 1px solid var(--hairline);*/
  background: var(--surface-soft);
  color: var(--mute);
  white-space: nowrap;
}

.finding-type-pattern { background: #eef2ff; color: #3730a3; border-color: #dbe1ff; }
.finding-type-critical_signal { background: #fef2f2; color: #991b1b; border-color: #fbd9d9; }
.finding-type-contradiction { background: #fff7ed; color: #9a3412; border-color: #ffe1c2; }
.finding-type-opportunity { background: #ecfdf5; color: #065f46; border-color: #c9f0e0; }
.finding-type-missing_evidence,
.finding-type-validation_gap,
.finding-type-open_question { background: #f8fafc; color: #475569; border-color: #e2e8f0; }
.finding-type-workflow_friction { background: #fdf4ff; color: #86198f; border-color: #f5d8fa; }
.finding-type-outcome { background: #f0f9ff; color: #075985; border-color: #d3ecfa; }

/* ── Review status tags ── */

.status-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 3px;
  padding: 2px 8px;
  font-size: 0.7rem;

  border: 1px solid var(--hairline);
  color: var(--mute);
  background: #fff;
}

.status-tag-accepted { color: #065f46; background: #ecfdf5; border-color: #c9f0e0; }
.status-tag-rejected { color: var(--danger); background: #fef2f2; border-color: #fbd9d9; }
.status-tag-client_ready { color: #3730a3; background: #eef2ff; border-color: #dbe1ff; }
.status-tag-needs_more_discovery { color: #9a3412; background: #fff7ed; border-color: #ffe1c2; }

/* ── Confidence dots + source pills ── */

.confidence-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.confidence-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--hairline);
}

.confidence-dot-filled {
  background: var(--ink);
}

.source-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    /* border: 1px solid var(--hairline); */
    border-radius: 3px;
    background: #E6F6FE;
    padding: 2px 9px;
    font-size: 0.72rem;
    color: #43394C;
    white-space: nowrap;
}

/* ── Contradiction version blocks ── */

.contradiction-versions {
  display: grid;
  gap: 8px;
}

.contradiction-version {
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--accent);
  border-radius: 3px;
  background: var(--surface-soft);
  padding: 8px 10px;
  font-size: 0.82rem;
}

.contradiction-version-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 3px;
}

/* ── Evidence quotes ── */

.evidence-quote {
    /* border-left: 1px solid var(--hairline-strong); */
    padding: 6px 0px;
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--body-color);
}

.evidence-quote-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  font-size: 0.75rem;
  color: var(--mute);
}

/* ── Detail blade (right-side panel) ── */

.blade-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 0, 0, 0.35);
  z-index: 60;
}

.insight-blade {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(560px, 100vw);
  background: var(--canvas);
  border-left: 1px solid var(--hairline);
  box-shadow: -12px 0 40px rgba(15, 0, 0, 0.14);
  z-index: 70;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.blade-section {
    border: 1px solid var(--hairline);
    padding-top: 14px;
    background: #ffffff;
    padding: 15px 15px;
    border-radius: 3px;
}

.blade-section-title {
    font-size: 0.72rem;
    /* font-weight: 700; */
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #65139B;
    margin-bottom: 8px;
}

.blade-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blade-action {
  border: 1px solid var(--hairline);
  border-radius: 3px;
  background: #fff;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.blade-action:hover { border-color: var(--hairline-strong); }
.blade-action-active { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.blade-action-danger:hover { color: var(--danger); border-color: var(--danger); }

/* ── Reasoning chain ── */

.reasoning-item {
  margin-bottom: 20px;
}

.reasoning-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.reasoning-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--body-color);
}

/* ── Readiness banner (analysis status) ── */

.readiness-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0px solid var(--hairline);
  border-radius: var(--radius-lg, 0.2rem);
  background: #E7FDA5;
  padding: 30px 18px;
}

.readiness-banner-ready { border-left: 3px solid #E7FDA5; }
.readiness-banner-running { border-left: 3px solid var(--accent); }
.readiness-banner-failed { border-left: 3px solid var(--danger); }
.readiness-banner-empty { border-left: 3px solid var(--hairline-strong); }

/* ── Scope selector / filters ── */

.scope-panel {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg, 0.2rem);
  background: #fff;
  padding: 16px;
}

.scope-session-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.88rem;
}

.scope-session-row:last-child { border-bottom: none; }

.insight-filter-select {
  border: 1px solid var(--hairline);
  border-radius: 3px;
  background: #fff;
  padding: 6px 10px;
  font-size: 0.82rem;
  color: var(--ink);
}

.spin {
  animation: insights-spin 1s linear infinite;
}

@keyframes insights-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


/* ── Participant branding (ADR-006) ───────── */
/* --pb-* vars are set inline on .participant-interview-page only when the
   project has custom branding; fallbacks preserve the default look. */
.participant-interview-page .badge {
  color: var(--pb-accent, #65139B);
}
.participant-interview-page .button-primary {
  background: var(--pb-primary, #202221);
}
.participant-branding-logo {
  display: block;
  margin: 0 auto 14px;
  max-height: 48px;
  max-width: 180px;
  object-fit: contain;
}
.participant-chat-header .participant-branding-logo {
  margin: 0 0 8px;
  max-height: 28px;
}
.participant-powered-by {
  margin-top: 14px;
  text-align: center;
  font-size: 11px;
  color: var(--ash);
}
