@import url("./tokens.css");
.page-heading > button {
  flex-shrink: 0;
  white-space: nowrap;
}
.detail-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 13px;
}
.detail-fields dt {
  color: var(--muted);
}
.detail-fields dd {
  margin: 0;
  overflow-wrap: anywhere;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font:
    15px/1.65 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #bf8c43;
  outline-offset: 4px;
}
button {
  border: 0;
}
a {
  color: var(--green);
}
h1,
h2,
h3,
p {
  margin: 0 0 16px;
}
h1 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.35;
  letter-spacing: -1.5px;
  font-weight: 550;
}
h2 {
  font-size: 30px;
  font-weight: 550;
  letter-spacing: -0.7px;
}
h3 {
  font-size: 18px;
  font-weight: 600;
}
small,
.small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 650;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -1px;
}
.brand span {
  font-weight: 400;
  color: #7d9b80;
}
.primary,
.secondary,
.danger {
  padding: 11px 20px;
  border-radius: 9px;
  font-weight: 550;
}
.primary {
  color: white;
  background: var(--green);
}
.primary:hover {
  background: #143d32;
}
.secondary {
  color: var(--green);
  background: #edf1eb;
  border: 1px solid var(--line);
}
.danger {
  background: #fff0ed;
  color: #963e30;
  border: 1px solid #ebc5bd;
}
.text-button {
  background: none;
  color: var(--green);
  padding: 10px 0;
  text-align: left;
}
.full {
  width: 100%;
}
.text-button.full {
  text-align: center;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 550;
  margin-bottom: 17px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  border: 1px solid #d9dfd4;
  background: #fff;
  padding: 11px 13px;
  border-radius: 8px;
  color: var(--ink);
  margin-top: 7px;
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px #dbe7dd;
}
textarea {
  resize: vertical;
  min-height: 95px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
}
.check input {
  width: 16px;
  margin: 0;
}
.error {
  color: #a23d31;
  font-size: 13px;
  white-space: pre-wrap;
}
.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.welcome {
  background: #e7ece3;
  padding: 45px 8%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}
.welcome-copy {
  padding: 65px 0 25px;
}
.welcome h1 {
  margin-top: 25px;
}
.welcome-copy > p {
  font-size: 17px;
  color: #647166;
}
.signal {
  margin: 35px -20px 20px;
}
.signal svg {
  width: 100%;
  overflow: visible;
}
.signal path {
  fill: none;
  stroke: #809b79;
  stroke-width: 2.5;
}
.welcome-foot {
  font-size: 12px;
  color: #647166;
}
.welcome-foot span {
  padding: 0 12px;
  color: #a5b09e;
}
.welcome > small {
  color: var(--muted);
}
.login-panel {
  display: grid;
  place-items: center;
  padding: 50px 30px;
}
.login-card {
  width: 100%;
  max-width: 380px;
}
.login-card h2 {
  margin: 15px 0 9px;
}
.login-card form {
  margin-top: 30px;
}
.sidebar {
  width: 235px;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 35px 25px;
  background: #edf0e9;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.sidebar-caption {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin: 45px 12px 15px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 15px;
  background: none;
  color: #637164;
  width: 100%;
  text-align: left;
  padding: 14px 17px;
  border-radius: 9px;
  margin: 5px 0;
  font-size: 14px;
}
.nav span {
  font-size: 20px;
  width: 24px;
}
.nav.active {
  background: #dce5d7;
  color: #234737;
  font-weight: 650;
}
.nav:hover {
  background: #e0e7db;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 20px 10px 0;
  font-size: 12px;
}
.sidebar-bottom p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}
.online-dot {
  display: inline-block;
  background: #7a9e71;
  width: 6px;
  height: 6px;
  border-radius: 100%;
  margin-right: 6px;
}
.workspace-main {
  margin-left: 235px;
  padding: 0 42px;
}
.topbar {
  height: 83px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: 1.3px;
  color: var(--muted);
}
.topbar b {
  font-weight: 500;
}
#page {
  max-width: 1100px;
  margin: auto;
  padding: 37px 0 20px;
  min-height: calc(100vh - 135px);
}
footer {
  text-align: center;
  color: var(--muted);
  font-size: 10px;
  padding: 16px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.page-heading h2 {
  margin: 7px 0;
}
.page-heading p {
  margin: 0;
}
.pill {
  display: inline-block;
  padding: 4px 10px;
  background: #edf1e9;
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 11px;
  color: #5f745f;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
}
.card h3 {
  margin-bottom: 10px;
}
.card p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.card .actions {
  margin-top: 15px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.empty-mark {
  display: block;
  font-size: 35px;
  color: #9aaa91;
  margin-bottom: 12px;
}
.chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 24px;
}
.chat-box {
  min-width: 0;
}
.chat-intro {
  padding: 42px 30px;
  background: #eaf0e4;
  border: 1px solid #dbe4d3;
  border-radius: 17px;
  margin-bottom: 24px;
}
.chat-intro h2 {
  font-size: 29px;
  line-height: 1.6;
  margin-top: 10px;
}
.chat-intro p {
  color: #647361;
  font-size: 14px;
}
.suggestions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.suggestions button {
  border: 1px solid #cfdcc7;
  background: #f7f9f3;
  color: var(--green);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
}
.history {
  align-self: start;
}
.history button {
  display: block;
  text-align: left;
  background: none;
  color: var(--ink);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history button.selected {
  font-weight: 700;
  color: var(--green);
}
.message {
  padding: 19px 22px;
  border-radius: 13px;
  margin: 15px 0;
  overflow-wrap: anywhere;
}
.message.user {
  background: #e5eddc;
  margin-left: 12%;
}
.message.assistant {
  background: white;
  border: 1px solid var(--line);
  margin-right: 5%;
}
.message .message-text {
  white-space: pre-wrap;
}
.message-label {
  font-size: 10px;
  letter-spacing: 1px;
  margin-bottom: 9px;
  color: var(--muted);
}
.ai-notice {
  font-size: 10px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 15px;
}
.composer {
  border: 1px solid #c9d5c1;
  border-radius: 12px;
  background: white;
  padding: 15px;
  position: sticky;
  bottom: 10px;
  box-shadow: 0 4px 25px #253d1e09;
}
.composer textarea {
  border: 0;
  box-shadow: none;
  margin: 0;
  padding: 4px;
  min-height: 70px;
  background: transparent;
}
.composer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.attachment {
  font-size: 12px;
  max-width: 65%;
  margin: 0;
}
.attachment input {
  font-size: 11px;
  padding: 4px;
  border: 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 22px;
}
.metric:first-child {
  background: #e4eddc;
  border-color: #d6e1cc;
}
.metric .value {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -1px;
  margin-top: 9px;
}
.metric small {
  color: var(--muted);
}
.chart {
  width: 100%;
  height: 240px;
  display: block;
}
.chart-labels {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th {
  text-align: left;
  font-weight: 500;
  color: var(--muted);
  padding: 12px 9px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 13px 9px;
  border-bottom: 1px solid #edf0e9;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.timeline-row {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-row p {
  margin: 5px 0;
}
.timeline-row small {
  color: var(--muted);
}
.section-label {
  margin: 25px 0 16px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
}
#notice {
  position: fixed;
  z-index: 100;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(600px, 90vw);
  padding: 12px 20px;
  background: #244d3c;
  color: white;
  border-radius: 10px;
  box-shadow: 0 5px 25px #0002;
}
#notice.error {
  background: #8c3a2d;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  max-width: min(720px, 90vw);
  max-height: 85vh;
  width: 100%;
  padding: 30px;
}
dialog::backdrop {
  background: #14291c55;
}
dialog > button {
  float: right;
}
dialog h2 {
  padding-right: 70px;
}
dialog pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}
dialog .card {
  padding: 15px;
}
.safe-note {
  background: #f6eddf;
  padding: 15px;
  border-radius: 9px;
  font-size: 13px;
  margin: 15px 0;
  color: #725b3c;
}
@media (max-width: 1100px) {
  .workspace-main {
    padding: 0 25px;
  }
  .chat-layout {
    grid-template-columns: 1fr;
  }
  .history {
    order: -1;
  }
  .history-list {
    display: flex;
    gap: 15px;
    overflow: auto;
    max-height: 80px;
  }
  .history-list button {
    min-width: 130px;
    max-width: 200px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .login-layout {
    grid-template-columns: 1fr;
  }
  .welcome {
    min-height: auto;
    padding: 25px;
  }
  .welcome-copy {
    padding: 25px 0 0;
  }
  .welcome h1 {
    font-size: 32px;
  }
  .welcome-copy > p,
  .signal,
  .welcome-foot,
  .welcome > small {
    display: none;
  }
  .login-panel {
    padding: 35px 25px;
  }
  .sidebar {
    inset: auto 0 0 0;
    width: 100%;
    height: 74px;
    padding: 4px 7px calc(4px + env(safe-area-inset-bottom));
    z-index: 20;
    border-top: 1px solid var(--line);
  }
  .sidebar > .brand,
  .sidebar-caption,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    width: 100%;
    justify-content: space-between;
  }
  .nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    font-size: 10px;
    padding: 4px 7px;
    margin: 0;
    text-align: center;
    align-items: center;
    min-width: 0;
  }
  .nav span {
    font-size: 20px;
  }
  .workspace-main {
    margin: 0;
    padding: 0 18px 76px;
  }
  .topbar {
    height: 60px;
    letter-spacing: 0.4px;
  }
  .topbar > span:last-child {
    font-size: 9px;
  }
  #page {
    padding-top: 24px;
  }
  .page-heading {
    align-items: start;
    gap: 10px;
  }
  .page-heading h2 {
    font-size: 26px;
  }
  .page-heading .primary,
  .page-heading .secondary {
    padding: 8px 12px;
    font-size: 12px;
  }
  .grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 16px;
  }
  .metric .value {
    font-size: 27px;
  }
  .card {
    padding: 20px;
  }
  .chat-intro {
    padding: 25px;
  }
  .chat-intro h2 {
    font-size: 25px;
  }
  .message {
    padding: 16px;
  }
  .composer {
    bottom: 82px;
  }
  .composer-bottom {
    align-items: end;
  }
  .chart {
    height: 200px;
  }
}
