:root {
  --bg:#f5f7f8;
  --ink:#182b34;
  --muted:#76838b;
  --line:#e5ebee;
  --green:#146b56;
  --green-light:#e9f3ee;
  --white:#fff;
  --danger:#ad4739;
  --shadow:0 5px 24px #23364305;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:var(--bg);
  font-synthesis:none
}
* {
  box-sizing:border-box
}
body {
  margin:0
}
button,input,textarea {
  font:inherit
}
button,a,input,textarea {
  -webkit-tap-highlight-color:transparent
}
button {
  cursor:pointer
}
button:disabled {
  cursor:wait;
  opacity:.5
}
a {
  color:var(--green)
}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible {
  outline:3px solid #65a994;
  outline-offset:3px
}
button {
  border:0
}
h1,h2,h3,p {
  margin:0
}
.workspace {
  min-height:100vh;
  display:grid;
  grid-template-columns:232px minmax(0,1fr)
}
.sidebar {
  display:flex;
  flex-direction:column;
  padding:30px 22px 20px;
  border-right:1px solid var(--line);
  background:#fff
}
.brand {
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:var(--ink);
  font-size:19px;
  font-weight:740;
  margin-bottom:39px;
  white-space:nowrap
}
.brand small {
  display:block;
  font-size:7px;
  letter-spacing:1.2px;
  color:var(--muted);
  margin-top:5px;
  font-weight:650
}
.brand-mark {
  display:grid;
  place-items:center;
  width:34px;
  height:36px;
  background:var(--green);
  color:#fff;
  border-radius:10px;
  font-size:29px
}
.nav-item {
  display:flex;
  align-items:center;
  gap:12px;
  min-height:43px;
  padding:11px 13px;
  font-size:13px;
  border-radius:8px;
  color:#5c6f78;
  text-decoration:none;
  margin-bottom:6px
}
.nav-item>span:first-child {
  font-size:20px;
  line-height:15px
}
.nav-item.active {
  background:var(--green-light);
  color:var(--green);
  font-weight:650
}
.nav-item:hover {
  background:#f0f5f3
}
.external {
  margin-left:auto
}
.dataset {
  margin-top:36px
}
.section-label {
  font-size:10px;
  letter-spacing:1.2px;
  text-transform:uppercase;
  font-weight:700;
  color:#6b7b83
}
.status {
  display:flex;
  gap:7px;
  align-items:center;
  font-size:12px;
  margin:17px 0;
  color:var(--muted)
}
.status-dot {
  width:6px;
  height:6px;
  border-radius:50%;
  background:currentColor;
  flex-shrink:0
}
.status.ready {
  color:var(--green)
}
.status.error {
  color:var(--danger)
}
.dataset-metrics {
  display:flex;
  gap:28px
}
.dataset-metrics strong {
  display:block;
  font-size:23px;
  font-weight:640;
  font-variant-numeric:tabular-nums;
  letter-spacing:-.7px
}
.dataset-metrics span {
  display:block;
  color:var(--muted);
  font-size:12px;
  margin-top:4px
}
.text-button {
  padding:0;
  background:none;
  font-size:12px;
  color:var(--green);
  margin-top:18px
}
.text-button span {
  margin-left:8px;
  font-size:15px
}
.priority-section {
  margin-top:32px;
  padding-top:26px;
  border-top:1px solid var(--line)
}
.section-description {
  font-size:12px;
  color:var(--muted);
  margin-top:8px
}
.top-nodes {
  margin-top:14px;
  display:grid;
  gap:7px
}
.top-node {
  display:flex;
  align-items:flex-start;
  gap:9px;
  text-align:left;
  padding:10px 7px;
  background:transparent;
  border:1px solid transparent;
  border-radius:7px;
  width:100%;
  color:var(--ink)
}
.top-node:hover,.top-node.selected {
  background:#f5f8f7;
  border-color:#e0eae4
}
.top-rank {
  font-size:12px;
  color:var(--green);
  background:var(--green-light);
  min-width:20px;
  height:20px;
  display:grid;
  place-items:center;
  border-radius:5px
}
.top-copy {
  min-width:0
}
.top-gid {
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  display:block;
  font-size:11px;
  overflow-wrap:anywhere;
  line-height:20px
}
.top-reason {
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
  margin-top:3px
}
.sidebar-note {
  display:flex;
  gap:9px;
  margin-top:auto;
  padding-top:40px;
  color:var(--muted);
  font-size:12px;
  line-height:1.6
}
.note-symbol {
  border:1px solid #a2b0b7;
  border-radius:50%;
  height:14px;
  min-width:14px;
  line-height:12px;
  text-align:center;
  margin-top:2px
}
.main {
  padding:32px 35px 16px;
  min-width:0;
  max-width:1700px;
  width:100%;
  margin:0 auto
}
.site-nav {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px 10px;
  font-size:14px;
  line-height:1.5;
  margin-bottom:16px
}
.site-nav a,.site-nav strong {
  white-space:nowrap
}
.site-nav a {
  color:var(--green);
  font-weight:400
}
.site-nav strong {
  font-weight:700
}
.page-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:29px
}
.eyebrow {
  font-size:9px;
  font-weight:650;
  letter-spacing:1.7px;
  color:var(--muted);
  margin-bottom:8px
}
h1 {
  font-size:27px;
  letter-spacing:-.8px;
  font-weight:650
}
.mode-badge {
  display:inline-flex;
  align-items:center;
  gap:6px;
  border-radius:30px;
  font-size:10px;
  white-space:nowrap;
  padding:8px 11px;
  color:var(--green);
  background:var(--green-light);
  border:1px solid #d8e9df
}
.mode-badge::before {
  content:"";
  width:5px;
  height:5px;
  border-radius:50%;
  background:currentColor
}
.content-grid {
  display:grid;
  grid-template-columns:minmax(360px,1fr) 330px;
  gap:20px;
  align-items:start
}
.panel {
  border:1px solid var(--line);
  background:#fff;
  border-radius:13px;
  box-shadow:var(--shadow);
  min-width:0;
  overflow:hidden
}
.panel-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:21px 23px;
  border-bottom:1px solid var(--line)
}
.panel-header h2 {
  font-size:14px;
  font-weight:650;
  letter-spacing:-.1px
}
.panel-header p {
  font-size:12px;
  color:var(--muted);
  margin-top:5px
}
.panel-title {
  display:flex;
  align-items:center;
  gap:11px
}
.assistant-icon {
  font-size:25px;
  color:var(--green);
  background:var(--green-light);
  width:36px;
  height:36px;
  border-radius:9px;
  display:grid;
  place-items:center
}
.local-label {
  font-size:9px;
  color:#92a2a9;
  letter-spacing:1px
}
.chat-panel {
  display:flex;
  flex-direction:column;
  height:calc(100vh - 151px);
  min-height:530px;
  max-height:950px
}
.messages {
  flex:1;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:24px;
  scroll-behavior:smooth;
  min-height:160px
}
.welcome {
  display:flex;
  min-height:100%;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:20px 5px
}
.welcome-symbol {
  display:grid;
  place-items:center;
  width:61px;
  height:61px;
  font-size:42px;
  color:var(--green);
  background:linear-gradient(145deg,#eef6f0,#f8faf8);
  border:1px solid #e0eae3;
  border-radius:18px;
  transform:rotate(-5deg);
  margin-bottom:25px
}
.welcome h3 {
  font-size:22px;
  letter-spacing:-.5px;
  font-weight:600
}
.welcome p {
  font-size:14px;
  line-height:1.8;
  max-width:330px;
  color:var(--muted);
  margin-top:12px
}
.suggestions {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:12px;
  width:100%
}
.suggestion {
  text-align:left;
  border:1px solid var(--line);
  padding:7px 9px;
  border-radius:8px;
  background:#fff;
  color:#3a505b;
  font-size:13px;
  line-height:1.5;
  display:flex;
  justify-content:space-between;
  gap:8px;
  max-width:100%
}
.suggestion:hover {
  border-color:#a9c8ba;
  background:#fbfdfc
}
.suggestion-arrow {
  color:var(--green);
  font-size:15px
}
.suggestions-note {
  width:100%;
  font-size:12px;
  line-height:1.5
}
.composer {
  flex-shrink:0;
  border-top:1px solid var(--line);
  padding:17px 21px 14px;
  background:#fff
}
.input-row {
  display:flex;
  gap:10px;
  border:1px solid #dce5e8;
  border-radius:10px;
  padding:11px 11px 10px 14px;
  background:#fafcfc;
  align-items:flex-end
}
.input-row:focus-within {
  border-color:#6b9e8c;
  box-shadow:0 0 0 2px #e5f0ea
}
textarea {
  border:0;
  resize:vertical;
  max-height:180px;
  min-height:41px;
  line-height:1.7;
  font-size:14px;
  flex:1;
  width:100%;
  color:var(--ink);
  background:none
}
textarea::placeholder,input::placeholder {
  color:#92a0a8
}
textarea:focus-visible {
  outline:none
}
.send-button {
  display:grid;
  place-items:center;
  background:var(--green);
  color:#fff;
  border-radius:8px;
  min-width:34px;
  height:34px;
  font-size:23px
}
.send-button:hover {
  background:#0c5845
}
.composer-hint {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  font-size:10px;
  color:#97a3aa;
  margin-top:9px
}
.mode-toggle {
  flex-shrink:0;
  padding:4px 7px;
  border:1px solid #d8e9df;
  border-radius:5px;
  background:var(--green-light);
  color:var(--green);
  font-size:12px
}
.mode-toggle:disabled {
  cursor:default
}
.message {
  margin-bottom:24px;
  animation:appear .2s ease-out
}
.message:last-child {
  margin-bottom:0
}
.message-label {
  font-size:9px;
  letter-spacing:.6px;
  text-transform:uppercase;
  font-weight:650;
  color:var(--green);
  margin-bottom:9px;
  display:flex;
  align-items:center;
  gap:7px
}
.message.user .message-label {
  color:#7f9099
}
.message-body {
  font-size:14px;
  line-height:1.85;
  white-space:pre-wrap;
  overflow-wrap:anywhere
}
.message.user {
  margin-left:32px;
  padding:14px 16px;
  background:#f3f6f7;
  border:1px solid #e9eff1;
  border-radius:12px 12px 0 12px
}
.message-body a {
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:13px;
  text-decoration:underline;
  text-underline-offset:3px
}
.message.error .message-body {
  color:var(--danger)
}
.message-meta {
  font-size:11px;
  color:var(--muted);
  margin-top:12px;
  line-height:1.6
}
.gid-links {
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  margin-top:12px
}
.gid-chip {
  display:inline-flex;
  align-items:center;
  max-width:100%;
  border:1px solid #dce8e0;
  background:#f7fbf8;
  border-radius:6px;
  overflow:hidden
}
.gid-chip a {
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:12px;
  text-decoration:none;
  padding:7px 9px;
  overflow-wrap:anywhere
}
.gid-chip button {
  background:transparent;
  border-left:1px solid #dce8e0;
  color:var(--green);
  padding:7px 9px;
  font-size:12px;
  align-self:stretch
}
.gid-chip button:hover {
  background:var(--green-light)
}
.loading-dots::after {
  content:"…";
  display:inline-block;
  animation:pulse 1.2s infinite
}
.card-panel {
  min-height:530px
}
.card-panel .panel-header {
  padding-top:19px;
  padding-bottom:18px
}
.card-panel .eyebrow {
  font-size:8px;
  margin-bottom:6px
}
.card-symbol {
  font-size:30px;
  color:#9db5a9
}
.node-search {
  display:flex;
  margin:17px 18px 0;
  border:1px solid #e0e8eb;
  border-radius:7px;
  background:#fafcfc;
  overflow:hidden
}
.node-search input {
  padding:10px 11px;
  min-width:0;
  flex:1;
  border:0;
  background:none;
  color:var(--ink);
  font-size:13px;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace
}
.node-search button {
  width:34px;
  background:transparent;
  color:var(--green);
  font-size:18px
}
.node-card {
  padding:22px 20px
}
.empty-card {
  padding:35px 7px;
  text-align:center;
  color:var(--muted)
}
.empty-card>span {
  display:block;
  font-size:48px;
  color:#c4d3cb;
  margin-bottom:22px
}
.empty-card h3 {
  font-size:13px;
  color:#506772;
  font-weight:550
}
.empty-card p {
  font-size:13px;
  line-height:1.9;
  margin-top:10px
}
.card-gid {
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:15px;
  font-weight:550;
  overflow-wrap:anywhere;
  line-height:1.55
}
.role-badge {
  display:inline-block;
  padding:5px 8px;
  background:var(--green-light);
  color:var(--green);
  font-size:12px;
  border-radius:5px;
  margin-top:9px
}
.stored-card {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font-size:15px;
  line-height:1.75;
  color:var(--ink)
}
.stored-card a {
  color:var(--green);
  text-decoration:underline;
  text-underline-offset:3px
}
.card-evidence {
  font-size:13px;
  line-height:1.8;
  color:#6c7f88;
  margin-top:12px
}
.flow-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px 9px;
  margin-top:21px;
  padding:18px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line)
}
.flow-label {
  font-size:11px;
  color:var(--muted);
  margin-bottom:7px
}
.flow-value {
  font-size:17px;
  font-weight:600;
  letter-spacing:-.4px;
  font-variant-numeric:tabular-nums
}
.flow-detail {
  font-size:11px;
  color:var(--muted);
  margin-top:5px
}
.card-section {
  margin-top:22px
}
.card-section h3 {
  font-size:11px;
  font-weight:650;
  margin-bottom:11px
}
.attention-list {
  margin:0;
  padding-left:14px;
  display:grid;
  gap:9px;
  color:#6c7f88;
  font-size:12px;
  line-height:1.8
}
.attention-list li::marker {
  color:#d4ac62
}
.viewer-link {
  display:block;
  text-align:center;
  background:var(--green);
  color:#fff;
  font-size:13px;
  font-weight:550;
  text-decoration:none;
  padding:12px;
  border-radius:7px;
  margin-top:22px
}
.viewer-link:hover {
  background:#0c5845
}
.connection-tabs {
  display:flex;
  gap:14px;
  margin-bottom:11px;
  font-size:12px;
  color:var(--muted)
}
.connection-list {
  display:grid;
  gap:0
}
.connection-row {
  display:flex;
  align-items:center;
  gap:7px;
  padding:10px 0;
  border-bottom:1px solid #edf1f2;
  font-size:12px
}
.connection-row:last-child {
  border-bottom:0
}
.connection-row a {
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:11px;
  overflow-wrap:anywhere;
  text-decoration:none;
  min-width:0
}
.connection-direction {
  color:#8da398;
  font-size:13px
}
.connection-amount {
  margin-left:auto;
  font-size:11px;
  white-space:nowrap;
  color:var(--muted)
}
.notice {
  font-size:14px;
  line-height:1.7;
  padding:12px 16px;
  background:#fff7e9;
  border:1px solid #eee0c6;
  border-radius:8px;
  margin-bottom:16px;
  color:#876a31
}
.notice.error {
  background:#fdf1ee;
  border-color:#eedbd6;
  color:var(--danger)
}
.notice[hidden] {
  display:none
}
.page-footer {
  display:flex;
  justify-content:space-between;
  color:#9aa6ad;
  font-size:10px;
  margin-top:16px
}
.muted {
  color:var(--muted)
}
.small {
  font-size:13px;
  line-height:1.7
}
.error-text {
  color:var(--danger);
  font-size:14px;
  line-height:1.8
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
@keyframes pulse {
  50% {
    opacity:.25
  }
}
@keyframes appear {
  from {
    opacity:0;
    transform:translateY(4px)
  }
  to {
    opacity:1;
    transform:none
  }
}
@media(min-width:1550px) {
  .content-grid {
    grid-template-columns:minmax(400px,1fr) 380px
  }
  .main {
    padding:32px 45px 18px
  }
  .chat-panel {
    height:calc(100vh - 165px)
  }
}
@media(max-width:1180px) {
  .workspace {
    grid-template-columns:195px minmax(0,1fr)
  }
  .sidebar {
    padding:27px 15px 20px
  }
  .main {
    padding:28px 22px 16px
  }
  .content-grid {
    grid-template-columns:minmax(310px,1fr) 290px;
    gap:14px
  }
  .panel-header {
    padding:19px
  }
  .messages {
    padding:20px
  }
  .brand {
    font-size:17px;
    gap:8px
  }
  .brand small {
    font-size:6px
  }
  .node-card {
    padding:21px 17px
  }
  .composer-hint>span:last-child {
    display:none
  }
}
@media(max-width:980px) {
  .workspace {
    grid-template-columns:175px minmax(0,1fr)
  }
  .sidebar {
    padding:25px 12px
  }
  .main {
    padding:24px 20px
  }
  .content-grid {
    grid-template-columns:minmax(0,1fr)
  }
  .card-panel {
    min-height:260px
  }
  .chat-panel {
    height:640px;
    max-height:none
  }
  .card-panel .empty-card {
    padding:10px
  }
  .empty-card>span {
    font-size:30px;
    margin-bottom:12px
  }
  .node-card {
    padding:20px
  }
  .page-header {
    align-items:flex-start
  }
  h1 {
    font-size:24px
  }
  .mode-badge {
    font-size:9px
  }
  .brand {
    font-size:15px
  }
  .brand-mark {
    width:29px;
    height:32px;
    font-size:25px
  }
  .nav-item {
    font-size:11px;
    padding:10px
  }
  .dataset-metrics {
    gap:23px
  }
  .flow-grid {
    max-width:420px
  }
  .connection-list {
    max-width:500px
  }
  .viewer-link {
    max-width:420px
  }
}
@media(max-width:650px) {
  .workspace {
    display:block
  }
  .sidebar {
    padding:17px 18px;
    border-right:0;
    border-bottom:1px solid var(--line);
    display:grid;
    grid-template-columns:1fr auto;
    gap:10px 16px
  }
  .brand {
    margin-bottom:0;
    font-size:17px
  }
  .brand small {
    font-size:6px
  }
  .sidebar .nav-item.active,.dataset,.priority-section,.sidebar-note {
    display:none
  }
  .nav-item {
    margin:0;
    align-self:center;
    font-size:11px;
    padding:8px
  }
  .nav-item>span:first-child {
    display:none
  }
  .nav-item .external {
    display:inline
  }
  .main {
    padding:24px 14px 16px
  }
  .page-header {
    gap:10px;
    margin-bottom:19px
  }
  .page-header .eyebrow {
    font-size:7px;
    letter-spacing:1.2px
  }
  h1 {
    font-size:22px
  }
  .mode-badge {
    padding:7px 8px;
    margin-top:4px;
    font-size:8px
  }
  .chat-panel {
    height:calc(100svh - 188px);
    min-height:480px
  }
  .messages {
    padding:19px 17px
  }
  .panel-header {
    padding:16px 17px
  }
  .composer {
    padding:13px
  }
  .composer-hint {
    font-size:9px
  }
  .welcome h3 {
    font-size:20px
  }
  .welcome p {
    font-size:13px
  }
  .welcome-symbol {
    margin-bottom:20px
  }
  .welcome {
    padding:8px 0
  }
  .suggestions {
    margin-top:10px
  }
  .message.user {
    margin-left:15px
  }
  .page-footer {
    font-size:9px;
    gap:12px
  }
  .page-footer span:last-child {
    text-align:right
  }
  .node-card {
    padding:18px
  }
  .content-grid {
    gap:15px
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    animation:none!important;
    scroll-behavior:auto!important
  }
}
