:root {
  --bg: #0b0d0c;
  --panel: #111412;
  --raised: #171b18;
  --line: #29302b;
  --text: #edf3ee;
  --muted: #94a097;
  --green: #8ee5a8;
  --deep: #183822;
  --red: #ff9292;
  --blue: #96bcff;
  --amber: #f0c36c;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, sans-serif;
}
button,
input,
textarea {
  font: inherit;
}
button {
  color: inherit;
}
[hidden] {
  display: none !important;
}
.spacer {
  flex: 1;
}
.signup-cta {
  min-height: calc(100vh - 58px);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  padding: 24px;
}
.signup-intro {
  max-width: 600px;
  text-align: center;
}
.signup-intro h1 {
  margin: 0 0 10px;
  font-size: clamp(24px, 4vw, 38px);
  letter-spacing: -0.035em;
}
.hero-emphasis {
  color: var(--green);
}
.signup-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.signup-graph {
  width: min(1050px, calc(100vw - 32px));
  margin: 0;
  border: 1px solid var(--line);
  background: var(--panel);
}
.signup-graph-tabs {
  display: flex;
  gap: 4px;
  padding: 7px;
  border-bottom: 1px solid var(--line);
}
.signup-graph-panel {
  position: relative;
  overflow-x: auto;
}
.signup-graph-panel svg {
  display: block;
  width: 100%;
  min-width: 760px;
  height: auto;
}
.signup-scale-summary {
  display: flex;
  gap: 14px;
  align-items: baseline;
  min-width: 760px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}
.signup-scale-summary strong {
  color: var(--text);
  font-size: 14px;
}
#signup-scale-graph .scale-edge {
  stroke: #344139;
  stroke-width: 0.8;
}
#signup-scale-graph .scale-edge.core {
  stroke: var(--green);
  stroke-width: 1.7;
}
#signup-scale-graph .scale-node {
  fill: #536158;
  stroke: var(--panel);
  stroke-width: 1;
}
#signup-scale-graph .scale-node.core {
  fill: var(--green);
  stroke: var(--deep);
  stroke-width: 2;
}
#signup-scale-graph .scale-node.selected {
  fill: var(--panel);
  stroke: var(--green);
  stroke-width: 3;
}
#signup-scale-graph .scale-label {
  fill: var(--text);
  stroke: var(--panel);
  stroke-width: 4px;
  paint-order: stroke;
  font: 600 13px Inter, sans-serif;
  user-select: text;
}
.signup-scale-ranking {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-width: 760px;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style-position: inside;
}
.signup-scale-ranking li {
  min-width: 0;
  padding: 7px 9px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
}
.signup-scale-ranking li:last-child {
  border-right: 0;
}
.signup-scale-ranking strong,
.signup-scale-ranking span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.signup-scale-ranking strong {
  margin: 2px 0 0 16px;
  color: var(--text);
  font-size: 10px;
}
.signup-scale-ranking span {
  margin-left: 16px;
  color: var(--green);
}
.signup-graph [data-node-id="probability"] rect {
  fill: var(--deep);
  stroke: var(--green);
  stroke-width: 2;
}
.signup-journal-explainer {
  width: min(1050px, calc(100vw - 32px));
}
.signup-journal-copy {
  max-width: 600px;
  margin: 0 auto 12px;
  text-align: center;
}
.signup-journal-copy h2 {
  margin: 0 0 5px;
  font-size: 17px;
}
.signup-journal-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.signup-journal-preview {
  border: 1px solid var(--line);
  background: var(--panel);
}
.signup-journal-head {
  min-height: 38px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.signup-journal-head span {
  color: var(--muted);
  font: 10px DM Mono, monospace;
}
.signup-journal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
}
.signup-journal-table-wrap {
  overflow-x: auto;
}
.signup-journal-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 11px;
}
.signup-journal-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.signup-journal-table th,
.signup-journal-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #202521;
  text-align: left;
}
.signup-journal-table th {
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
}
.signup-journal-table th:nth-child(2),
.signup-journal-table td:nth-child(2) {
  width: 84px;
  color: var(--muted);
  font-family: DM Mono, monospace;
}
.signup-journal-table th:last-child,
.signup-journal-table td:last-child {
  width: 84px;
  font-family: DM Mono, monospace;
}
.signup-journal-table tr:last-child td {
  border-bottom: 0;
}
.signup-journal-table tr.bottleneck {
  background: #211d12;
  box-shadow: inset 2px 0 var(--amber);
}
.signup-journal-analysis {
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}
.signup-journal-analysis strong {
  color: var(--text);
  font-size: 12px;
}
.signup-journal-label {
  color: var(--amber);
  font: 9px DM Mono, monospace;
  text-transform: uppercase;
}
.signup-duration-bar {
  height: 5px;
  margin-top: 3px;
  background: #29261b;
}
.signup-duration-bar span {
  display: block;
  width: 53%;
  height: 100%;
  background: var(--amber);
}
.signup-cta .primary {
  min-width: 132px;
}
.signup-state {
  min-height: 16px;
  color: var(--red);
  font-size: 12px;
}
.workspace {
  height: calc(100vh - 52px);
  min-height: calc(100vh - 56px);
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  overflow: hidden;
}
.rail {
  height: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  overflow: hidden;
  border-right: 1px solid var(--line);
}
.main-column {
  height: 100%;
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(270px, 46%) minmax(220px, 54%);
  overflow: hidden;
}
.pane-head {
  min-height: 54px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}
.pane-head h1,
.pane-head h2 {
  margin: 2px 0 0;
  font-size: 13px;
}
.eyebrow {
  color: var(--muted);
  font:
    500 9px DM Mono,
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.quiet,
.primary,
.icon,
.tab {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--raised);
  cursor: pointer;
}
.quiet {
  padding: 6px 9px;
  font-size: 11px;
}
.quiet.compact {
  padding: 4px 7px;
  font-size: 9px;
}
.privacy-toggle.active {
  border-color: #4e9c64;
  background: var(--deep);
  color: var(--green);
}
.primary {
  padding: 8px 11px;
  border-color: var(--green);
  background: var(--green);
  color: #07120a;
  font-weight: 700;
}
.primary.full {
  width: 100%;
}
.primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.icon {
  width: 29px;
  height: 29px;
  font-size: 17px;
}
.tab {
  padding: 6px 9px;
  color: var(--muted);
  font-size: 10px;
}
.tab.active {
  color: var(--text);
  background: #242b26;
  border-color: #475149;
}
button:hover {
  border-color: #59675d;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.trail {
  min-height: 31px;
  max-height: 144px;
  padding: 6px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  align-content: flex-start;
  overflow-x: hidden;
  overflow-y: auto;
  border-bottom: 1px solid var(--line);
}
.crumb {
  padding: 3px 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
  cursor: pointer;
}
.crumb:last-child {
  color: var(--text);
}
.crumb.back {
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
}
.queue-summary {
  height: 32px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
  border-bottom: 1px solid var(--line);
}
.queue-summary strong {
  margin-left: auto;
  color: var(--text);
  font:
    500 10px DM Mono,
    monospace;
}
.queue {
  flex: 1;
  min-height: 0;
  padding: 6px;
  overflow: auto;
}
.task {
  width: 100%;
  padding: 9px 8px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 5px;
  align-items: start;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.task:hover {
  background: var(--raised);
}
.task.selected {
  background: var(--deep);
  border-color: #315b3c;
}
.rank {
  padding-top: 2px;
  color: var(--muted);
  font:
    10px DM Mono,
    monospace;
}
.task-body,
.task-card-head,
.task-metrics {
  min-width: 0;
  display: flex;
  align-items: center;
}
.task-body {
  display: grid;
  gap: 5px;
}
.task-card-head {
  gap: 8px;
}
.task-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: var(--text);
}
.score {
  white-space: nowrap;
  color: var(--green);
  font:
    500 10px DM Mono,
    monospace;
}
.task-metrics {
  gap: 12px;
  color: var(--muted);
  font:
    9px DM Mono,
    monospace;
}
.child-count {
  margin-left: auto;
  color: #7d8a80;
}
.pane-state {
  padding: 8px 12px;
  color: var(--muted);
  font:
    10px DM Mono,
    monospace;
}
.pane-state.error,
.save-state.error,
.form-error {
  color: var(--red);
}
.journal {
  position: relative;
  height: 100%;
  min-width: 0;
  background: #0e110f;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.journal-head {
  height: 54px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
.date-nav,
.actor-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}
.date-nav strong {
  min-width: 126px;
  text-align: center;
  font-size: 11px;
}
.save-state {
  color: var(--muted);
  font:
    9px DM Mono,
    monospace;
}
.save-state.saved {
  color: var(--green);
}
.journal-body {
  flex: 1;
  min-height: 0;
  padding: 10px 14px 18px;
  overflow: auto;
}
.journal-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 11px;
}
.journal-table th {
  padding: 7px 8px;
  text-align: left;
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.journal-table th:nth-child(2) {
  width: 76px;
}
.journal-table th:nth-child(3) {
  width: 85px;
}
.journal-table th:nth-child(4) {
  width: 62px;
}
.journal-table th:nth-child(5) {
  width: 78px;
}
.journal-table th:nth-child(6) {
  width: 60px;
}
.journal-table td {
  padding: 8px;
  border-bottom: 1px solid #202521;
  vertical-align: middle;
}
.journal-table tr.current {
  background: #152219;
}
.journal-table tr.selected {
  box-shadow: inset 2px 0 #80d99c;
}
.delete-entry {
  padding: 4px 5px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #d8a3a3;
  font-size: 9px;
}
.delete-entry:hover {
  border-color: #733b3b;
  background: #2b1515;
  color: #ffb7b7;
}
.delete-entry:disabled {
  color: var(--muted);
}
.activity-editor {
  width: 100%;
}
.activity-input,
.activity-display {
  width: 100%;
  min-height: 46px;
  max-height: 78px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--text);
  line-height: 1.35;
  overflow: auto;
}
.activity-input {
  resize: none;
}
.activity-display {
  white-space: pre-wrap;
  cursor: text;
  user-select: text;
}
.activity-display:hover,
.activity-display:focus-visible {
  border-color: #315b3c;
  outline: none;
}
.tag-pill {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.45;
  vertical-align: baseline;
  user-select: text;
}
.tag-pill.activity-tag {
  background: #17354c;
  color: #a9dcff;
}
.tag-pill.project-tag {
  background: #4a2d12;
  color: #ffcb84;
}
.current .activity-input {
  border-color: #315b3c;
  background: #0c120e;
}
.time-input {
  width: 76px;
  padding: 5px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  font:
    10px DM Mono,
    monospace;
}
.created {
  color: var(--muted);
  font:
    10px DM Mono,
    monospace;
}
.actor {
  display: inline-block;
  padding: 3px 5px;
  border-radius: 4px;
  background: #202621;
  color: #c6d0c8;
  font:
    9px DM Mono,
    monospace;
}
.actor.agent {
  background: #17243a;
  color: var(--blue);
}
.author {
  display: inline-block;
  padding: 3px 5px;
  border-radius: 4px;
  background: #252923;
  color: #d5dbd6;
  font:
    9px DM Mono,
    monospace;
  white-space: nowrap;
}
.author.ai {
  background: #322743;
  color: #d7b8ff;
}
.journal-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
}
.hint {
  color: var(--muted);
  font-size: 9px;
}
.journal-empty {
  padding: 22px;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
}
.suggestions {
  position: fixed;
  z-index: 40;
  width: min(420px, calc(100vw - 30px));
  max-height: 230px;
  overflow: auto;
  border: 1px solid #465149;
  border-radius: 7px;
  background: #111713;
  box-shadow: 0 14px 40px #000b;
}
.suggestion {
  width: 100%;
  padding: 7px 9px;
  display: flex;
  gap: 8px;
  border: 0;
  border-bottom: 1px solid #222923;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.suggestion:hover,
.suggestion.selected {
  background: var(--deep);
}
.suggestion strong {
  font:
    500 10px DM Mono,
    monospace;
  color: var(--green);
}
.suggestion span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 10px;
}
.graph-panel {
  min-width: 0;
  min-height: 0;
  padding: 0 12px 8px;
  background: var(--panel);
  overflow: hidden;
}
.graph-head {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.graph-head h2 {
  max-width: 340px;
  margin: 2px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.graph-metrics {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font:
    9px DM Mono,
    monospace;
}
.graph-metrics strong {
  color: var(--text);
  font-weight: 500;
}
.graph-state {
  color: var(--green);
  font:
    9px DM Mono,
    monospace;
}
.network {
  width: 100%;
  height: calc(100% - 70px);
  min-height: 150px;
  display: block;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: radial-gradient(circle, #142219, #0e110f 60%);
}
.network .edge {
  stroke: #47614e;
  stroke-width: 0.7;
  opacity: 0.65;
}
.network .edge-arrow {
  fill: #6f8b77;
}
.network .node {
  fill: #263029;
  stroke: #6c786f;
  stroke-width: 1;
}
.network .node.selected {
  fill: var(--green);
  stroke: #d0f8da;
  stroke-width: 2;
}
.network text {
  fill: #ccd5ce;
  stroke: #0e110f;
  stroke-width: 2.5px;
  paint-order: stroke;
  font:
    7px Inter,
    sans-serif;
  cursor: pointer;
  user-select: text;
}
.network text.selected {
  fill: #e8ffed;
  font-weight: 600;
}
.legend {
  display: flex;
  gap: 8px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
}
.graph-panel.graph-open {
  position: fixed;
  inset: 56px 0 0;
  z-index: 30;
  padding: 0 18px 12px;
  overflow: hidden;
  background: var(--panel);
}
.graph-panel.graph-open .network {
  height: calc(100% - 70px);
}
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  background: #000c;
}
.modal {
  width: min(780px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid #445047;
  border-radius: 9px;
  background: var(--panel);
  box-shadow: 0 20px 70px #000;
}
.modal.small {
  width: min(540px, 100%);
}
.modal-body {
  padding: 14px;
}
.search {
  width: 100%;
  margin: 10px 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0d100e;
  color: var(--text);
}
.data-results {
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 10px;
}
.data-table th,
.data-table td {
  padding: 8px;
  border-bottom: 1px solid #202521;
  text-align: left;
  user-select: text;
}
.data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--muted);
  background: #0d100e;
  font-weight: 500;
}
.data-table.nodes th:first-child,
.data-table.nodes td:first-child {
  width: auto;
}
.data-table.nodes th:not(:first-child),
.data-table.nodes td:not(:first-child) {
  width: 70px;
  text-align: right;
}
.data-table.edges th,
.data-table.edges td {
  width: 50%;
}
.data-table.log th:first-child,
.data-table.log td:first-child {
  width: 150px;
}
.data-table.log th:nth-child(2),
.data-table.log td:nth-child(2) {
  width: 110px;
}
.data-table.log td:last-child {
  color: var(--text);
  font-family: Inter, sans-serif;
}
.data-load-more {
  display: block;
  margin: 9px auto;
}
.data-table td:not(:first-child) {
  color: var(--muted);
  font-family:
    DM Mono,
    monospace;
}
.data-node-select {
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.data-node-select:hover,
.data-node-select:focus-visible {
  color: var(--green);
}
.edge-create {
  padding: 10px 0 0;
}
.edge-create form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}
.edge-create label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 10px;
}
.edge-task-field {
  position: relative;
  display: block;
}
.edge-task-field input {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0d100e;
  color: var(--text);
}
.edge-task-options {
  position: absolute;
  right: 0;
  bottom: calc(100% + 4px);
  left: 0;
  z-index: 4;
  max-height: 190px;
  overflow: auto;
  border: 1px solid #445047;
  border-radius: 6px;
  background: var(--raised);
  box-shadow: 0 10px 28px #000a;
}
.edge-task-option {
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.edge-task-option:last-child {
  border-bottom: 0;
}
.edge-task-option:hover,
.edge-task-option:focus-visible,
.edge-task-option.selected {
  background: var(--deep);
  color: var(--green);
}
.edge-form-state {
  min-height: 17px;
  padding-top: 4px;
  color: var(--muted);
  font-size: 10px;
}
.edge-form-state.error {
  color: var(--red);
}
.edge-form-state.saved {
  color: var(--green);
}
.reconcile-row {
  min-height: 46px;
  padding: 7px 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px auto;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #202521;
  font-size: 10px;
}
.reconcile-row strong {
  overflow: hidden;
  color: var(--amber);
  font: 500 10px DM Mono, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
  user-select: text;
}
.reconcile-row > span:not(.reconcile-actions) {
  color: var(--muted);
}
.reconcile-actions {
  display: flex;
  gap: 5px;
}
.form {
  display: grid;
  gap: 12px;
}
.form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
}
.form input {
  width: 100%;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0d100e;
  color: var(--text);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 10px;
}
@media (max-width: 1050px) {
  .workspace {
    grid-template-columns: 280px 1fr;
  }
}
@media (max-width: 720px) {
  .edge-create form {
    grid-template-columns: 1fr;
  }
  .signup-journal-layout {
    grid-template-columns: 1fr;
  }
  .signup-journal-analysis {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .workspace {
    height: auto;
    display: block;
    overflow: visible;
  }
  .rail {
    height: auto;
    display: block;
    overflow: visible;
    border-right: 0;
  }
  .queue {
    max-height: 280px;
  }
  .journal-head {
    overflow: auto;
  }
  .main-column {
    height: auto;
    display: block;
  }
  .journal {
    height: 430px;
  }
  .graph-panel {
    height: 330px;
  }
  .journal-body {
    padding: 7px;
  }
  .hint {
    display: none;
  }
  .journal-table th:nth-child(4),
  .journal-table td:nth-child(4),
  .journal-table th:nth-child(5),
  .journal-table td:nth-child(5),
  .journal-table th:nth-child(6),
  .journal-table td:nth-child(6) {
    display: none;
  }
}
