/* Project context: connected work first, real session and file records beside it. */
body.mac-theme .focus-shell #project-workspace-host {
  min-width: 0;
  padding: 28px 30px 38px;
  background: #f6f8f7;
}

body.mac-theme .focus-shell #project-workspace-host .project-workspace {
  --project-ink: #20242b;
  --project-muted: #697580;
  --project-line: #e7ebed;
  --project-accent: #0a7d70;
  grid-template-columns: minmax(196px, 214px) minmax(0, 1fr);
  gap: 16px;
  color: var(--project-ink);
}

body.mac-theme .focus-shell #project-workspace-host .project-navigation {
  background: #fff;
  border: 1px solid #e6e9eb;
  border-radius: 16px;
}

body.mac-theme .focus-shell #project-workspace-host .project-navigation-item.is-selected {
  background: #e7f4f1;
  color: #087267;
  box-shadow: none;
}

body.mac-theme .focus-shell #project-workspace-host .project-navigation-item.is-selected > .project-icon { color: #0a7d70; }
body.mac-theme .focus-shell #project-workspace-host .project-content { min-width: 0; }

body.mac-theme .focus-shell #project-workspace-host .project-heading {
  align-items: start;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 4px 0 13px;
  margin-bottom: 4px;
}

body.mac-theme .focus-shell #project-workspace-host .project-heading h1 { color: #20242b; font-size: clamp(22px, 2.2vw, 29px); }
body.mac-theme .focus-shell #project-workspace-host .project-breadcrumb { color: #79838d; }

body.mac-theme .focus-shell #project-workspace-host .project-heading-actions :is(.project-text-button, .project-refresh-button) {
  min-height: 34px;
  border: 1px solid #e0e5e7;
  border-radius: 9px;
  background: #fff;
  color: #4d5d63;
  padding: 6px 9px;
}

body.mac-theme .focus-shell #project-workspace-host .project-heading-actions :is(.project-text-button, .project-refresh-button):hover {
  border-color: #a9d1c9;
  color: #087267;
}

body.mac-theme .focus-shell #project-workspace-host .project-source-row { margin-bottom: 10px; }
body.mac-theme .focus-shell #project-workspace-host .project-controls { margin-bottom: 16px; border-bottom: 1px solid #dce2e5; }
body.mac-theme .focus-shell #project-workspace-host .project-tabs { gap: 20px; border: 0; background: transparent; }
body.mac-theme .focus-shell #project-workspace-host .project-tab { min-height: 38px; padding: 7px 2px 10px; font-size: 13px !important; }
body.mac-theme .focus-shell #project-workspace-host .project-tab[aria-selected=true] { color: #087267; border-bottom-color: #0a7d70; }

body.mac-theme .focus-shell #project-workspace-host .research-project-overview {
  margin-bottom: 25px;
  border: 1px solid #e5e9ea;
  border-radius: 17px;
  background: #fff;
  overflow: hidden;
}

body.mac-theme .focus-shell #project-workspace-host .research-project-overview-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  padding: 19px 21px 17px;
  border-bottom: 1px solid #e9edef;
}

body.mac-theme .focus-shell #project-workspace-host .research-project-eyebrow {
  display: block;
  color: #7b8790;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .065em;
}

body.mac-theme .focus-shell #project-workspace-host .research-project-overview-head h2 {
  margin: 3px 0 0;
  color: #20242b;
  font-size: 19px;
  line-height: 1.4;
  font-weight: 720;
  letter-spacing: -.025em;
}

body.mac-theme .focus-shell #project-workspace-host .research-project-overview-head p {
  margin: 4px 0 0;
  color: #75818a;
  font-size: 11px;
  line-height: 1.5;
}

body.mac-theme .focus-shell #project-workspace-host .research-project-metrics {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(68px, auto);
  margin: 0;
}

body.mac-theme .focus-shell #project-workspace-host .research-project-metrics > div {
  padding: 0 12px;
  border-left: 1px solid #e7ebed;
  text-align: center;
}

body.mac-theme .focus-shell #project-workspace-host .research-project-metrics dt { color: #81909a; font-size: 10px; white-space: nowrap; }
body.mac-theme .focus-shell #project-workspace-host .research-project-metrics dd { margin: 2px 0 0; color: #263138; font-size: 20px; font-weight: 720; line-height: 1.15; font-variant-numeric: tabular-nums; }

body.mac-theme .focus-shell #project-workspace-host .research-project-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.26fr) minmax(260px, .86fr);
  min-width: 0;
}

body.mac-theme .focus-shell #project-workspace-host .research-project-work,
body.mac-theme .focus-shell #project-workspace-host .research-project-rail-card { min-width: 0; padding: 19px 20px; }

body.mac-theme .focus-shell #project-workspace-host .research-project-work { border-right: 1px solid #e9edef; }
body.mac-theme .focus-shell #project-workspace-host .research-project-rail-card + .research-project-rail-card { border-top: 1px solid #e9edef; }

body.mac-theme .focus-shell #project-workspace-host .research-project-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

body.mac-theme .focus-shell #project-workspace-host .research-project-section-head h3 {
  margin: 2px 0 0;
  color: #273038;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 710;
}

body.mac-theme .focus-shell #project-workspace-host .research-project-section-head h3 > span { color: #83909a; font-size: 12px; font-weight: 550; }

body.mac-theme .focus-shell #project-workspace-host .research-project-primary {
  min-height: 33px;
  padding: 6px 11px;
  border: 1px solid #0a7d70;
  border-radius: 9px;
  background: #0a7d70;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

body.mac-theme .focus-shell #project-workspace-host .research-project-primary:hover { background: #08695f; }
body.mac-theme .focus-shell #project-workspace-host .research-project-work-list { display: grid; gap: 7px; }

body.mac-theme .focus-shell #project-workspace-host .research-project-work-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  width: 100%;
  padding: 12px 11px;
  border: 1px solid #e7ebed;
  border-radius: 11px;
  background: #fff;
  color: #202c31;
  text-align: left;
  box-shadow: none;
}

body.mac-theme .focus-shell #project-workspace-host .research-project-work-row:hover { border-color: #add4ca; background: #fbfefd; }

body.mac-theme .focus-shell #project-workspace-host .research-project-work-main { display: grid; min-width: 0; flex: 1; gap: 3px; }

body.mac-theme .focus-shell #project-workspace-host .research-project-work-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #222d34;
  font-size: 12px;
  font-weight: 690;
}

body.mac-theme .focus-shell #project-workspace-host .research-project-work-preview {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #86919a;
  font-size: 11px;
}

body.mac-theme .focus-shell #project-workspace-host .research-project-work-row > .project-icon { width: 13px; height: 13px; color: #0a7d70; }

body.mac-theme .focus-shell #project-workspace-host .research-project-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  padding: 4px 7px;
  border-radius: 999px;
  background: #f2f5f6;
  color: #677782;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
}

body.mac-theme .focus-shell #project-workspace-host .research-project-state i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
body.mac-theme .focus-shell #project-workspace-host .research-project-state.is-attention { background: #fff0eb; color: #a85c49; }
body.mac-theme .focus-shell #project-workspace-host .research-project-state.is-active { background: #fff6e7; color: #9a711a; }
body.mac-theme .focus-shell #project-workspace-host .research-project-state.is-review { background: #eaf0ff; color: #4268ab; }
body.mac-theme .focus-shell #project-workspace-host .research-project-state.is-done { background: #e8f5ee; color: #33754d; }

body.mac-theme .focus-shell #project-workspace-host .research-project-section-link,
body.mac-theme .focus-shell #project-workspace-host .research-project-small-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: #087267;
  font-size: 11px;
  font-weight: 700;
}

body.mac-theme .focus-shell #project-workspace-host .research-project-section-link { margin-top: 13px; padding: 4px 0; }
body.mac-theme .focus-shell #project-workspace-host .research-project-small-link { flex: none; padding: 2px 0; }
body.mac-theme .focus-shell #project-workspace-host .research-project-section-link .project-icon { width: 12px; height: 12px; }
body.mac-theme .focus-shell #project-workspace-host .research-project-empty { margin: 0; padding: 11px 0; color: #89969d; font-size: 11px; line-height: 1.5; }
body.mac-theme .focus-shell #project-workspace-host .research-project-overflow { margin: 8px 0 0; color: #859099; font-size: 10px; }

body.mac-theme .focus-shell #project-workspace-host .research-project-session-list,
body.mac-theme .focus-shell #project-workspace-host .research-project-final-list { display: grid; }

body.mac-theme .focus-shell #project-workspace-host .research-project-session-row,
body.mac-theme .focus-shell #project-workspace-host .research-project-final-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid #edf0f1;
  background: transparent;
  color: #29353c;
  text-align: left;
}

body.mac-theme .focus-shell #project-workspace-host .research-project-session-row:hover,
body.mac-theme .focus-shell #project-workspace-host .research-project-final-row:hover { color: #087267; background: #f9fcfb; }

body.mac-theme .focus-shell #project-workspace-host .research-project-session-date {
  flex: none;
  min-width: 58px;
  padding: 5px 6px;
  border-radius: 6px;
  background: #f0f4f4;
  color: #66777d;
  text-align: center;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.3;
}

body.mac-theme .focus-shell #project-workspace-host .research-project-session-copy,
body.mac-theme .focus-shell #project-workspace-host .research-project-final-row > span { display: grid; gap: 2px; min-width: 0; flex: 1; }
body.mac-theme .focus-shell #project-workspace-host .research-project-session-copy strong,
body.mac-theme .focus-shell #project-workspace-host .research-project-final-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 680; }
body.mac-theme .focus-shell #project-workspace-host .research-project-session-copy small,
body.mac-theme .focus-shell #project-workspace-host .research-project-final-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #8a969d; font-size: 10px; }
body.mac-theme .focus-shell #project-workspace-host .research-project-session-row > .project-icon,
body.mac-theme .focus-shell #project-workspace-host .research-project-final-row > .project-icon:last-child { width: 12px; height: 12px; color: #83959a; }
body.mac-theme .focus-shell #project-workspace-host .research-project-final-row > .project-icon:first-child { width: 15px; height: 15px; color: #0a7d70; }

body.mac-theme .focus-shell #project-workspace-host .research-project-recording-note {
  margin: 10px 0 0;
  padding: 7px 9px;
  border-radius: 7px;
  background: #eef7f5;
  color: #40766e;
  font-size: 10px;
}

body.mac-theme .focus-shell #project-workspace-host .research-project-detail-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 2px 12px;
  padding-top: 15px;
  border-top: 1px solid #e2e8e9;
}

body.mac-theme .focus-shell #project-workspace-host .research-project-detail-heading h2 { margin: 3px 0 0; color: #29353c; font-size: 17px; font-weight: 700; }
body.mac-theme .focus-shell #project-workspace-host .research-project-detail-heading > span { color: #82909a; font-size: 11px; }

@media (max-width: 1220px) {
  body.mac-theme .focus-shell #project-workspace-host .research-project-overview-head { grid-template-columns: 1fr; }
  body.mac-theme .focus-shell #project-workspace-host .research-project-metrics { grid-auto-columns: 1fr; }
  body.mac-theme .focus-shell #project-workspace-host .research-project-metrics > div:first-child { border-left: 0; }
  body.mac-theme .focus-shell #project-workspace-host .research-project-overview-grid { grid-template-columns: 1fr; }
  body.mac-theme .focus-shell #project-workspace-host .research-project-work { border-right: 0; border-bottom: 1px solid #e9edef; }
  body.mac-theme .focus-shell #project-workspace-host .research-project-rail { display: grid; grid-template-columns: 1fr 1fr; min-width: 0; }
  body.mac-theme .focus-shell #project-workspace-host .research-project-rail-card + .research-project-rail-card { border-top: 0; border-left: 1px solid #e9edef; }
}

@media (max-width: 1000px) {
  body.mac-theme .focus-shell #project-workspace-host { padding: 20px 22px 34px; }
  body.mac-theme .focus-shell #project-workspace-host .project-workspace { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  body.mac-theme .focus-shell #project-workspace-host { padding: 14px 14px 27px; }
  body.mac-theme .focus-shell #project-workspace-host .project-heading { padding: 4px 0 10px; }
  body.mac-theme .focus-shell #project-workspace-host .research-project-overview-head,
  body.mac-theme .focus-shell #project-workspace-host .research-project-work,
  body.mac-theme .focus-shell #project-workspace-host .research-project-rail-card { padding: 15px; }
  body.mac-theme .focus-shell #project-workspace-host .research-project-metrics { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
  body.mac-theme .focus-shell #project-workspace-host .research-project-metrics > div { padding: 8px 4px; border-top: 1px solid #e9edef; border-left: 0; }
  body.mac-theme .focus-shell #project-workspace-host .research-project-metrics > div:nth-child(even) { border-left: 1px solid #e9edef; }
  body.mac-theme .focus-shell #project-workspace-host .research-project-rail { display: block; }
  body.mac-theme .focus-shell #project-workspace-host .research-project-rail-card + .research-project-rail-card { border-left: 0; border-top: 1px solid #e9edef; }
  body.mac-theme .focus-shell #project-workspace-host .research-project-detail-heading { align-items: start; flex-direction: column; gap: 4px; }
  body.mac-theme .focus-shell #project-workspace-host .research-project-work-row { gap: 6px; padding: 10px 8px; }
  body.mac-theme .focus-shell #project-workspace-host .research-project-state { padding: 3px 6px; }
}
