:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #243b35;
  background: #f5f7f5;
  font-synthesis: none;
  --green: #176448;
  --dark: #163e35;
  --muted: #708078;
  --line: #e1e8e2;
  --soft: #edf5ef;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d7e1da;
  border-radius: 8px;
  background: white;
  color: #263f35;
  min-height: 42px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #93c7a9;
  outline-offset: 1px;
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #53665d;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 650;
  line-height: 1.2;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 16px;
}
p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}
small {
  line-height: 1.6;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 1.4px;
  font-weight: 750;
}
.brand b {
  width: 43px;
  height: 43px;
  border-radius: 13px;
  background: var(--green);
  color: white;
  display: grid;
  place-items: center;
  font-size: 24px;
  letter-spacing: -3px;
  padding-right: 3px;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  margin-top: 5px;
  color: #7e9387;
}
.eyebrow {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.8px;
  color: #739481;
  display: block;
  margin-bottom: 12px;
}
.primary,
.secondary,
.danger {
  border: 0;
  border-radius: 8px;
  padding: 11px 17px;
  font-size: 13px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  text-decoration: none;
}
.primary {
  background: var(--green);
  color: #fff;
}
.primary:hover {
  background: #124e38;
}
.secondary {
  background: #fff;
  border: 1px solid var(--line);
  color: #315947;
}
.secondary:hover {
  background: #f3f8f4;
}
.danger {
  background: #fff0ef;
  color: #a23c33;
}
.text-button {
  background: transparent;
  border: 0;
  color: #667e70;
  font-size: 12px;
  padding: 9px;
}
.badge,
.mode-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 30px;
  padding: 7px 11px;
  background: #eaf4ed;
  color: #377953;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
}
.mode-pill {
  border: 1px solid #d7e7dc;
  white-space: nowrap;
}
.login-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  background: white;
}
.login-story {
  padding: 65px max(40px, 10%);
  background: #edf3ef;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-story .brand {
  margin-bottom: 95px;
}
.login-story h1 {
  font-size: clamp(36px, 4vw, 56px);
  color: #194b39;
  line-height: 1.1;
  letter-spacing: -2px;
}
.login-story > p {
  font-size: 16px;
  max-width: 360px;
}
.story-note {
  display: flex;
  gap: 16px;
  background: #fff9;
  border: 1px solid white;
  border-radius: 14px;
  padding: 22px;
  max-width: 420px;
  margin-top: 40px;
}
.story-note strong {
  font-size: 14px;
}
.story-note p {
  font-size: 12px;
  margin: 7px 0 0;
}
.spark {
  font-size: 27px;
  color: #54a172;
}
.story-footer {
  font-size: 10px;
  letter-spacing: 2px;
  color: #718a7d;
  margin-top: 60px;
  display: flex;
  gap: 20px;
}
.login-form {
  width: min(420px, 85%);
  margin: auto;
  display: grid;
  gap: 21px;
}
.login-form .badge {
  justify-self: start;
}
.login-form h2 {
  margin: 0;
  font-size: 28px;
}
.login-form > p {
  margin: 0;
}
.login-form small {
  font-size: 11px;
}
.error {
  color: #a84439;
  font-size: 13px;
}
.shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 228px;
  flex-shrink: 0;
  position: fixed;
  inset: 0 auto 0 0;
  background: white;
  border-right: 1px solid var(--line);
  padding: 32px 19px;
  display: flex;
  flex-direction: column;
}
.sidebar .brand {
  margin: 0 7px 48px;
}
.nav-label {
  font-size: 9px;
  color: #8b9b91;
  letter-spacing: 1.8px;
  font-weight: 700;
  padding: 0 14px;
  margin-bottom: 15px;
}
nav {
  display: grid;
  gap: 5px;
}
nav button {
  border: 0;
  background: transparent;
  border-radius: 9px;
  text-align: left;
  padding: 13px 15px;
  color: #6c7c72;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 13px;
}
nav button span {
  width: 20px;
  text-align: center;
  font-size: 18px;
}
nav button.active {
  color: #216544;
  background: #edf5ee;
  font-weight: 650;
}
nav button:hover {
  background: #f2f6f2;
}
.sidebar-bottom {
  margin-top: auto;
  font-size: 11px;
  color: #446651;
  padding: 30px 10px 0;
}
.sidebar-bottom div {
  font-size: 10px;
  color: #97a399;
  margin: 8px 0 0 12px;
  line-height: 1.7;
}
.status-dot {
  display: inline-block;
  height: 6px;
  width: 6px;
  background: #59a96b;
  border-radius: 50%;
  margin-right: 5px;
}
.shell main {
  margin-left: 228px;
  width: calc(100% - 228px);
}
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  height: 72px;
  padding: 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.breadcrumb {
  font-size: 12px;
  color: #91a095;
  display: flex;
  gap: 14px;
}
.breadcrumb strong {
  color: #51695a;
  font-weight: 500;
}
.user-menu {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 12px;
}
.page {
  max-width: 1500px;
  margin: auto;
  padding: 38px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 27px;
}
.page-heading h1 {
  margin-bottom: 9px;
}
.page-heading p {
  margin: 0;
  font-size: 13px;
}
.filters {
  display: flex;
  align-items: end;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 17px 19px;
  margin-bottom: 26px;
}
.filters label:first-child {
  flex: 1.3;
}
.filters label {
  flex: 1;
}
.filters label:nth-child(3),
.filters label:nth-child(4) {
  flex: 0.8;
}
.filters input,
.filters select {
  font-size: 12px;
  padding: 10px 9px;
}
.filters label {
  font-size: 10px;
}
.grid {
  display: grid;
  gap: 18px;
}
.two {
  grid-template-columns: 1.35fr 1fr;
}
.three {
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 23px;
  margin-bottom: 20px;
}
.card h2 {
  font-size: 17px;
}
.card h3 {
  margin-bottom: 8px;
}
.card > p {
  font-size: 12px;
}
.section-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.section-top h2,
.section-top h3 {
  margin: 0;
}
.section-top small {
  font-size: 10px;
}
.hero {
  background: #173f35;
  color: #fff;
  border-color: #173f35;
  padding: 27px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.hero .eyebrow {
  color: #a7ccb2;
}
.hero h2 {
  font-size: 23px;
  margin-bottom: 10px;
}
.hero p {
  color: #bbcec2;
  font-size: 13px;
  max-width: 650px;
  margin: 0;
}
.hero .primary {
  background: #d6efb8;
  color: #284e31;
  white-space: nowrap;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  margin-bottom: 22px;
}
.kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 19px;
}
.kpi .label {
  font-size: 10px;
  color: #7c8e80;
  display: block;
  margin-bottom: 10px;
}
.kpi strong {
  font-size: 25px;
  letter-spacing: -0.8px;
  font-weight: 650;
  display: block;
}
.kpi small {
  font-size: 10px;
  display: block;
  margin-top: 10px;
}
.platform-label {
  display: flex;
  gap: 9px;
  align-items: center;
}
.platform-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #40856a;
  font-weight: 800;
  font-size: 18px;
}
.muted {
  color: var(--muted);
}
.empty {
  text-align: center;
  padding: 45px 25px;
}
.empty .empty-icon {
  font-size: 35px;
  color: #8daf99;
  margin-bottom: 15px;
}
.empty h3 {
  font-size: 17px;
}
.empty p {
  font-size: 13px;
  max-width: 540px;
  margin: 0 auto 20px;
}
.notice {
  border: 1px solid #e1e9d9;
  background: #f2f6eb;
  color: #687959;
  padding: 13px 16px;
  font-size: 12px;
  line-height: 1.7;
  border-radius: 9px;
  margin-bottom: 20px;
}
.notice.warning {
  background: #fff9ec;
  border-color: #f0e4c9;
  color: #8b7145;
}
.list {
  display: grid;
  gap: 13px;
}
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #edf1ec;
  font-size: 12px;
}
.list-row:last-child {
  border: 0;
}
.list-row strong {
  font-size: 13px;
}
.list-row small {
  display: block;
  font-size: 11px;
  margin-top: 5px;
}
.status {
  font-size: 10px;
  font-weight: 650;
  border-radius: 20px;
  background: #eff3ed;
  color: #658060;
  padding: 5px 9px;
  white-space: nowrap;
}
.status.Approved,
.status.Completed,
.status.Connected {
  background: #e7f4ea;
  color: #2d7c45;
}
.status.Rejected,
.status.Failed {
  background: #fff0ed;
  color: #a95b4f;
}
.status.Running,
.status.Queued {
  background: #fff7e5;
  color: #9b7734;
}
.bar-row {
  display: grid;
  grid-template-columns: 125px 1fr 30px;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  font-size: 11px;
}
.bar-track {
  height: 8px;
  border-radius: 10px;
  background: #eef3ed;
  overflow: hidden;
}
.bar-fill {
  display: block;
  height: 100%;
  background: #6bad7a;
  border-radius: 10px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 19px;
}
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.quick-actions button {
  font-size: 11px;
}
.question-box {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.question-box textarea {
  border: 0;
  min-height: 110px;
}
.question-box .actions {
  justify-content: space-between;
  align-items: center;
  margin-top: 7px;
}
.question-box small {
  font-size: 10px;
}
.conversation {
  margin-top: 20px;
}
.conversation .question {
  background: #ecf3ed;
  padding: 15px 20px;
  border-radius: 10px;
  font-size: 13px;
  color: #446451;
  margin-bottom: 12px;
}
.answer {
  white-space: pre-wrap;
  line-height: 1.75;
  font-size: 13px;
}
.result-details {
  margin-top: 20px;
}
.result-details summary {
  font-size: 12px;
  cursor: pointer;
  font-weight: 650;
  padding: 10px 0;
}
.result-details pre {
  font-family: inherit;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f5f8f4;
  padding: 15px;
  border-radius: 8px;
}
.recommendation h3 {
  font-size: 17px;
  margin: 12px 0;
}
.recommendation dl {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px;
  font-size: 12px;
  line-height: 1.6;
}
.recommendation dt {
  color: #7f9082;
}
.recommendation dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.recommendation .severity {
  font-size: 10px;
  color: #916936;
  letter-spacing: 1px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
th {
  font-size: 10px;
  color: #8a998c;
  padding: 11px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
td {
  padding: 14px 11px;
  border-bottom: 1px solid #edf1ec;
  color: #506d59;
}
td small {
  font-size: 10px;
}
.token-box {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  background: #f3f6f2;
  padding: 15px;
  white-space: pre-wrap;
  word-break: break-all;
  border: 1px solid var(--line);
  border-radius: 8px;
  user-select: all;
}
.loading {
  padding: 65px;
  text-align: center;
  color: #819087;
  font-size: 13px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 17px;
  max-width: 800px;
  width: 92%;
  max-height: 90vh;
  padding: 30px;
  color: #254335;
}
dialog::backdrop {
  background: #0d231b88;
  backdrop-filter: blur(3px);
}
.close {
  float: right;
  border: 0;
  background: transparent;
  font-size: 25px;
  color: #6b7c71;
}
#toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  padding: 13px 20px;
  border-radius: 10px;
  background: #214d3e;
  color: white;
  font-size: 13px;
  box-shadow: 0 8px 30px #0002;
  display: none;
  max-width: 460px;
}
#toast.show {
  display: block;
}
.sources a {
  color: #367554;
  overflow-wrap: anywhere;
}
.code-line {
  font-family: ui-monospace, monospace;
  font-size: 12px;
}
.footer-note {
  font-size: 10px;
  color: #8e9e91;
  text-align: center;
  margin: 25px 0;
}
.client-card h3 {
  font-size: 18px;
}
.client-card p {
  font-size: 12px;
}
.skeleton-line {
  background: #eaf0e9;
  border-radius: 4px;
  height: 10px;
  margin: 16px auto;
  max-width: 230px;
}
a {
  color: #267751;
}
.check-list {
  padding-left: 18px;
  color: #6b8070;
  font-size: 12px;
  line-height: 1.9;
}
@media (min-width: 1500px) {
  .page {
    padding: 42px 55px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 195px;
    padding: 28px 12px;
  }
  .shell main {
    margin-left: 195px;
    width: calc(100% - 195px);
  }
  .page {
    padding: 26px;
  }
  .topbar {
    padding: 0 26px;
  }
  .filters {
    flex-wrap: wrap;
  }
  .filters label {
    min-width: 130px;
  }
  .mode-pill {
    display: none;
  }
  .two {
    grid-template-columns: 1fr;
  }
  .kpis {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 760px) {
  .sidebar {
    position: static;
    width: 100%;
    padding: 15px;
    display: block;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .brand {
    margin: 0 0 14px;
  }
  .sidebar .nav-label,
  .sidebar-bottom {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    gap: 4px;
  }
  nav button {
    white-space: nowrap;
    padding: 9px 11px;
    font-size: 11px;
  }
  nav button span {
    display: none;
  }
  .shell {
    display: block;
  }
  .shell main {
    margin: 0;
    width: 100%;
  }
  .topbar {
    padding: 0 20px;
    height: 53px;
  }
  .page {
    padding: 24px 16px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .filters {
    padding: 13px;
    gap: 10px;
  }
  .filters label {
    min-width: calc(50% - 10px);
  }
  .filters .secondary {
    width: 100%;
  }
  .kpis {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .kpi {
    padding: 15px;
  }
  .kpi strong {
    font-size: 22px;
  }
  .hero {
    padding: 23px;
    display: block;
  }
  .hero .primary {
    margin-top: 19px;
  }
  .three,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 19px;
  }
  .recommendation dl {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .recommendation dd {
    margin-bottom: 9px;
  }
  .login-shell {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 30px;
  }
  .login-story .brand {
    margin-bottom: 30px;
  }
  .login-story h1 {
    font-size: 35px;
  }
  .story-note,
  .story-footer {
    display: none;
  }
  .login-form {
    margin: 35px auto;
  }
  .user-menu {
    gap: 5px;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .form-grid .wide {
    grid-column: auto;
  }
}
