:root {
  --ink: #193e3d;
  --sub: #6e8380;
  --green: #087e73;
  --green-dark: #11514b;
  --pale: #edf4ef;
  --paper: #f5f7f4;
  --line: #dce6df;
  --white: #fff;
  --amber: #a56a24;
  --red: #ad4236;
  --sidebar: #103b39;
  --radius: 13px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font:
    14px/1.65 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
[hidden] {
  display: none !important;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  text-decoration: none;
  color: #06574d;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #8ac1ac;
  outline-offset: 2px;
}
.shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--sidebar);
  color: #d6e6dc;
  padding: 30px 20px 20px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.wordmark {
  display: block;
  font-size: 32px;
  font-weight: 850;
  letter-spacing: -1.8px;
  color: white;
  line-height: 1;
}
.wordmark span {
  color: #a2d9ba;
}
.wordmark small {
  font-size: 8px;
  letter-spacing: 2.1px;
  font-weight: 500;
  display: block;
  margin-top: 13px;
  color: #91b7a7;
}
.wordmark:hover {
  color: white;
}
.sidebar .wordmark {
  margin: 1px 12px 29px;
}
.org-badge {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 11px;
  border: 1px solid #315a51;
  border-radius: 10px;
  margin-bottom: 24px;
  min-width: 0;
}
.org-badge > div {
  min-width: 0;
}
.org-badge strong {
  display: block;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.org-badge small {
  display: block;
  color: #9ab9aa;
  font-size: 10px;
}
.avatar {
  width: 31px;
  height: 31px;
  border-radius: 8px;
  background: #315c51;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 12px;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.2px;
  color: #86aa9c;
  margin: 16px 14px 8px;
}
nav > a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: #bed4c9;
  font-size: 14px;
  border-radius: 8px;
  margin: 3px 0;
}
nav > a span {
  font-size: 12px;
}
nav > a:hover {
  color: #fff;
  background: #204b43;
}
nav > a.active {
  color: white;
  background: #2b5c50;
}
.sidebar-foot {
  margin-top: auto;
  padding: 22px 12px 0;
  font-size: 10px;
  color: #9dbbad;
}
.sidebar-foot > div {
  margin: 15px 0;
}
.sidebar-foot small {
  display: block;
  font-size: 10px;
  margin-top: 12px;
  overflow-wrap: anywhere;
}
.online-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #93d1a7;
  border-radius: 50%;
  margin-right: 5px;
}
.text-button {
  background: none;
  border: 0;
  color: inherit;
  padding: 4px 0;
  margin-right: 13px;
  font-size: 11px;
}
.topbar {
  height: 72px;
  background: #fbfcfa;
  border-bottom: 1px solid var(--line);
  padding: 0 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 11px;
}
.slash {
  margin: 0 13px;
  color: #afbeb4;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.top-actions select {
  max-width: 230px;
  padding: 6px 12px;
  font-size: 11px;
}
.user-dot {
  width: 29px;
  height: 29px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dfece1;
  color: #2e624b;
  font-size: 11px;
  font-weight: 700;
}
main {
  min-width: 0;
}
.page {
  padding: 37px 42px 30px;
  max-width: 1540px;
  margin: 0 auto;
  min-height: calc(100vh - 130px);
}
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 2.1px;
  font-weight: 750;
  color: var(--green);
  display: block;
  margin-bottom: 9px;
}
h1 {
  font-size: 29px;
  line-height: 1.3;
  letter-spacing: -0.8px;
  margin: 6px 0 10px;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.35px;
  margin: 0 0 9px;
}
h3 {
  font-size: 14px;
  margin: 0 0 8px;
}
p {
  margin: 7px 0 15px;
}
.muted {
  color: var(--sub);
}
.small {
  font-size: 11px;
}
.page-head p {
  font-size: 12px;
  color: var(--sub);
  margin: 0;
  max-width: 640px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.primary,
.secondary,
.danger,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  padding: 10px 15px;
  border: 1px solid transparent;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 550;
}
.primary {
  background: var(--green);
  color: white;
}
.primary:hover {
  background: #06665c;
  color: white;
}
.secondary {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}
.secondary:hover {
  border-color: #8bad98;
}
.danger {
  color: var(--red);
  border-color: #e6c9c2;
  background: #fff8f6;
}
.ghost {
  color: var(--green);
  background: #edf4ee;
}
.compact {
  padding: 6px 10px;
  font-size: 11px;
}
.wide {
  width: 100%;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 24px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 19px 22px;
}
.stat .label {
  font-size: 11px;
  color: var(--sub);
}
.stat .value {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -1px;
  margin: 11px 0 7px;
  font-weight: 650;
}
.stat .hint {
  font-size: 10px;
  color: #7c9884;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 23px;
  margin-bottom: 20px;
  min-width: 0;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
  gap: 12px;
}
.panel-head h2 {
  font-size: 15px;
  margin: 0;
}
.panel-head p {
  font-size: 11px;
  color: var(--sub);
  margin: 4px 0 0;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
  gap: 20px;
}
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.hero-panel {
  background: #e5efe5;
  position: relative;
  overflow: hidden;
  padding: 26px 28px;
  border-radius: var(--radius);
  border: 1px solid #d0e1d0;
  margin-bottom: 23px;
}
.hero-panel h2 {
  font-size: 23px;
  line-height: 1.5;
  max-width: 540px;
}
.hero-panel p {
  color: #607d67;
  font-size: 12px;
  max-width: 620px;
  margin-bottom: 18px;
}
.hero-path {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 11px;
  color: #56725d;
}
.hero-path span {
  padding: 7px 10px;
  background: #ffffff9c;
  border-radius: 6px;
}
.empty {
  padding: 42px 24px;
  text-align: center;
  border: 1px dashed #cbdccd;
  border-radius: 10px;
  background: #fbfcfa;
}
.empty .empty-symbol {
  font-size: 26px;
  margin: 0 0 12px;
  color: #83a58d;
}
.empty h3 {
  font-size: 15px;
}
.empty p {
  max-width: 490px;
  margin: 7px auto 20px;
  font-size: 12px;
  color: var(--sub);
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  font-weight: 500;
  font-size: 10px;
  color: #789181;
  background: #f6f9f5;
  white-space: nowrap;
}
th,
td {
  padding: 13px 11px;
  border-bottom: 1px solid #edf1eb;
  vertical-align: top;
}
td strong {
  font-weight: 600;
}
td .actions {
  gap: 5px;
}
td .muted {
  font-size: 10px;
}
tr:last-child td {
  border-bottom: 0;
}
.pill {
  display: inline-block;
  white-space: nowrap;
  font-size: 10px;
  line-height: 1.5;
  border-radius: 5px;
  padding: 4px 7px;
  background: #edf3ed;
  color: #4d745a;
}
.pill.amber {
  background: #fcf0dc;
  color: #9b7032;
}
.pill.red {
  background: #f9e9e4;
  color: #ac5045;
}
.pill.gray {
  background: #edf0ed;
  color: #7a877e;
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 18px;
  flex-wrap: wrap;
}
.toolbar input {
  flex: 1;
  min-width: 140px;
  margin: 0;
}
.toolbar select {
  width: auto;
  min-width: 135px;
}
.faq-card {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 20px;
  margin-bottom: 12px;
  background: white;
}
.faq-card h3 {
  font-size: 15px;
  margin-bottom: 10px;
}
.faq-card .answer {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #456052;
  font-size: 12px;
  max-height: 150px;
  overflow: auto;
  margin-bottom: 13px;
}
.faq-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 10px;
  color: var(--sub);
  margin-bottom: 10px;
}
.faq-card .actions {
  border-top: 1px solid #edf1eb;
  padding-top: 12px;
  justify-content: space-between;
}
.source-line {
  font-size: 10px;
  color: var(--sub);
  margin: 10px 0;
}
.source-line button {
  font-size: 10px;
  background: none;
  border: 0;
  color: var(--green);
  padding: 0;
}
.notice {
  font-size: 12px;
  line-height: 1.8;
  background: #eef4ed;
  border: 1px solid #dce8d9;
  padding: 12px 15px;
  border-radius: 8px;
  color: #5a755e;
  margin: 15px 0;
}
.notice.amber {
  background: #fff7e9;
  border-color: #efdec1;
  color: #97703d;
}
.error {
  background: #fff0ec;
  color: #a64e41;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid #eccfc7;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.loading {
  padding: 80px 25px;
  text-align: center;
  color: var(--sub);
  font-size: 12px;
}
.loading:before {
  content: "◌";
  font-size: 22px;
  color: var(--green);
  display: block;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.step-list {
  counter-reset: step;
}
.step-row {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #edf1eb;
}
.step-row:last-child {
  border: 0;
}
.step-number {
  width: 27px;
  height: 27px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--green);
  flex-shrink: 0;
}
.step-row h3 {
  font-size: 12px;
  margin-bottom: 4px;
}
.step-row p {
  font-size: 11px;
  color: var(--sub);
  margin: 0;
}
.progress-track {
  height: 5px;
  border-radius: 5px;
  background: #e9eee7;
  margin: 10px 0 7px;
  overflow: hidden;
}
.progress-track progress {
  height: 5px;
  width: 100%;
  display: block;
  accent-color: var(--green);
}
.job-card {
  padding: 17px 0;
  border-bottom: 1px solid #edf1eb;
}
.job-card:last-child {
  border: 0;
}
.job-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.job-title {
  font-size: 12px;
}
.job-message {
  font-size: 11px;
  color: var(--sub);
  margin: 6px 0;
}
.job-result {
  background: #f5f8f3;
  padding: 11px;
  border-radius: 7px;
  font-size: 11px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 250px;
  overflow: auto;
}
.list-item {
  padding: 15px 0;
  border-bottom: 1px solid #edf1eb;
}
.list-item:last-child {
  border: 0;
}
.list-item h3 {
  font-size: 13px;
}
.list-item p {
  font-size: 11px;
  color: var(--sub);
  margin: 5px 0;
}
.quota-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.quota strong {
  font-size: 20px;
  display: block;
  margin: 9px 0;
}
.quota p {
  font-size: 11px;
  color: var(--sub);
}
.plan {
  padding: 24px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
}
.plan.current {
  border: 1px solid #69a982;
  background: #f5faf4;
}
.plan h3 {
  font-size: 16px;
}
.plan .price {
  font-size: 25px;
  margin: 20px 0;
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  font-size: 12px;
  color: #64816c;
}
.plan li {
  padding: 5px 0;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  color: #556f5f;
}
.check input {
  width: auto;
  margin: 5px 0 0;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.form-grid .full {
  grid-column: 1/-1;
}
label {
  display: block;
  font-size: 11px;
  font-weight: 550;
  margin-bottom: 14px;
  color: #4a6656;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  border: 1px solid #d4e1d4;
  border-radius: 7px;
  background: white;
  padding: 10px 11px;
  color: var(--ink);
  margin-top: 6px;
  font-size: 12px;
}
textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.8;
}
input[type="checkbox"] {
  display: inline;
  width: auto;
}
input[type="file"] {
  padding: 17px;
  background: #f8faf5;
  border-style: dashed;
}
label small {
  font-weight: 400;
  display: block;
  font-size: 10px;
  color: var(--sub);
  margin-top: 5px;
}
select {
  padding: 9px 11px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 16px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}
dialog {
  width: min(780px, calc(100vw - 28px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 26px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 100px #143c3333;
}
dialog::backdrop {
  background: #0d302b77;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.dialog-head h2 {
  font-size: 19px;
}
.close {
  border: 0;
  background: #f0f4ef;
  color: #637d69;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 18px;
}
.passage {
  padding: 15px;
  background: #f5f8f3;
  margin-bottom: 13px;
  border-radius: 8px;
}
.passage pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 12px/1.9 inherit;
  max-height: 260px;
  overflow: auto;
}
.passage strong {
  font-size: 11px;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  border-radius: 9px;
  background: #183f33;
  color: white;
  box-shadow: 0 8px 30px #173b3326;
  z-index: 100;
  font-size: 12px;
  max-width: 90vw;
}
.toast.fail {
  background: #934b3a;
}
.chat-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  min-height: 620px;
}
.chat-history {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px;
  height: fit-content;
  max-height: 650px;
  overflow: auto;
}
.chat-history button {
  border: 0;
  background: none;
  display: block;
  width: 100%;
  text-align: left;
  border-radius: 6px;
  padding: 12px 10px;
  font-size: 11px;
  color: #65816b;
}
.chat-history button.active {
  background: #edf4eb;
  color: var(--green);
}
.chat-main {
  min-width: 0;
}
.chat-messages {
  max-height: 650px;
  overflow: auto;
  padding: 5px 0 15px;
}
.message {
  margin: 15px 0;
}
.message-question {
  font-size: 12px;
  color: #698172;
  text-align: right;
  margin: 0 0 12px;
  padding: 10px 14px;
  background: #e9f2e6;
  border-radius: 10px 10px 0 10px;
  max-width: 85%;
  margin-left: auto;
  width: fit-content;
  white-space: pre-wrap;
}
.message-answer {
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 0 12px 12px;
  background: white;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.9;
}
.message-foot {
  font-size: 10px;
  color: #829581;
  margin-top: 9px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.evidence-list {
  font-size: 11px;
  color: #6d8771;
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 10px;
}
.evidence-list details {
  margin-top: 8px;
}
.evidence-list pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 11px/1.8 inherit;
  max-height: 150px;
  overflow: auto;
}
.guidance {
  font-size: 11px;
  color: #5c7b5e;
  background: #f2f7ee;
  padding: 12px;
  border-radius: 7px;
  margin-top: 12px;
}
.guidance p {
  margin: 4px 0;
}
.chat-composer {
  border: 1px solid #bbd4bd;
  background: white;
  border-radius: 12px;
  padding: 16px;
}
.chat-composer textarea {
  border: 0;
  padding: 0;
  min-height: 70px;
  font-size: 14px;
  resize: vertical;
}
.chat-composer .actions {
  justify-content: space-between;
  border-top: 1px solid #edf1eb;
  padding-top: 12px;
}
.chat-composer select {
  width: auto;
  padding: 5px 9px;
  font-size: 10px;
  margin: 0;
}
.chat-status {
  font-size: 11px;
  color: var(--sub);
  margin: 8px 0;
}
.embed-code {
  display: block;
  background: #f1f6ee;
  padding: 15px;
  border-radius: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
  color: #43694b;
}
footer {
  border-top: 1px solid var(--line);
  margin: 0 42px;
  padding: 16px 0;
  font-size: 10px;
  color: #8a9d8a;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.auth-story {
  padding: 50px 65px;
  background: #103b39;
  color: #cce0cf;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-story:after {
  content: "";
  width: 450px;
  height: 450px;
  border: 1px solid #a9c9b224;
  border-radius: 50%;
  position: absolute;
  bottom: -200px;
  right: -160px;
  box-shadow:
    0 0 0 60px #a9c9b207,
    0 0 0 120px #a9c9b204;
  pointer-events: none;
}
.auth-story h1 {
  font-size: 54px;
  line-height: 1.3;
  letter-spacing: -2px;
  font-weight: 650;
  color: #f0f6e9;
  margin: 26px 0;
}
.auth-story .eyebrow {
  color: #9fc4ad;
  font-size: 9px;
}
.auth-story p {
  font-size: 12px;
  line-height: 2.1;
  color: #a8c4b2;
}
.auth-story > small {
  font-size: 10px;
  color: #9abda8;
}
.auth-steps {
  display: flex;
  gap: 18px;
  font-size: 10px;
  margin-top: 32px;
  color: #c7ddc7;
}
.auth-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 35px;
  background: #f8faf5;
}
.auth-box {
  width: 360px;
  max-width: 100%;
}
.auth-box h2 {
  font-size: 26px;
  margin-top: 16px;
}
.auth-box > p {
  font-size: 12px;
  margin-bottom: 25px;
}
.auth-box form {
  margin: 25px 0;
}
.auth-box label {
  margin-bottom: 17px;
}
.auth-box input {
  padding: 12px;
}
.auth-box .primary {
  padding: 13px 18px;
  justify-content: space-between;
}
.segmented {
  display: flex;
  padding: 4px;
  background: #e9efe6;
  border-radius: 8px;
  gap: 4px;
}
.segmented button {
  border: 0;
  background: none;
  padding: 9px 12px;
  color: #6f866f;
  border-radius: 6px;
  font-size: 11px;
  flex: 1;
}
.segmented button.active {
  background: white;
  color: #234d3b;
  box-shadow: 0 2px 4px #1c472c0b;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.quick-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.version {
  border-top: 1px solid var(--line);
  padding: 15px 0;
}
.code {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
}
.inline-key {
  padding: 3px 6px;
  background: #edf2e9;
  border-radius: 4px;
}
.file-name {
  max-width: 260px;
  word-break: break-word;
}
.checkbox-list {
  max-height: 230px;
  overflow: auto;
}
.search-hints {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0;
}
.search-hints button {
  border: 1px solid var(--line);
  background: white;
  padding: 6px 10px;
  border-radius: 20px;
  color: #6b876e;
  font-size: 10px;
}
@media (min-width: 1600px) {
  .page {
    padding-top: 45px;
  }
  .auth-story {
    padding: 65px 90px;
  }
  .auth-story h1 {
    font-size: 67px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .sidebar {
    padding: 25px 13px;
  }
  .page {
    padding: 29px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .cards {
    gap: 10px;
  }
  .stat {
    padding: 17px;
  }
  .chat-layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .auth-story {
    padding: 40px;
  }
  .auth-story h1 {
    font-size: 43px;
  }
  .quota-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 18px 18px 11px;
    overflow: visible;
  }
  .sidebar .wordmark {
    margin: 0 0 16px;
    font-size: 27px;
  }
  .sidebar .wordmark small {
    display: inline;
    font-size: 7px;
    margin-left: 12px;
  }
  .org-badge,
  .sidebar-foot,
  .nav-label {
    display: none;
  }
  nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
  }
  nav > a {
    padding: 7px 10px;
    gap: 7px;
    flex-shrink: 0;
  }
  nav > a span {
    font-size: 11px;
  }
  .topbar {
    height: 58px;
    padding: 0 19px;
    font-size: 10px;
  }
  .top-actions {
    gap: 9px;
  }
  .top-actions select {
    max-width: 170px;
    font-size: 10px;
  }
  .user-dot {
    width: 24px;
    height: 24px;
  }
  .page {
    padding: 26px 18px;
  }
  .page-head {
    display: block;
    margin-bottom: 22px;
  }
  .page-head > .actions {
    margin-top: 16px;
  }
  h1 {
    font-size: 26px;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .stat .value {
    font-size: 29px;
  }
  .two-col,
  .quota-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .hero-panel {
    padding: 22px;
  }
  .hero-panel h2 {
    font-size: 20px;
  }
  .panel {
    padding: 18px;
  }
  .chat-layout {
    display: block;
  }
  .chat-history {
    max-height: 140px;
    margin-bottom: 15px;
  }
  .chat-history button {
    display: inline-block;
    width: auto;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .chat-messages {
    max-height: 650px;
  }
  .chat-composer .actions {
    gap: 8px;
    flex-wrap: wrap;
  }
  .chat-composer textarea {
    font-size: 14px;
  }
  dialog {
    padding: 20px;
  }
  footer {
    margin: 0 18px;
    display: block;
    font-size: 9px;
  }
  footer span {
    display: block;
    margin-top: 5px;
  }
  .auth-layout {
    display: block;
  }
  .auth-story {
    min-height: 230px;
    padding: 28px 30px;
  }
  .auth-story .wordmark {
    font-size: 28px;
  }
  .auth-story h1 {
    font-size: 29px;
    line-height: 1.4;
    letter-spacing: -0.8px;
    margin: 22px 0 12px;
  }
  .auth-story h1 br {
    display: none;
  }
  .auth-story p,
  .auth-story .eyebrow,
  .auth-story > small,
  .auth-steps {
    display: none;
  }
  .auth-panel {
    padding: 35px 24px;
  }
  .auth-box {
    width: 420px;
  }
  .table-wrap {
    margin: 0 -5px;
  }
  .toolbar input {
    min-width: 100px;
  }
  .toolbar select {
    min-width: 100px;
  }
  td,
  th {
    padding: 10px 8px;
  }
  .file-name {
    max-width: 180px;
  }
  .form-grid .full {
    grid-column: auto;
  }
  .message-answer {
    padding: 17px;
  }
  .message-question {
    max-width: 95%;
  }
}
/* Sales workspace: short decisions next to the actual conversation. */
.sales-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.sales-list {
  position: sticky;
  top: 20px;
  padding: 18px;
}
.sales-list input {
  width: 100%;
  margin-bottom: 12px;
}
.sales-list .text-button {
  display: block;
  margin-top: 18px;
  font-size: 12px;
}
.sales-opportunity {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  padding: 14px 12px;
  background: transparent;
  border-radius: 10px;
  margin: 5px 0;
  color: inherit;
}
.sales-opportunity strong,
.sales-opportunity span,
.sales-opportunity small {
  display: block;
  overflow-wrap: anywhere;
}
.sales-opportunity span {
  margin: 6px 0;
  font-size: 12px;
  color: #607673;
}
.sales-opportunity.selected {
  background: #e8f2ec;
  border-color: #c5d9cc;
}
.sales-opportunity:hover {
  background: #f0f5f1;
}
.sales-opportunity[hidden] {
  display: none;
}
.sales-main {
  min-width: 0;
  display: grid;
  gap: 20px;
}
.sales-main > .panel {
  margin: 0;
}
.sales-columns,
.sales-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.sales-columns > .panel,
.sales-resource-grid > .panel {
  min-width: 0;
  margin: 0;
}
.sales-timeline {
  max-height: 480px;
  overflow: auto;
  margin: 20px 0;
  padding-right: 4px;
}
.sales-turn {
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: #f1f5f2;
  border: 1px solid #e2e9e4;
}
.sales-turn.agent {
  background: #e8f3f1;
}
.sales-turn p,
.sales-draft,
.sales-coaching p,
.sales-resource-grid p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.sales-coaching {
  border-top: 1px solid #dce6df;
  margin-top: 20px;
  padding-top: 20px;
}
.sales-coaching h3 {
  font-size: 14px;
  margin: 18px 0 8px;
}
.sales-draft {
  border-left: 3px solid #258678;
  background: #eff6ef;
  padding: 18px;
  line-height: 1.8;
  border-radius: 0 10px 10px 0;
}
.sales-coaching .actions {
  flex-wrap: wrap;
  margin-top: 16px;
}
.sales-main details,
.sales-resource-grid details {
  margin-top: 18px;
}
.sales-main summary,
.sales-resource-grid summary {
  color: #426a60;
  cursor: pointer;
  font-size: 13px;
}
.sales-main blockquote,
.sales-resource-grid blockquote {
  margin: 12px 0;
  padding: 10px 14px;
  border-left: 3px solid #c0d6c9;
  background: #f5f8f5;
  overflow-wrap: anywhere;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.stats-grid .stat span {
  display: block;
  color: #607673;
  font-size: 12px;
}
.stats-grid .stat strong {
  display: block;
  font-size: 30px;
  margin-top: 8px;
}
@media (max-width: 1350px) {
  .sales-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .sales-columns {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .sales-layout,
  .sales-resource-grid {
    grid-template-columns: 1fr;
  }
  .sales-list {
    position: static;
  }
  #sales-opportunity-list {
    max-height: 240px;
    overflow: auto;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sales-turn .job-top {
    align-items: start;
    gap: 8px;
    flex-direction: column;
  }
}

.website-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.website-summary > div {
  background: var(--pale);
  padding: 15px;
  border-radius: 10px;
}
.website-summary strong {
  display: block;
  font-size: 28px;
  line-height: 1.3;
}
.website-summary span {
  font-size: 11px;
  color: var(--sub);
}
.website-report {
  width: min(1040px, calc(100vw - 32px));
  max-width: 1040px;
}
.website-report td:first-child {
  max-width: 450px;
  overflow-wrap: anywhere;
}
#website-form {
  padding: 0 6px 6px;
}
@media (max-width: 700px) {
  .website-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .website-report {
    width: calc(100vw - 20px);
  }
}
