@charset "UTF-8";
:root {
  --paper: #f5f3ec;
  --surface: #fffef9;
  --ink: #253a31;
  --muted: #6a746b;
  --green: #244b3c;
  --green-light: #e4eade;
  --line: #dcded2;
  --rust: #9b4e32;
  --serif:
    "Iowan Old Style", "Palatino Linotype", "Songti SC", "Noto Serif CJK SC",
    Georgia, serif;
  --sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --primary-color: var(--green);
  --bg-color: var(--paper);
  --text-color: var(--ink);
  --text-muted: var(--muted);
  --border-color: var(--line);
}
* {
  box-sizing: border-box;
}
body.workspace {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: var(--green);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.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;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  background: var(--green);
  color: white;
  padding: 12px;
}
.skip-link:focus {
  top: 10px;
}
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 224px;
  padding: 38px 23px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: #edeedf;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  margin: 0 0 45px 4px;
}
.brand-mark {
  height: 38px;
  width: 34px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--green);
  font: 26px var(--serif);
  transform: rotate(-5deg);
  box-shadow: 4px 3px 0 #bdc9b1;
}
.brand strong {
  display: block;
  font: 600 26px var(--serif);
  letter-spacing: 3px;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 1.6px;
  margin-top: 2px;
}
.rail-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  padding: 0 14px;
  margin-bottom: 12px;
}
.rail nav {
  display: grid;
  gap: 5px;
}
.rail nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 3px;
  padding: 12px 14px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.rail nav a span {
  font-size: 17px;
  width: 20px;
  text-align: center;
  font-family: var(--serif);
}
.rail nav a:hover {
  background: #e0e5d6;
  color: var(--ink);
}
.rail nav a.active {
  background: var(--green);
  color: #fffef2;
}
.rail-bottom {
  margin-top: auto;
  padding: 40px 14px 0;
  display: grid;
  gap: 11px;
}
.rail-bottom a,
.rail-bottom button {
  text-align: left;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  border: 0;
  background: transparent;
  padding: 0;
}
.rail-bottom .edition {
  border-top: 1px solid #cbd2c1;
  margin-top: 10px;
  padding-top: 16px;
  font-size: 10px;
  letter-spacing: 1px;
}
.workspace-main {
  margin-left: 224px;
  padding: 0 48px;
  max-width: 1664px;
}
.topbar {
  height: 83px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  font-weight: 500;
}
.topbar-end {
  display: flex;
  align-items: center;
  gap: 21px;
}
.status-dot {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
}
.status-dot:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 100%;
  background: #a7afa1;
}
.status-dot.connected:before {
  background: #557b4d;
}
.status-dot.offline:before {
  background: var(--rust);
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 45px 0 30px;
}
.page-heading .eyebrow {
  margin: 0 0 15px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font: 500 clamp(32px, 3.2vw, 48px)/1.3 var(--serif);
  letter-spacing: 1px;
  margin-bottom: 17px;
}
h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}
h3 {
  font-size: 17px;
}
.lede {
  color: var(--muted);
  font-size: 14px;
  max-width: 650px;
  margin-bottom: 0;
}
.margin-note {
  font: italic 14px/1.7 var(--serif);
  color: var(--muted);
  padding: 0 10px 0 30px;
}
.small-rule {
  display: block;
  width: 35px;
  border-top: 1px solid #a9b09d;
  margin: 12px 0;
}
.ask-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 38px;
}
.question-composer {
  background: var(--surface);
  border: 1px solid #bac5b2;
  box-shadow: 0 5px 0 #e7e9dd;
  padding: 22px 24px 16px;
}
.question-composer textarea {
  width: 100%;
  resize: vertical;
  min-height: 119px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 18px;
  color: var(--ink);
  line-height: 1.8;
  padding: 0;
}
.question-composer textarea:focus {
  outline: none;
}
.question-composer:focus-within {
  border-color: var(--green);
}
textarea::placeholder,
input::placeholder {
  color: #8b9285;
}
.template-bar {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding: 5px 0 17px;
}
.template-chip {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 11px;
}
.template-chip.active {
  background: var(--green-light);
  border-color: #a7b598;
  color: var(--green);
}
.question-filters {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--green);
}
summary span {
  color: var(--muted);
  margin-left: 10px;
  font-size: 11px;
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 0 12px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}
input:not([type="checkbox"]),
select,
textarea {
  border: 1px solid var(--line);
  padding: 10px 12px;
  background: var(--surface);
  border-radius: 3px;
  color: var(--ink);
  max-width: 100%;
  min-width: 0;
}
textarea {
  width: 100%;
  line-height: 1.7;
  resize: vertical;
}
input[type="checkbox"] {
  accent-color: var(--green);
}
.check-line {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  font-size: 12px;
}
.composer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 16px;
}
.composer-bottom > .muted {
  font-size: 10px;
}
.muted {
  color: var(--muted);
}
kbd {
  font-size: 9px;
  border: 1px solid var(--line);
  padding: 2px 4px;
  border-radius: 3px;
  font-family: var(--sans);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 3px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1.5;
}
.button.primary {
  background: var(--green);
  color: #fffef2;
}
.button.primary:hover {
  background: #18392d;
}
.button.secondary {
  background: transparent;
  border-color: #bcc6b2;
  color: var(--green);
}
.button.secondary:hover {
  background: var(--green-light);
}
.text-button,
.icon-button {
  background: transparent;
  border: 0;
  color: var(--green);
  padding: 5px;
  font-size: 12px;
}
.icon-button {
  font-size: 24px;
  min-width: 38px;
  line-height: 1;
}
.text-link {
  font-size: 12px;
  text-decoration: none;
}
.text-link:hover,
.text-button:hover {
  text-decoration: underline;
}
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.section-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 17px;
}
.section-label h2 {
  margin: 0;
  font-size: 13px;
}
.section-label > span {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.starting-points {
  padding: 38px 0;
}
.prompt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.prompt-grid button {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-height: 122px;
  padding: 18px 35px 18px 17px;
  background: transparent;
  border: 1px solid var(--line);
  text-align: left;
  color: var(--ink);
  font: 15px/1.7 var(--serif);
}
.prompt-grid button:hover {
  background: #e9edde;
  border-color: #b3c1a6;
}
.prompt-grid span {
  font: 10px var(--sans);
  letter-spacing: 1px;
  color: var(--muted);
}
.prompt-grid b {
  position: absolute;
  right: 14px;
  bottom: 14px;
  font-size: 19px;
  font-weight: 400;
}
.footnote {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  margin: 15px 0;
}
.knowledge-aside {
  border-left: 1px solid var(--line);
  padding-left: 26px;
}
.knowledge-aside section {
  border-bottom: 1px solid var(--line);
  padding: 0 0 24px;
  margin-bottom: 24px;
}
.knowledge-aside section:last-child {
  border: 0;
}
.library-number {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.library-number strong {
  font: 48px/1.3 var(--serif);
  letter-spacing: -2px;
  font-weight: 400;
}
.library-number span {
  font-size: 11px;
  color: var(--muted);
}
#index-summary {
  font-size: 11px;
  margin: 7px 0;
}
.index-state {
  font-size: 11px;
  color: var(--muted);
}
.compact-note {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  display: block;
  text-align: left;
  padding: 12px 0;
  color: var(--ink);
}
.compact-note:last-child {
  border: 0;
}
.compact-note strong {
  display: block;
  font-weight: 500;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.compact-note small {
  font-size: 10px;
  color: var(--muted);
}
.compact-note:hover strong {
  color: #66804f;
}
.data-flow {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
}
.data-flow > div {
  display: flex;
  gap: 10px;
  width: 100%;
}
.data-flow span,
.data-flow strong {
  border: 1px solid var(--line);
  padding: 7px 13px;
  text-align: center;
  font-weight: 400;
}
.data-flow > div span {
  flex: 1;
}
.data-flow > strong {
  background: var(--green-light);
  width: 100%;
}
.data-flow > span {
  width: 100%;
}
.data-flow i {
  font-style: normal;
  color: #98a38c;
}
.progress-line {
  padding: 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-size: 12px;
}
.progress-line:before {
  content: "";
  width: 12px;
  height: 12px;
  border: 1px solid #bbc8af;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.answer-card {
  border-top: 2px solid var(--green);
  margin: 30px 0;
  padding: 22px 0;
}
.answer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.answer-heading h2 {
  font: 24px var(--serif);
  margin: 0;
}
.answer-meta {
  font-size: 10px;
  color: var(--muted);
  margin: 12px 0 22px;
}
.markdown {
  font-size: 14px;
  line-height: 1.95;
  overflow-wrap: anywhere;
}
.markdown h1 {
  font-size: 26px;
  margin: 24px 0 12px;
}
.markdown h2 {
  font-size: 21px;
  margin: 24px 0 12px;
}
.markdown h3 {
  font-size: 17px;
  margin: 20px 0 10px;
}
.markdown p {
  margin: 0 0 16px;
  white-space: pre-wrap;
}
.markdown ul,
.markdown ol {
  padding-left: 22px;
}
.markdown pre {
  background: #e9edde;
  padding: 16px;
  overflow: auto;
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.6;
}
.markdown code {
  font-family: Consolas, monospace;
  background: #e9edde;
  padding: 1px 4px;
}
.markdown blockquote {
  border-left: 2px solid #9aac8a;
  margin: 16px 0;
  padding: 0 16px;
  color: var(--muted);
}
.source-list {
  display: grid;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.source-button {
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: left;
  display: flex;
  gap: 12px;
  padding: 13px;
  color: var(--ink);
  width: 100%;
}
.source-number {
  font: italic 18px var(--serif);
  color: var(--green);
  width: 22px;
  flex-shrink: 0;
}
.source-button strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.source-button p {
  font-size: 11px;
  color: var(--muted);
  margin: 5px 0 0;
}
.source-button:hover {
  border-color: #92a67e;
}
.claim {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.claim p {
  margin: 5px 0;
  font-size: 13px;
}
.citation {
  border: 0;
  border-bottom: 1px dotted #8e9f80;
  background: transparent;
  color: var(--green);
  font-size: 11px;
  padding: 3px 6px;
}
.notice {
  padding: 14px 17px;
  border: 1px solid #d9c692;
  background: #f5eedc;
  margin: 17px 0;
  color: #715723;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.notice.error {
  color: #87432e;
  background: #f7e8df;
  border-color: #ddbaa9;
}
.notice.success {
  color: #36583a;
  background: #e7eedf;
  border-color: #bacbab;
}
.empty-state {
  padding: 45px 24px;
  border: 1px dashed #c7cebd;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.empty-state strong {
  display: block;
  color: var(--ink);
  font: 21px var(--serif);
  margin-bottom: 10px;
}
.search-bar {
  display: flex;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 16px;
}
.search-bar input {
  flex: 1;
  border: 0;
  background: transparent;
  min-width: 100px;
  font-size: 15px;
}
.search-bar select {
  max-width: 220px;
}
.browse-meta {
  margin-top: 32px;
}
.note-row {
  width: 100%;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 135px;
  gap: 15px;
  align-items: start;
  padding: 22px 12px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  text-align: left;
  color: var(--ink);
}
.note-row:hover {
  background: #ebeddf;
}
.note-row .note-symbol {
  font: italic 23px var(--serif);
  color: #7c8c6b;
}
.note-row strong {
  font: 20px/1.45 var(--serif);
  display: block;
}
.note-row p {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
  max-width: 700px;
}
.note-row small {
  font-size: 10px;
  text-align: right;
  color: var(--muted);
  padding-top: 5px;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 30px 0;
  font-size: 12px;
}
.run-actions {
  padding: 22px 0;
  border-block: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.run-actions h2 {
  font: 20px var(--serif);
}
.run-actions p {
  font-size: 12px;
  margin: 0;
}
.filter-row {
  display: flex;
  align-items: end;
  gap: 20px;
  flex-wrap: wrap;
  margin: 25px 0;
}
.filter-row select {
  min-width: 150px;
}
.filter-row > .text-link {
  margin-left: auto;
  padding-bottom: 10px;
}
.run-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.run-table th {
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--muted);
  font-weight: 500;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}
.run-table td {
  padding: 16px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.run-table small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.badge {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2px 7px;
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.badge.success {
  background: #e6eddc;
  border-color: #c5d3b3;
  color: #466039;
}
.badge.error {
  background: #f3e5dd;
  border-color: #d4b8a7;
  color: #8a4935;
}
.badge.warning {
  background: #f4edda;
  border-color: #d4c599;
  color: #866623;
}
.badge.running {
  background: #e4eae4;
  border-color: #b2c5b7;
  color: #365c48;
}
.connection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.connection-card {
  padding: 25px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.connection-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.connection-card h2 {
  font: 26px var(--serif);
  margin: 0;
}
.connection-card > p {
  font-size: 12px;
  color: var(--muted);
  margin: 13px 0;
}
.connection-facts {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  border-block: 1px solid var(--line);
  padding: 14px 0;
  margin-bottom: 18px;
  font-size: 11px;
  color: var(--muted);
}
.probe-result {
  font-size: 12px;
  margin-top: 15px;
}
.quiet-panel {
  border-top: 1px solid var(--line);
  padding-top: 30px;
  margin-top: 40px;
  max-width: 750px;
}
.quiet-panel h2 {
  font: 24px var(--serif);
}
.quiet-panel p {
  color: var(--muted);
  font-size: 13px;
}
.settings-section {
  padding: 25px 0 40px;
  border-top: 1px solid var(--line);
}
.settings-section > .muted {
  font-size: 12px;
}
.provider-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 25px;
}
.provider-fieldset {
  border: 1px solid var(--line);
  padding: 22px;
  background: var(--surface);
  min-width: 0;
}
.provider-fieldset legend {
  font: 22px var(--serif);
  padding: 0 8px;
}
.provider-fieldset label {
  margin-bottom: 13px;
}
.provider-fieldset .check-line {
  margin-bottom: 15px;
}
.token-form {
  display: flex;
  gap: 20px;
  align-items: end;
  margin: 24px 0;
}
.token-form > label {
  flex: 1;
}
.scope-options {
  display: flex;
  gap: 12px;
  padding: 10px 0;
}
.token-row {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 15px 0;
}
.token-row small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.token-row strong {
  font-size: 13px;
  font-weight: 500;
}
#new-token-value {
  width: 100%;
  margin: 12px 0;
  font-family: Consolas, monospace;
}
dialog {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 30px;
  box-shadow: 0 20px 100px #17332233;
}
dialog::backdrop {
  background: #1c302f60;
  backdrop-filter: blur(2px);
}
.note-drawer {
  margin: 0 0 0 auto;
  height: 100dvh;
  max-height: 100dvh;
  max-width: min(740px, 100vw);
  width: 740px;
  border: 0;
  border-left: 1px solid var(--line);
  padding: 28px 38px;
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 25px;
}
.drawer-head h2 {
  font: 25px var(--serif);
  margin: 0;
}
.note-drawer > h2 {
  font: 30px/1.4 var(--serif);
  overflow-wrap: anywhere;
}
.note-drawer > .muted {
  font-size: 11px;
  overflow-wrap: anywhere;
}
.note-drawer > .actions {
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.note-drawer .markdown {
  padding: 25px 0;
}
.append-section {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.append-section summary {
  font-size: 14px;
}
.append-section button {
  margin-top: 14px;
}
.create-dialog {
  width: 600px;
  max-width: calc(100vw - 30px);
}
.create-dialog label {
  margin: 15px 0;
}
.workspace-footer {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #89917f;
  font-size: 9px;
  letter-spacing: 1px;
  padding: 22px 0;
  margin-top: 60px;
}
.mobile-menu,
.nav-shade {
  display: none;
}
body.legacy-workspace {
  background: var(--paper);
  font-family: var(--sans);
  color: var(--ink);
  margin: 0;
}
body.legacy-workspace > .container {
  margin-left: 224px;
  padding: 35px 45px;
  max-width: 1400px;
}
body.legacy-workspace header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 25px;
  margin-bottom: 30px;
  text-align: left;
}
body.legacy-workspace header h1 {
  font: 34px var(--serif);
  color: var(--ink);
}
body.legacy-workspace header .nav-tabs {
  display: none;
}
body.legacy-workspace .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: none;
  padding: 24px;
  margin-bottom: 22px;
}
body.legacy-workspace .card h2 {
  font: 22px var(--serif);
}
body.legacy-workspace .btn {
  border-radius: 3px;
}
body.legacy-workspace .btn-primary {
  background: var(--green);
  border-color: var(--green);
}
body.legacy-workspace .config-tab.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--surface);
}
body.legacy-workspace input:focus,
body.legacy-workspace select:focus,
body.legacy-workspace textarea:focus {
  border-color: var(--green);
}
body.legacy-workspace .mobile-menu {
  position: fixed;
  top: 12px;
  right: 14px;
  z-index: 35;
  background: var(--paper);
}
body.login-page {
  background: var(--paper);
  font-family: var(--sans);
  color: var(--ink);
}
body.login-page .login-container {
  max-width: 460px;
  margin: 10vh auto;
}
body.login-page .login-card {
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: 8px 8px 0 #e2e6d7;
  padding: 35px;
}
body.login-page .login-header h1 {
  font: 34px var(--serif);
  color: var(--ink);
}
body.login-page .btn-login {
  background: var(--green);
}
@media (min-width: 1600px) {
  .workspace-main {
    padding: 0 70px;
  }
  .ask-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 50px;
  }
  .page-heading {
    padding-top: 60px;
  }
}
@media (max-width: 1150px) {
  .rail {
    width: 190px;
    padding-inline: 16px;
  }
  .workspace-main {
    margin-left: 190px;
    padding: 0 28px;
  }
  .ask-layout {
    grid-template-columns: minmax(0, 1fr) 205px;
    gap: 23px;
  }
  .knowledge-aside {
    padding-left: 20px;
  }
  .margin-note {
    display: none;
  }
  .composer-bottom > .muted {
    display: none;
  }
  .question-composer {
    padding: 18px;
  }
  .run-actions {
    flex-direction: column;
  }
  body.legacy-workspace > .container {
    margin-left: 190px;
    padding: 30px;
  }
  .token-form {
    flex-wrap: wrap;
  }
  .token-form > label {
    min-width: 200px;
  }
}
@media (max-width: 900px) {
  .ask-layout {
    grid-template-columns: 1fr;
  }
  .knowledge-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 25px;
  }
  .knowledge-aside section:last-child {
    display: none;
  }
  .knowledge-aside section {
    margin: 0;
    border: 0;
  }
  .page-heading {
    padding: 35px 0 25px;
  }
  .topbar .eyebrow {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .provider-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .rail {
    transform: translateX(-100%);
    width: 250px;
    transition: transform 0.18s ease;
  }
  .nav-open .rail {
    transform: translateX(0);
  }
  .nav-open .nav-shade {
    display: block;
    position: fixed;
    inset: 0;
    border: 0;
    background: #20372f66;
    z-index: 29;
  }
  .workspace-main {
    margin-left: 0;
    padding: 0 20px;
  }
  .mobile-menu {
    display: block;
  }
  .topbar {
    height: 65px;
  }
  .topbar > .eyebrow {
    font-size: 8px;
    letter-spacing: 0.4px;
    margin-right: auto;
  }
  .topbar-end {
    gap: 8px;
  }
  .topbar-end .text-button {
    font-size: 11px;
  }
  .status-dot {
    font-size: 9px;
  }
  .page-heading {
    align-items: start;
    flex-direction: column;
    gap: 20px;
    padding-top: 32px;
  }
  .page-heading h1 {
    font-size: 36px;
  }
  .lede {
    font-size: 12px;
    line-height: 1.9;
  }
  .question-composer textarea {
    font-size: 17px;
  }
  .composer-bottom {
    justify-content: flex-end;
  }
  .composer-bottom .actions {
    gap: 6px;
  }
  .composer-bottom .button {
    font-size: 11px;
    padding-inline: 12px;
  }
  .template-chip {
    padding: 5px 8px;
  }
  .template-bar {
    gap: 5px;
  }
  .filter-grid {
    gap: 10px;
  }
  .question-filters summary span {
    font-size: 10px;
  }
  .prompt-grid {
    gap: 10px;
  }
  .prompt-grid button {
    font-size: 14px;
    padding: 15px 25px 15px 12px;
  }
  .section-label > span {
    font-size: 8px;
  }
  .knowledge-aside {
    gap: 20px;
  }
  .library-number strong {
    font-size: 40px;
  }
  .search-bar {
    flex-wrap: wrap;
    padding: 10px;
  }
  .search-bar input {
    flex-basis: 100%;
    font-size: 14px;
  }
  .search-bar select {
    flex: 1;
    max-width: none;
    font-size: 12px;
  }
  .note-row {
    grid-template-columns: 25px minmax(0, 1fr);
    gap: 10px;
    padding: 20px 0;
  }
  .note-row strong {
    font-size: 18px;
  }
  .note-row small {
    grid-column: 2;
    text-align: left;
    padding: 0;
  }
  .note-row p {
    font-size: 11px;
  }
  .connection-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .filter-row {
    gap: 12px;
  }
  .filter-row select {
    min-width: 130px;
  }
  .run-table th:nth-child(4),
  .run-table td:nth-child(4) {
    display: none;
  }
  .run-table td,
  .run-table th {
    padding: 12px 5px;
  }
  .run-table {
    font-size: 11px;
  }
  .run-actions > .actions {
    gap: 8px;
  }
  .run-actions .button {
    font-size: 11px;
    padding: 9px 10px;
  }
  .token-form {
    gap: 14px;
  }
  .scope-options {
    gap: 10px;
  }
  .token-row {
    gap: 10px;
  }
  .note-drawer {
    padding: 20px 22px;
  }
  .note-drawer > h2 {
    font-size: 25px;
  }
  .create-dialog {
    padding: 22px;
  }
  .workspace-footer {
    font-size: 8px;
    letter-spacing: 0.5px;
    margin-top: 40px;
    gap: 20px;
  }
  body.legacy-workspace > .container {
    margin-left: 0;
    padding: 45px 18px 20px;
  }
  body.legacy-workspace .config-tabs {
    flex-wrap: wrap;
  }
  body.legacy-workspace .card {
    padding: 18px;
  }
  .login-container {
    margin: 60px 18px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.notice:empty {
  display: none;
}
