:root {
  font-family:
    Inter,
    Segoe UI,
    Arial,
    sans-serif;
  color: #192d29;
  background: #f4f6f3;
  font-synthesis: none;
  font-size: 16px;
  --green: #245d4c;
  --muted: #56664f;
  --border: #dce3dc;
  --lime: #c9ef9b;
}
.grid > *,
.flow-layout > *,
.details-grid > *,
.cards > * {
  min-width: 0;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #6085d1;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--green);
  color: white;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  min-height: 40px;
}
button:hover {
  filter: brightness(0.95);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.secondary {
  background: white;
  color: #304d42;
  border-color: var(--border);
}
.danger {
  background: #fff1ed;
  color: #a63d28;
  border-color: #f2c5b8;
}
.small {
  padding: 6px 10px;
  min-height: 32px;
  font-size: 0.8125rem;
}
.text-button {
  background: none;
  color: var(--green);
  padding: 4px;
}
.muted,
small {
  color: var(--muted);
}
small {
  display: block;
  font-size: 0.75rem;
  margin-top: 5px;
  line-height: 1.5;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 20px;
  top: 10px;
  z-index: 20;
  background: white;
  padding: 15px;
}
#sidebar {
  width: 244px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 750;
  padding: 0 10px;
}
.brand b {
  color: #56664f;
  font-weight: 500;
}
.brand small {
  font-size: 0.625rem;
  letter-spacing: 0.13em;
  margin-top: 4px;
}
.mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #143d36;
  color: #c9ef9b;
  font-size: 1.9rem;
}
.workspace {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  padding: 12px 10px;
  margin: 30px 0 22px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
}
.avatar {
  background: #eef2e9;
  border: 1px solid #e0e8d9;
  border-radius: 7px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  font-size: 0.75rem;
  color: #45634a;
  flex-shrink: 0;
}
nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 14px;
  margin: 4px 0;
  font-size: 0.875rem;
  color: #5a6a63;
  border-radius: 7px;
}
nav a.active {
  background: #e9f0e3;
  color: #284c38;
  font-weight: 650;
}
nav a:hover {
  background: #f2f5ef;
}
.nav-icon {
  width: 18px;
  font-size: 1.1rem;
  text-align: center;
}
.nav-count {
  margin-left: auto;
  background: #d3e3bd;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.75rem;
}
.sidebar-bottom {
  margin-top: auto;
  font-size: 0.75rem;
  padding: 25px 10px 0;
  color: #496250;
}
.sidebar-bottom p {
  color: #56664f;
}
.identity {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.identity small {
  font-size: 0.625rem;
  max-width: 140px;
}
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #579d60;
  margin-right: 7px;
}
.shell {
  margin-left: 244px;
}
.topbar {
  height: 72px;
  border-bottom: 1px solid var(--border);
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 36px;
  font-size: 0.8125rem;
}
.slash {
  margin: 0 15px;
  color: #56664f;
}
.top-status {
  display: flex;
  align-items: center;
  color: #627467;
  gap: 5px;
}
.chip {
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  border: 1px solid #cbdac2;
  padding: 5px 8px;
  border-radius: 4px;
  margin-left: 15px;
  color: #537740;
  background: #f4f8ee;
}
main {
  max-width: 1600px;
  margin: auto;
  padding: 32px 36px 50px;
}
h1 {
  font-size: 1.8rem;
  letter-spacing: -0.035em;
  font-weight: 650;
  margin: 5px 0 9px;
}
h2 {
  font-size: 1rem;
  margin: 0;
  letter-spacing: -0.015em;
}
h3 {
  font-size: 0.9375rem;
  margin: 0 0 12px;
}
p {
  line-height: 1.65;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}
.page-head p {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}
.eyebrow {
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  color: #56664f;
  font-weight: 700;
  text-transform: uppercase;
}
.actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 25px;
}
.stat {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  position: relative;
}
.stat .label {
  font-size: 0.8125rem;
  color: #67766b;
}
.stat strong {
  font-size: 2rem;
  font-weight: 550;
  display: block;
  margin: 14px 0 5px;
  letter-spacing: -0.05em;
}
.stat small {
  font-size: 0.6875rem;
}
.stat-icon {
  position: absolute;
  right: 18px;
  top: 17px;
  font-size: 1.1rem;
  color: #56664f;
}
.stat.alert {
  background: #f8faef;
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
  gap: 22px;
}
.panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 22px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 22px;
  border-bottom: 1px solid #edf0eb;
  gap: 12px;
}
.panel-body {
  padding: 22px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 0.6875rem;
  line-height: 1.4;
  font-weight: 600;
  white-space: normal;
  background: #f0f2ef;
  color: #56664f;
}
.tag.green {
  background: #eaf3e6;
  color: #3d7337;
}
.tag.amber {
  background: #fff2d8;
  color: #8b6524;
}
.tag.red {
  background: #fde9e4;
  color: #a84e3a;
}
.tag.blue {
  background: #eaf0fc;
  color: #456594;
}
.priority {
  font-size: 0.75rem;
  font-weight: 550;
}
.priority:before {
  content: '●';
  font-size: 0.5rem;
  margin-right: 6px;
  color: #b3bdaf;
}
.priority.High:before,
.priority.Urgent:before {
  color: #c9813d;
}
.priority.Urgent {
  color: #a44636;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.8125rem;
}
th {
  font-size: 0.625rem;
  letter-spacing: 0.07em;
  font-weight: 600;
  text-transform: uppercase;
  color: #56664f;
  padding: 13px 20px;
  background: #fbfcfa;
  white-space: nowrap;
}
td {
  padding: 16px 20px;
  border-top: 1px solid #edf0eb;
  vertical-align: middle;
}
td .title {
  font-weight: 550;
  color: #283e33;
  display: block;
  max-width: 330px;
}
td small {
  font-size: 0.6875rem;
}
tr.clickable {
  cursor: pointer;
}
tr.clickable:hover {
  background: #f7faf4;
}
.request-title {
  display: flex;
  gap: 12px;
  align-items: center;
}
.request-icon {
  background: #f1f5ed;
  border: 1px solid #e3ebdc;
  width: 34px;
  height: 36px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #56664f;
}
.review-card {
  padding: 17px 20px;
  border-bottom: 1px solid #edf0eb;
}
.review-card:last-child {
  border: 0;
}
.review-card p {
  font-size: 0.8125rem;
  font-weight: 550;
  margin: 11px 0 3px;
}
.review-card small {
  font-size: 0.6875rem;
}
.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 13px;
}
.hero-strip {
  padding: 22px;
  background: #eaf0e2;
  border: 1px solid #d6e2cb;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}
.hero-strip p {
  font-size: 0.8125rem;
  color: #56664f;
  margin: 7px 0 0;
}
.mini-flow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #56664f;
}
.mini-node {
  border: 1px solid #d9e4d0;
  padding: 10px;
  background: white;
  border-radius: 6px;
}
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  background: white;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 14px;
  margin-bottom: 20px;
}
.filters input {
  flex: 1;
  min-width: 160px;
}
.filters select {
  max-width: 210px;
}
input,
textarea,
select {
  padding: 10px 12px;
  border: 1px solid #d4ded4;
  border-radius: 6px;
  color: #2e4439;
  background: white;
  font-size: 0.875rem;
  max-width: 100%;
}
textarea {
  width: 100%;
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}
label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 550;
  margin-bottom: 7px;
}
form .field {
  margin-bottom: 17px;
}
form input,
form select {
  width: 100%;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  font-size: 0.75rem;
  color: #56664f;
}
.empty {
  text-align: center;
  padding: 50px 20px;
  color: #56664f;
}
.empty h3 {
  font-size: 1.1rem;
  color: #35513d;
}
.flow-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.3fr);
  gap: 22px;
}
.steps {
  padding: 17px;
}
.step {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: white;
  border: 1px solid #e2e8df;
  color: #3c4f40;
  margin: 0 0 10px;
  padding: 13px 15px;
  position: relative;
  font-size: 0.8125rem;
}
.step:not(:last-child):after {
  content: '';
  position: absolute;
  bottom: -11px;
  left: 29px;
  height: 10px;
  border-left: 1px solid #bdcbb6;
}
.step.selected {
  border-color: #609656;
  box-shadow: 0 0 0 1px #609656;
}
.step.COMPLETED .node-icon {
  background: #e8f3dd;
  color: #4c813b;
}
.step.WAITING {
  background: #fffbef;
  border-color: #e9d99d;
}
.step.FAILED {
  background: #fff1ed;
  border-color: #e9c0b2;
}
.step .tag {
  margin-left: auto;
}
.node-icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #f0f2ee;
  flex-shrink: 0;
}
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.keyvalue {
  border-bottom: 1px solid #edf0e9;
  padding: 10px 0;
  font-size: 0.8125rem;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.keyvalue span {
  color: #56664f;
}
.keyvalue strong {
  font-weight: 500;
  text-align: right;
  overflow-wrap: anywhere;
}
.raw-request {
  font-size: 1rem;
  line-height: 1.85;
  background: #f7f9f3;
  border-left: 3px solid #9cb77c;
  padding: 18px 22px;
  margin: 0 0 15px;
  border-radius: 3px;
}
.tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  margin: 0 0 25px;
  overflow: auto;
}
.tabs button {
  border-radius: 0;
  background: none;
  color: #56664f;
  padding: 13px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tabs button.active {
  color: #315b3d;
  border-bottom-color: #5e8948;
}
.code {
  font-family: Consolas, monospace;
  background: #f6f8f3;
  border: 1px solid #e6ebdf;
  border-radius: 6px;
  padding: 15px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.75rem;
  line-height: 1.65;
  max-height: 340px;
  overflow: auto;
}
.notice {
  background: #fdf6e6;
  border: 1px solid #ebdfbc;
  border-radius: 7px;
  padding: 13px 16px;
  font-size: 0.8125rem;
  line-height: 1.6;
  margin-bottom: 18px;
  color: #80652e;
}
.success {
  background: #edf5e7;
  border-color: #cfdfc2;
  color: #52743f;
}
.timeline-item {
  display: flex;
  gap: 13px;
  padding: 11px 0;
  font-size: 0.8125rem;
}
.timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9eba89;
  margin-top: 5px;
  flex-shrink: 0;
}
.timeline-item small {
  font-size: 0.6875rem;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.integration {
  padding: 22px;
}
.integration p {
  font-size: 0.8125rem;
  color: #56664f;
  min-height: 45px;
}
.integration-symbol {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #dee6d8;
  border-radius: 9px;
  margin-bottom: 18px;
  font-size: 1.1rem;
  color: #467145;
  background: #f5f8f0;
}
.bar-row {
  margin: 18px 0;
  font-size: 0.8125rem;
}
.bar-row > div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
}
progress {
  width: 100%;
  height: 10px;
  border: 0;
  border-radius: 5px;
  accent-color: #789b59;
}
progress::-webkit-progress-bar {
  background: #eef2e8;
  border-radius: 5px;
}
progress::-webkit-progress-value {
  background: #9eba78;
  border-radius: 5px;
}
footer {
  font-size: 0.6875rem;
  color: #56664f;
  padding: 0 36px 25px;
  line-height: 1.7;
  max-width: 1250px;
}
dialog {
  border: 1px solid #d9e2d1;
  border-radius: 13px;
  padding: 30px;
  width: min(640px, 92vw);
  max-height: 90vh;
  color: #28402f;
}
dialog::backdrop {
  background: #152b2280;
  backdrop-filter: blur(2px);
}
.dialog-close {
  position: absolute;
  right: 15px;
  top: 12px;
}
dialog h2 {
  font-size: 1.35rem;
  margin-bottom: 24px;
  padding-right: 30px;
}
#toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  max-width: 430px;
  padding: 0;
  z-index: 10;
  background: #203d2c;
  color: white;
  border-radius: 8px;
  font-size: 0.875rem;
  box-shadow: 0 5px 30px #203d2c30;
}
#toast:not(:empty) {
  padding: 15px 20px;
}
.back {
  font-size: 0.8125rem;
  color: #56664f;
  display: block;
  margin-bottom: 18px;
}
.divider {
  height: 1px;
  background: #e4eadf;
  margin: 20px 0;
}
.inline-link {
  color: #4c773b;
  text-decoration: underline;
}
.full {
  grid-column: 1/-1;
}
.wrap {
  overflow-wrap: anywhere;
}
.status-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
@media (min-width: 1450px) {
  main {
    padding: 40px 48px;
  }
  .topbar {
    padding: 0 48px;
  }
}
@media (max-width: 1100px) {
  #sidebar {
    width: 205px;
    padding: 24px 12px;
  }
  .shell {
    margin-left: 205px;
  }
  main {
    padding: 25px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 10px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .mini-flow {
    display: none;
  }
  .topbar {
    padding: 0 25px;
  }
  .top-status .chip {
    display: none;
  }
}
@media (max-width: 760px) {
  #sidebar {
    position: static;
    width: auto;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .brand {
    padding: 0;
  }
  .brand small,
  .workspace,
  .sidebar-bottom {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    margin-top: 14px;
    gap: 4px;
  }
  nav a {
    white-space: nowrap;
    padding: 9px 12px;
    margin: 0;
  }
  .nav-icon {
    display: none;
  }
  .shell {
    margin-left: 0;
  }
  .topbar {
    height: 50px;
    padding: 0 18px;
  }
  .top-status {
    font-size: 0.6875rem;
  }
  main {
    padding: 23px 16px;
  }
  .page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  h1 {
    font-size: 1.6rem;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat {
    padding: 16px;
  }
  .stat strong {
    font-size: 1.7rem;
  }
  .grid,
  .flow-layout,
  .details-grid {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .hero-strip {
    align-items: flex-start;
    flex-direction: column;
  }
  .filters {
    gap: 8px;
  }
  .filters input,
  .filters select {
    width: 100%;
    max-width: none;
  }
  .panel-head,
  .panel-body {
    padding: 17px;
  }
  td,
  th {
    padding: 13px;
  }
  footer {
    padding: 0 16px 22px;
  }
  .tabs {
    gap: 20px;
  }
  .step {
    font-size: 0.8125rem;
  }
  dialog {
    padding: 25px 18px;
  }
  .code {
    max-height: 240px;
  }
  .topbar .slash {
    margin: 0 7px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition:
      background 0.12s,
      filter 0.12s;
  }
}
