.guide {
  width: min(100% - 40px, 920px);
  margin: 56px auto 80px;
  line-height: 1.7;
}
.guide h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.15; letter-spacing: -1.5px; }
.guide h2 { font-size: 24px; letter-spacing: -0.5px; }
.guide-lead { max-width: 700px; font-size: 19px; color: var(--muted); }
.guide section { padding: 30px 0; border-bottom: 1px solid var(--line); }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 32px; }
.guide code { font-size: 0.92em; overflow-wrap: anywhere; }
.guide pre { padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; overflow-x: auto; }
.guide pre code { overflow-wrap: normal; }
.guide-table { max-width: 100%; overflow-x: auto; }
.guide table { width: 100%; border-collapse: collapse; text-align: left; }
.guide th, .guide td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
@font-face {
  font-family: system;
  src: local("Inter"), local("Arial");
}
* {
  box-sizing: border-box;
}
:root {
  font-family:
    system,
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #292c29;
  background: #f6f5f1;
  font-size: 14px;
  --ink: #292c29;
  --muted: #777b74;
  --line: #e1e2da;
  --green: #235a46;
  --green-light: #e7eee6;
  --paper: #fffefa;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid #d8dcd2;
  background: #fffefa;
  padding: 9px 13px;
  border-radius: 6px;
  color: var(--ink);
  font-weight: 550;
  transition: background 0.15s;
}
button:hover {
  background: #edf0e8;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.primary:hover {
  background: #174633;
}
.quiet,
.icon {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 8px;
}
.quiet:hover {
  color: var(--green);
}
input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 9px;
  background: var(--paper);
  color: inherit;
  min-width: 0;
}
textarea {
  resize: vertical;
  line-height: 1.6;
  display: block;
  width: 100%;
}
input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  outline: 2px solid #87aa94;
  outline-offset: 2px;
}
a {
  color: var(--green);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 27px;
  letter-spacing: -0.9px;
  font-weight: 550;
}
h2 {
  font-size: 16px;
  font-weight: 600;
}
h3 {
  font-size: 13px;
  font-weight: 650;
}
p {
  line-height: 1.65;
}
label {
  font-size: 12px;
  color: #62695d;
  display: block;
  margin: 12px 0 6px;
}
.topbar {
  height: 73px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: var(--paper);
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  letter-spacing: -0.7px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
}
.mark {
  background: var(--green);
  color: #fff;
  font-size: 24px;
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
}
.brand-tag {
  margin-left: 14px;
  color: #8c9185;
  font-size: 9px;
  letter-spacing: 1.9px;
  font-weight: 500;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 12px;
}
.connection {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #778271;
}
.connection:before,
.small-dot,
.session-dot {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6b9578;
}
.connection.offline:before {
  background: #c78348;
}
#identity {
  color: #525c4f;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workspace {
  display: grid;
  grid-template-columns: 296px minmax(0, 1fr);
  min-height: calc(100vh - 73px);
}
.inbox {
  border-right: 1px solid var(--line);
  background: #f0f1eb;
  position: sticky;
  top: 0;
  height: calc(100vh - 73px);
  display: flex;
  flex-direction: column;
  padding: 26px 16px 15px;
}
.inbox-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 18px;
}
.inbox-title h2 {
  margin: 0;
  font-size: 19px;
}
.count {
  font-size: 11px;
  border: 1px solid #d9ded2;
  color: #65805d;
  border-radius: 12px;
  padding: 2px 7px;
  margin-left: 5px;
}
.search {
  display: flex;
  align-items: center;
  border: 1px solid #dce0d5;
  background: #f9faf5;
  border-radius: 5px;
  padding-left: 10px;
  margin: 0;
}
.search span {
  font-size: 23px;
  color: #8a9181;
}
.search input {
  border: 0;
  background: none;
  width: 100%;
  font-size: 12px;
}
.filter-row {
  display: flex;
  gap: 5px;
  margin: 12px 0;
}
.filter-row select {
  padding: 6px 2px;
  border: 0;
  background: transparent;
  color: #727969;
  font-size: 11px;
  max-width: 58%;
}
.queue {
  overflow: auto;
  flex: 1;
}
.queue-empty {
  text-align: center;
  color: #7f8975;
  padding: 35px 10px;
}
.request-card {
  width: 100%;
  text-align: left;
  display: block;
  background: transparent;
  border: 1px solid transparent;
  padding: 14px 12px;
  margin-bottom: 7px;
  border-radius: 7px;
  font-weight: 400;
}
.request-card:hover {
  background: #e8ece1;
}
.request-card.selected {
  background: var(--paper);
  border-color: #d9dfd1;
  box-shadow: 0 3px 6px #25322005;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #8b9381;
}
.card-top .protocol {
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 9px;
}
.card-preview {
  margin: 10px 0;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 550;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
}
.card-foot {
  display: flex;
  justify-content: space-between;
  color: #828978;
  font-size: 10px;
  gap: 6px;
}
.status-dot {
  color: #61774e;
}
.status-dot.working {
  color: #b88737;
}
.inbox-footer {
  border-top: 1px solid var(--line);
  padding: 17px 6px 0;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #8b9281;
}
#queue-time {
  margin-left: auto;
}
.empty {
  padding: 100px 50px 60px;
  text-align: center;
  align-self: start;
  max-width: 900px;
  margin: auto;
}
.empty-mark {
  font-size: 50px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #d4dece;
  background: #eef1e8;
  width: 90px;
  height: 90px;
  border-radius: 27px;
  color: #507554;
  margin-bottom: 40px;
}
.eyebrow {
  color: #8b937f;
  font-size: 9px;
  letter-spacing: 1.5px;
  font-weight: 650;
  margin-bottom: 12px;
}
.empty h1 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 44px;
  letter-spacing: -1.5px;
  margin-bottom: 17px;
}
.empty > p {
  color: #808775;
  max-width: 470px;
  margin: 0 auto 30px;
  font-size: 14px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 60px 0;
  text-align: left;
}
.steps b {
  display: block;
  color: #9ca88e;
  font-size: 11px;
  margin-bottom: 13px;
}
.steps span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 7px;
}
.steps small {
  display: block;
  font-size: 11px;
  line-height: 1.6;
  color: #8a9180;
}
.empty .empty-note {
  font-size: 10px;
  letter-spacing: 0.3px;
  color: #a0a78f;
  margin-top: 35px;
}
#workbench {
  min-width: 0;
}
.request-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 29px 32px 26px;
  border-bottom: 1px solid var(--line);
  gap: 20px;
  background: #faf9f5;
}
.request-heading h1 {
  margin: 0 0 13px;
  overflow-wrap: anywhere;
}
.request-heading .eyebrow {
  margin-bottom: 8px;
}
.request-sub {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  color: #8a9183;
}
.badge {
  font-size: 9px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: #e9eee4;
  color: #60714f;
  padding: 4px 7px;
  border-radius: 4px;
}
.assignment {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.assignment > span {
  font-size: 10px;
  color: #7a8470;
  max-width: 120px;
}
.work-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 296px;
}
.conversation {
  padding: 28px 30px 40px;
  min-width: 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 13px;
  margin-bottom: 24px;
}
.section-heading h2 {
  margin: 0;
  font-size: 12px;
}
.section-heading span {
  font-size: 10px;
  color: #939b88;
}
.message {
  margin: 0 0 25px;
}
.message-label {
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 650;
  color: #8b947f;
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 9px;
}
.message-label .avatar {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #e7ebdf;
  color: #657950;
  font-size: 11px;
  letter-spacing: 0;
}
.message-body {
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message.system {
  padding: 14px 17px;
  background: #eeefe6;
  border: 1px solid #dfe4d4;
  border-radius: 7px;
  font-size: 12px;
}
.message.system .message-body {
  font-size: 12px;
  color: #636f57;
}
.message.tool .message-body {
  font-family: monospace;
  font-size: 11px;
  background: #ecefe7;
  padding: 14px;
  border-radius: 5px;
  max-height: 330px;
  overflow: auto;
}
.message.published {
  border-left: 2px solid #9bb38c;
  padding: 2px 0 2px 15px;
}
.message.thinking .message-body {
  color: #7e8971;
  font-style: italic;
}
.message img {
  max-width: 100%;
  max-height: 350px;
  border-radius: 5px;
}
.message audio,
.message video {
  width: 100%;
  max-height: 350px;
}
.message pre {
  max-height: 400px;
}
.composer {
  border: 1px solid #d7ddcf;
  border-radius: 9px;
  background: var(--paper);
  overflow: hidden;
  margin-top: 35px;
  box-shadow: 0 6px 22px #29302204;
}
.composer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-bottom: 1px solid #e9ecdf;
  gap: 10px;
}
.tabs {
  display: flex;
  gap: 3px;
}
.tabs button {
  font-size: 11px;
  border: 0;
  background: transparent;
  color: #89917c;
  padding: 9px;
}
.tabs button[aria-selected="true"] {
  background: #edf1e6;
  color: #49653f;
}
.composer-top label {
  font-size: 10px;
  margin: 0;
}
.composer-top select {
  padding: 4px;
  font-size: 10px;
}
#answer-panel textarea {
  border: 0;
  background: transparent;
  padding: 20px;
  min-height: 155px;
  font-size: 13px;
  outline-offset: -3px;
}
.answer-options {
  padding: 0 17px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #969e8b;
}
.answer-options label {
  font-size: 10px;
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 0;
}
.answer-options select {
  border: 0;
  font-size: 10px;
  padding: 3px;
  background: #f1f3eb;
}
#tool-panel,
#raw-panel {
  padding: 8px 19px 17px;
}
#tool-select {
  width: 100%;
}
#tool-description {
  font-size: 11px;
  white-space: pre-wrap;
}
.schema-field label {
  margin: 9px 0 4px;
}
.schema-field input,
.schema-field select {
  width: 100%;
}
.schema-field input[type="checkbox"] {
  width: auto;
}
.schema-help {
  font-size: 10px;
  color: #949b88;
  margin: 3px 0 8px;
}
#tool-json,
#raw-json,
#finish-json {
  font-family: monospace;
  font-size: 11px;
}
.hint {
  font-size: 10px;
  line-height: 1.7;
  color: #919986;
  margin: 12px 0 0;
}
.composer details {
  font-size: 11px;
}
.composer details > summary {
  padding: 10px 0;
}
.advanced {
  padding: 0 19px;
  border-top: 1px solid #edf0e5;
}
.advanced textarea {
  margin-bottom: 12px;
}
.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  background: #f6f7f0;
  border-top: 1px solid #e9ecdf;
  gap: 10px;
}
.composer-footer > span {
  color: #979f8a;
  font-size: 9px;
}
.composer-footer button {
  font-size: 11px;
  padding: 8px 10px;
}
.composer-footer > div {
  display: flex;
  gap: 7px;
}
.context {
  padding: 29px 22px;
  border-left: 1px solid var(--line);
  background: #f0f1ea;
}
.context-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.context-header .eyebrow {
  font-size: 8px;
}
.context h2 {
  font-size: 17px;
  letter-spacing: -0.4px;
  margin: 8px 0;
}
.muted {
  color: #8d9580;
  font-size: 11px;
}
.context input,
.context textarea {
  width: 100%;
  background: #fafbf6;
  font-size: 11px;
}
.context button {
  font-size: 10px;
}
.context #save-context {
  margin: 10px 0 4px;
}
.context-section {
  border-top: 1px solid #dfe4d6;
  margin-top: 24px;
  padding-top: 23px;
}
.context-section h3 {
  font-size: 11px;
  margin: 0 0 15px;
}
.task {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  line-height: 1.6;
  margin-bottom: 8px;
}
.task input {
  width: auto;
  margin: 3px 0 0;
}
.task .done {
  text-decoration: line-through;
  color: #99a28b;
}
#task-form {
  display: flex;
  gap: 5px;
  margin-top: 12px;
}
#task-form input {
  flex: 1;
}
#task-form button {
  padding: 5px 10px;
}
.note {
  font-size: 11px;
  line-height: 1.7;
  border-left: 1px solid #ccd5c0;
  padding-left: 10px;
  margin-bottom: 15px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.note small {
  display: block;
  font-size: 8px;
  color: #a0a98f;
  margin-top: 5px;
}
#note-form button {
  margin-top: 8px;
}
dl {
  font-size: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
dt {
  color: #949d85;
}
dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
details {
  margin-top: 8px;
}
summary {
  cursor: pointer;
  color: #7b876b;
  font-size: 10px;
  line-height: 1.7;
}
pre {
  font-family: ui-monospace, monospace;
  background: #e9ede2;
  padding: 12px;
  border-radius: 5px;
  font-size: 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 400px;
  overflow: auto;
  line-height: 1.6;
}
.context pre {
  font-size: 9px;
}
.read-only {
  background: #edf0e6;
  padding: 20px;
  color: #7e8e6a;
  font-size: 12px;
  border-radius: 6px;
}
.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;
}
dialog {
  background: var(--paper);
  border: 1px solid #d6decb;
  border-radius: 13px;
  padding: 36px;
  max-width: 480px;
  width: calc(100% - 40px);
  box-shadow: 0 20px 100px #1f2f2933;
}
dialog::backdrop {
  background: #2d3f3659;
  backdrop-filter: blur(5px);
}
dialog input {
  width: 100%;
  margin-bottom: 8px;
}
dialog .mark {
  margin-bottom: 25px;
}
dialog h1 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 36px;
  margin: 10px 0;
}
dialog p {
  color: #818d73;
  font-size: 12px;
}
#login-form > .primary {
  width: 100%;
  margin-top: 23px;
}
#login-error {
  color: #a4563e;
  font-size: 12px;
  margin-top: 18px;
}
.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-heading h2 {
  margin: 0;
}
.usage-row {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.usage-row b {
  display: block;
  font-size: 24px;
  color: var(--green);
  margin: 9px 0;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 22px;
  border-radius: 7px;
  background: var(--green);
  color: white;
  font-size: 12px;
  box-shadow: 0 6px 25px #203b2633;
  z-index: 9;
}
#error {
  position: fixed;
  top: 80px;
  right: 20px;
  max-width: 500px;
  padding: 15px 23px;
  background: #fdf0e7;
  color: #9a5237;
  border: 1px solid #e9c7b0;
  border-radius: 6px;
  box-shadow: 0 5px 20px #46321711;
  z-index: 10;
  font-size: 12px;
}
.upload {
  cursor: pointer;
  padding: 9px 13px;
  border: 1px dashed #a7b899;
  border-radius: 5px;
  text-align: center;
}
#attachment {
  display: block;
  font-size: 11px;
  max-width: 100%;
  margin: 10px 0;
}
#uploaded-file {
  font-size: 10px;
  color: var(--green);
  display: block;
  overflow-wrap: anywhere;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1550px) {
  .workspace {
    grid-template-columns: 320px 1fr;
  }
  .work-grid {
    grid-template-columns: minmax(400px, 1fr) 340px;
  }
  .conversation {
    padding: 30px 48px;
  }
  .context {
    padding: 30px;
  }
  .request-heading {
    padding: 31px 48px;
  }
  .empty {
    padding-top: 130px;
  }
}
@media (max-width: 1150px) {
  .brand-tag {
    display: none;
  }
  .work-grid {
    grid-template-columns: minmax(330px, 1fr) 260px;
  }
  .workspace {
    grid-template-columns: 240px 1fr;
  }
  .conversation {
    padding: 25px 20px;
  }
  .request-heading {
    padding: 25px 22px;
  }
  .context {
    padding: 26px 17px;
  }
  .assignment {
    flex-direction: column;
    align-items: flex-end;
  }
  .composer-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 900px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
  .context {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .topbar {
    padding: 0 17px;
  }
  .connection {
    font-size: 0;
  }
  .request-heading h1 {
    font-size: 22px;
  }
  .brand {
    font-size: 19px;
  }
  .top-actions {
    gap: 5px;
  }
  #identity {
    display: none;
  }
  .empty {
    padding: 80px 25px;
  }
  .empty h1 {
    font-size: 35px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 35px 0;
  }
  .steps small {
    margin: 0;
  }
  .empty-mark {
    margin-bottom: 30px;
  }
}
@media (max-width: 600px) {
  .workspace {
    display: block;
  }
  .inbox {
    position: relative;
    height: 280px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 15px;
  }
  .inbox-title {
    padding-bottom: 10px;
  }
  .queue {
    display: flex;
    gap: 8px;
    overflow-x: auto;
  }
  .request-card {
    min-width: 210px;
    max-width: 210px;
    margin: 0;
  }
  .card-preview {
    -webkit-line-clamp: 2;
    margin: 5px 0;
  }
  .inbox-footer {
    display: none;
  }
  .filter-row {
    margin: 5px 0;
  }
  .request-heading {
    align-items: flex-start;
    padding: 22px 17px;
  }
  .request-sub {
    flex-wrap: wrap;
    gap: 6px;
  }
  #request-id {
    font-size: 8px;
  }
  .conversation {
    padding: 23px 16px;
  }
  .composer-top {
    padding: 7px;
  }
  .tabs button {
    padding: 7px;
    font-size: 10px;
  }
  .composer-footer {
    padding: 10px;
  }
  .composer-footer > div {
    width: 100%;
  }
  .composer-footer button {
    flex: 1;
  }
  h1 {
    font-size: 22px;
  }
  .empty {
    padding: 40px 25px;
  }
  .steps {
    margin: 25px 0;
  }
  .empty-mark {
    width: 65px;
    height: 65px;
    border-radius: 18px;
    font-size: 37px;
  }
  .top-actions .quiet {
    font-size: 10px;
  }
  .topbar {
    height: 64px;
  }
  .workspace {
    min-height: calc(100vh - 64px);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
