:root {
  font-family: Inter, "PingFang SC", system-ui, sans-serif;
  color: #183831;
  background: #f4f6f1;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
header {
  background: #123f35;
  color: #fff;
}
.bar,
main,
footer > div {
  width: min(1100px, 92vw);
  margin: auto;
}
.bar {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.08em;
  font-size: 21px;
}
.brand span {
  display: grid;
  place-content: center;
  background: #cced98;
  color: #174233;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  font-size: 23px;
}
.header-title {
  border-left: 1px solid #67867e;
  padding-left: 18px;
  color: #d8e8dc;
  font-size: 14px;
}
#account {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.bar button {
  border: 1px solid #779389;
  background: transparent;
  color: white;
}
main {
  flex: 1;
  padding: clamp(28px, 6vw, 64px) 0;
}
h1 {
  font-size: clamp(30px, 5vw, 52px);
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: 0 0 14px;
}
h2,
h3 {
  line-height: 1.4;
  margin: 0;
}
p {
  line-height: 1.65;
  color: #476259;
}
.hero {
  padding: clamp(32px, 7vw, 76px);
  border: 1px solid #c5d3c7;
  background: linear-gradient(105deg, #fff 5%, #edf4df 100%);
  border-radius: 16px;
}
.hero p {
  max-width: 38em;
}
.hero button {
  margin-top: 12px;
}
.nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid #bfcfc1;
  padding: 12px 0;
  margin-bottom: 26px;
}
.nav button,
.secondary {
  color: #274e40;
  background: transparent;
  border: 1px solid #b4c7ba;
}
.nav button[aria-current="page"] {
  background: #214f40;
  color: white;
  border-color: #214f40;
}
.row,
.actions,
.topline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.topline,
.row {
  justify-content: space-between;
}
.topline {
  margin-bottom: 20px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 15px;
}
.card,
.empty,
details {
  background: #fff;
  border: 1px solid #cbd6cb;
  border-radius: 12px;
  padding: 21px;
  overflow-wrap: anywhere;
}
.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.card p {
  margin: 0;
}
.card .actions {
  margin-top: auto;
}
.empty {
  padding: 32px;
  color: #496456;
}
.pill {
  font-size: 13px;
  background: #e9f1e0;
  color: #365d39;
  border-radius: 20px;
  padding: 3px 10px;
}
button,
select,
input,
textarea {
  font: inherit;
}
button {
  color: white;
  background: #205741;
  border: 1px solid #205741;
  cursor: pointer;
  border-radius: 7px;
  padding: 8px 14px;
  font-weight: 560;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #a27608;
  outline-offset: 2px;
}
.link {
  background: none;
  border: 0;
  color: #275840;
  text-decoration: underline;
}
footer {
  border-top: 1px solid #cfdbce;
  padding: 13px 0;
  font-size: 13px;
}
footer > div {
  display: flex;
  gap: 8px;
  align-items: center;
}
.dot {
  background: #598c61;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
dialog {
  color: inherit;
  width: min(620px, 92vw);
  max-height: 90vh;
  border: 1px solid #b6c5b5;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
}
#form {
  display: flex;
  flex-direction: column;
  max-height: calc(90dvh - 2px);
}
#dialog-body {
  padding: 24px 24px 12px;
  overflow-y: auto;
}
#form-error:empty {
  display: none;
}
dialog::backdrop {
  background: #102c267d;
}
label.field,
fieldset {
  display: block;
  margin: 15px 0;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  margin-top: 6px;
  padding: 9px;
  border: 1px solid #a8bcad;
  border-radius: 6px;
}
.field textarea {
  min-height: 72px;
  resize: vertical;
}
fieldset {
  border: 1px solid #c7d6ca;
  border-radius: 6px;
}
fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
}
.actions {
  justify-content: flex-start;
}
#dialog .actions {
  border-top: 1px solid #cbd6cb;
  padding: 12px 24px;
  flex-shrink: 0;
  justify-content: flex-end;
}
#notice,
#form-error:not(:empty) {
  background: #fff5dc;
  color: #704900;
  padding: 10px;
  border-radius: 5px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
}
.hint {
  overflow-wrap: anywhere;
  font-size: 14px;
}
details {
  margin: 10px 0;
}
summary {
  cursor: pointer;
  font-weight: 650;
}
.risk {
  color: #8e5110;
}
.card h3 {
  font-size: 20px;
}
@media (max-width: 600px) {
  .header-title {
    display: none;
  }
  .bar {
    gap: 8px;
  }
  .card {
    padding: 16px;
  }
  main {
    padding-top: 26px;
  }
  .nav {
    gap: 5px;
  }
  .nav button {
    padding: 7px 9px;
  }
}
.run-panel {
  padding: clamp(16px, 4vw, 32px);
  background: #fff;
  border: 1px solid #cbd6cb;
  border-radius: 12px;
  overflow-wrap: anywhere;
}
.run-header {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  color: inherit;
}
.run-panel h4 { margin: 1.25em 0 .4em; }
.run-panel pre { margin: .4em 0 1em; line-height: 1.6; }
.run-panel > .actions { margin-top: 1.5em; }
.confirmation { padding: 16px; margin-top: 18px; border: 1px solid #c99b57; border-radius: 8px; background: #fffaf0; }
.confirmation h4 { margin-top: 0; }
.params { margin: 12px 0; }
.params dt { color: #476259; font-size: .875rem; }
.params dd { margin: 3px 0 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.sources { display: flex; flex-wrap: wrap; gap: 6px; }
.sources button { background: #f4f6f1; color: #205741; overflow-wrap: anywhere; }
.doc-list, .audit-list { padding-inline-start: 20px; }
.doc-list li, .audit-list li { margin: 12px 0; overflow-wrap: anywhere; }
.task-preview { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
