:root {
  --bg: #f7f8fa;
  --ink: #182423;
  --muted: #79827f;
  --line: #e7ebe9;
  --green: #156b50;
  --lime: #d9ef75;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px/1.55 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
input,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: var(--green);
  text-decoration: none;
}
aside {
  width: 248px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 10px 40px;
}
.brand > span {
  font-size: 19px;
  line-height: 1.3;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 1.8px;
  color: var(--muted);
  margin-top: 5px;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #929b97;
  margin: 22px 12px 9px;
}
nav button {
  display: flex;
  gap: 13px;
  border: 0;
  background: none;
  text-align: left;
  width: 100%;
  padding: 11px 13px;
  border-radius: 8px;
  color: #72807a;
  margin: 3px 0;
}
nav button.active {
  background: #eaf2ed;
  color: #195d46;
  font-weight: 600;
}
nav button:hover {
  background: #f1f5f2;
}
.aside-bottom {
  margin-top: auto;
  padding: 20px 12px 0;
  color: var(--muted);
  font-size: 11px;
}
.aside-bottom button {
  display: block;
  border: 0;
  background: none;
  padding: 15px 0 0;
  color: var(--muted);
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #319672;
  margin-right: 7px;
}
.workspace {
  margin-left: 248px;
}
header {
  height: 80px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: 1px;
  color: #86908b;
}
header b {
  margin: 0 15px;
  color: #c5ccc8;
}
header strong {
  color: #424e48;
  font-weight: 500;
  letter-spacing: 0;
  font-size: 12px;
}
.owner {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0;
  color: #4a5750;
}
.avatar {
  background: #e9eee5;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
}
main {
  max-width: 1480px;
  margin: auto;
  padding: 44px 42px 60px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--green);
  font-weight: 600;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 18px;
}
h1 {
  font-size: 34px;
  font-weight: 550;
  letter-spacing: -1.2px;
  line-height: 1.15;
  margin: 10px 0 12px;
}
h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.35px;
}
h3 {
  font-size: 15px;
  margin: 0 0 8px;
}
p {
  color: #7a847e;
  margin: 0 0 14px;
}
.button {
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: 7px;
  padding: 10px 17px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 25px;
}
.secondary {
  background: white;
  color: #4f6258;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 17px;
  font-size: 12px;
}
.hero {
  background: #193d31;
  color: #fff;
  border-radius: 12px;
  padding: 31px 34px;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 25px;
  position: relative;
  overflow: hidden;
}
.hero h2 {
  font-size: 26px;
  max-width: 470px;
  font-weight: 450;
  margin: 12px 0;
}
.hero p {
  color: #b1c7bb;
  max-width: 470px;
  font-size: 13px;
}
.hero .eyebrow {
  color: #d9ef75;
}
.hero-graphic {
  width: 175px;
  min-width: 175px;
  border: 1px solid #6e8b59;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 68px;
  color: var(--lime);
  opacity: 0.85;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 23px;
}
.stat-label {
  font-size: 11px;
  color: #829087;
}
.stat-value {
  font-size: 32px;
  letter-spacing: -1px;
  margin: 11px 0 7px;
}
.stat-note {
  font-size: 10px;
  color: #86938b;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.section-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0 15px;
}
.section-top h2 {
  margin: 0;
}
.tag {
  display: inline-block;
  font-size: 9px;
  padding: 4px 8px;
  background: #f1f5ef;
  border-radius: 4px;
  color: #698169;
  letter-spacing: 0.2px;
  margin: 3px 5px 3px 0;
}
.tag.amber {
  background: #fbf3e5;
  color: #a97f3f;
}
.tag.green {
  background: #e8f6ef;
  color: #21704c;
}
.project-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.project-row:last-child {
  border-bottom: 0;
}
.project-name {
  font-size: 13px;
  font-weight: 550;
}
.project-meta {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.project-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: #f0f3ee;
  border-radius: 8px;
  margin-right: 12px;
  font-size: 12px;
  color: #517458;
}
.project-title {
  display: flex;
  align-items: center;
}
.resource-link {
  font-size: 11px;
}
.notice {
  background: #f2f4ef;
  border: 1px solid #e6ebdf;
  border-radius: 7px;
  padding: 14px 17px;
  color: #73816c;
  font-size: 12px;
  margin: 16px 0;
}
.body-text {
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.8;
  color: #69776e;
  overflow-wrap: anywhere;
}
.doc {
  white-space: pre-wrap;
  font:
    13px/1.8 ui-monospace,
    monospace;
  overflow-wrap: anywhere;
}
.empty {
  padding: 45px;
  text-align: center;
  color: var(--muted);
}
footer {
  border-top: 1px solid var(--line);
  padding: 21px 42px;
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #99a29b;
}
footer span {
  float: right;
  letter-spacing: 0;
}
.actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px;
  width: min(550px, 90vw);
  box-shadow: 0 30px 100px #0003;
}
dialog::backdrop {
  background: #142a2255;
  backdrop-filter: blur(3px);
}
label {
  display: block;
  margin-top: 17px;
  font-size: 12px;
  color: #6c7a71;
}
input,
textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid #d9e1da;
  border-radius: 6px;
  padding: 11px;
  color: var(--ink);
  background: #fbfcfa;
}
textarea {
  resize: vertical;
}
.login {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f3f5ef;
}
.login-card {
  text-align: center;
  padding: 45px;
  max-width: 600px;
}
.brand-icon {
  background: #1b4936;
  color: #d9ef75;
  font-size: 30px;
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  margin: 0 auto 35px;
  font-weight: 700;
}
.login h1 {
  font-size: 64px;
  letter-spacing: -3px;
  margin: 18px 0;
}
.dot {
  color: #4b8159;
}
.login p {
  font-size: 17px;
  line-height: 1.7;
  margin: 22px 0 35px;
}
.login-button {
  padding: 15px 24px;
  min-width: 260px;
  justify-content: space-between;
  font-size: 14px;
}
.login small {
  display: block;
  font-size: 11px;
  color: #8d988d;
  margin-top: 20px;
}
.login footer {
  position: absolute;
  bottom: 0;
  border: 0;
}
.error {
  color: #b14e36;
}
.row-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.row-actions button {
  font-size: 10px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 5px 10px;
  border-radius: 4px;
}
pre {
  overflow: auto;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
@media (max-width: 1000px) {
  aside {
    width: 205px;
    padding: 25px 13px;
  }
  .workspace {
    margin-left: 205px;
  }
  main {
    padding: 30px 25px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  header {
    padding: 0 25px;
  }
  .hero-graphic {
    display: none;
  }
}
@media (max-width: 700px) {
  aside {
    position: static;
    width: 100%;
    padding: 15px;
  }
  .brand {
    margin: 0 8px 15px;
  }
  .nav-label,
  .aside-bottom {
    display: none;
  }
  nav {
    display: flex;
    overflow-x: auto;
    gap: 5px;
  }
  nav button {
    white-space: nowrap;
    width: auto;
    font-size: 11px;
  }
  nav button span {
    display: inline;
  }
  .workspace {
    margin-left: 0;
  }
  header {
    height: 55px;
    padding: 0 20px;
  }
  main {
    padding: 25px 18px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 29px;
  }
  .hero {
    padding: 25px;
  }
  .hero h2 {
    font-size: 23px;
  }
  .heading {
    align-items: flex-start;
  }
  .card {
    padding: 18px;
  }
  footer {
    padding: 20px;
  }
  footer span {
    display: none;
  }
  .login h1 {
    font-size: 48px;
  }
  .login-card {
    padding: 25px;
  }
}
.metric-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}
.metric-controls input {
  margin: 0;
  padding: 8px;
  font-size: 12px;
  width: auto;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th {
  text-align: left;
  font-size: 10px;
  color: #8b968f;
  font-weight: 500;
}
td,
th {
  padding: 15px 10px;
  border-bottom: 1px solid var(--line);
}
td small {
  display: block;
  color: #8c978f;
  font-size: 9px;
}
details {
  margin-top: 20px;
  color: #7a867e;
  font-size: 11px;
}
details p {
  margin-top: 14px;
}
summary {
  cursor: pointer;
}
.activity-chart {
  width: 100%;
  max-height: 230px;
  margin: 15px 0 30px;
}
.funnel-step {
  margin: 15px 0;
  font-size: 12px;
}
.funnel-step strong {
  float: right;
}
progress {
  width: 100%;
  height: 10px;
  accent-color: #28795a;
}
.report {
  margin-bottom: 18px;
}
aside {
  overflow-y: auto;
}
.report .body-text {
  line-height: 1.9;
}
.onb-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}
.onb-conversation {
  background: #fff;
  border: 1px solid var(--line, #e5e5e5);
  border-radius: 18px;
  overflow: hidden;
}
.onb-phase {
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #586766;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.onb-phase span {
  letter-spacing: 0;
  color: #999;
}
.onb-messages {
  padding: 24px;
  max-height: 480px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.onb-message {
  max-width: 90%;
  padding: 18px 20px;
  border-radius: 14px;
  background: #f3f6f4;
}
.onb-message.user {
  align-self: flex-end;
  background: #e7efea;
}
.onb-message span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #638275;
}
.onb-message p {
  line-height: 1.65;
  margin: 8px 0 0;
  white-space: pre-wrap;
}
.onb-compose {
  padding: 24px;
  border-top: 1px solid #eee;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.onb-compose label,
.onb-compose p,
.onb-compose h2,
.onb-compose .eyebrow {
  width: 100%;
  margin: 0;
}
.onb-compose input:not([type="checkbox"]) {
  width: 100%;
  padding: 14px;
  border: 1px solid #cfdad2;
  border-radius: 10px;
  font: inherit;
}
.onb-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  gap: 10px;
  margin: 12px 0;
}
.onb-tools label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #e1e8e3;
  border-radius: 8px;
  cursor: pointer;
}
.onb-tools input {
  accent-color: #22634c;
}
.onb-sidebar .card {
  margin-bottom: 16px;
  padding: 20px;
}
.onb-sidebar h3 {
  margin: 0 0 12px;
}
.onb-sidebar details {
  font-size: 13px;
  margin: 10px 0;
}
.onb-sidebar small {
  overflow-wrap: anywhere;
}
.onb-sidebar .project-meta {
  overflow-wrap: anywhere;
}
.muted {
  color: #718078;
  font-size: 12px;
  line-height: 1.65;
}
#onb-error {
  color: #ac3939;
  padding: 0 24px;
}
.hero .button {
  display: inline-block;
  margin-top: 14px;
  text-decoration: none;
}
@media (max-width: 1050px) {
  .onb-layout {
    grid-template-columns: 1fr;
  }
  .onb-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .onb-sidebar h2 {
    grid-column: 1/-1;
  }
}
@media (max-width: 600px) {
  .onb-tools,
  .onb-sidebar {
    grid-template-columns: 1fr;
  }
  .onb-phase span {
    display: none;
  }
  .onb-messages,
  .onb-compose {
    padding: 16px;
  }
  .onb-message {
    max-width: 100%;
  }
}
.agent-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}
.agent-connect,
.agent-chat {
  padding: 26px;
  margin-bottom: 24px;
}
.agent-providers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}
.agent-providers button {
  text-align: left;
  padding: 18px;
}
.agent-providers strong,
.agent-providers small {
  display: block;
}
.agent-providers strong {
  font-size: 17px;
  margin-bottom: 8px;
}
.agent-providers small {
  color: #6c7d74;
}
.agent-context .card {
  padding: 22px;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}
.agent-messages {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 560px;
  overflow: auto;
  padding: 20px 0;
}
.agent-chat textarea {
  display: block;
  width: 100%;
  border: 1px solid #d2dfd5;
  border-radius: 12px;
  padding: 14px;
  margin: 10px 0;
  font: inherit;
  resize: vertical;
}
.agent-chat select {
  width: 100%;
  padding: 10px;
  border: 1px solid #d2dfd5;
  border-radius: 8px;
  background: #fff;
  font: inherit;
}
.agent-setup {
  padding: 20px;
  background: #f3f7f4;
  border-radius: 12px;
}
.agent-setup pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.agent-connect .project-row {
  flex-wrap: wrap;
  gap: 12px;
}
.agent-chat .actions {
  justify-content: space-between;
}
.agent-chat .onb-message p {
  font-size: 14px;
}
#agent-error {
  color: #a33;
}
@media (max-width: 1050px) {
  .agent-layout {
    grid-template-columns: 1fr;
  }
  .agent-context {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}
@media (max-width: 600px) {
  .agent-providers,
  .agent-context {
    grid-template-columns: 1fr;
  }
  .agent-connect,
  .agent-chat {
    padding: 18px;
  }
  .agent-chat .actions {
    flex-wrap: wrap;
  }
}
