:root {
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: #192a2b;
  background: #f6f7f5;
  font-synthesis: none;
  --accent: #087b69;
  --muted: #687774;
  --line: #dde4df;
  --paper: #fff;
  --danger: #ae3d37;
}
.data-fields {
  margin: 14px 0 0;
  font-size: 13px;
}
.data-fields > div {
  display: grid;
  grid-template-columns: minmax(110px, 30%) 1fr;
  gap: 12px;
  border-top: 1px solid #edf0eb;
  padding: 11px 0;
}
.data-fields dt {
  color: var(--muted);
  font-size: 12px;
}
.data-fields dd {
  margin: 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.data-fields a {
  color: var(--accent);
  text-decoration: underline;
}
.data-fields .data-fields {
  margin-top: 0;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a.button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: white;
  border-radius: 7px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
button:hover,
a.button:hover {
  background: #f0f5f1;
  border-color: #98b8ad;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.primary {
  background: var(--accent) !important;
  color: white;
  border-color: var(--accent);
}
.danger {
  color: var(--danger);
}
.quiet {
  background: transparent;
  border-color: transparent;
}
.small {
  padding: 6px 10px;
  font-size: 12px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #6abda7;
  outline-offset: 2px;
}
.shell {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #173c36;
  color: #d6e3db;
  padding: 34px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.5px;
  margin-bottom: 44px;
}
.brand-mark {
  width: 34px;
  height: 34px;
  background: #c9e9b7;
  color: #173c36;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 18px;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  color: #98b2a9;
  margin: 16px 12px 10px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 7px;
  font-size: 14px;
  margin: 3px 0;
}
.sidebar nav a:hover,
.sidebar nav a.active {
  background: #2d5048;
  color: white;
}
.nav-icon {
  font-size: 17px;
  width: 20px;
  text-align: center;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 22px 10px 0;
}
.sidebar-bottom strong {
  font-size: 13px;
  display: block;
  color: white;
}
.sidebar-bottom p {
  font-size: 11px;
  color: #acc0b7;
  overflow-wrap: anywhere;
}
.sidebar-bottom button {
  color: #d6e3db;
  padding-left: 0;
  font-size: 12px;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 76px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.topbar strong {
  font-weight: 500;
  color: #293d36;
}
.topbar .tag {
  margin-left: 10px;
}
main {
  padding: 38px 44px 64px;
  max-width: 1540px;
  margin: auto;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.9px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 650;
  margin-bottom: 12px;
}
h1 {
  font-size: 32px;
  font-weight: 550;
  letter-spacing: -1.1px;
  line-height: 1.2;
  margin: 0 0 12px;
}
h2 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin: 0 0 9px;
}
h3 {
  font-size: 15px;
  margin: 0 0 8px;
}
p {
  line-height: 1.6;
}
.muted {
  color: var(--muted);
}
.lede {
  max-width: 620px;
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 30px;
}
.actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 30px 0;
}
.stat {
  padding: 22px 0;
}
.stat + .stat {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}
.stat strong {
  font-size: 31px;
  line-height: 1.3;
  font-weight: 500;
  display: block;
  letter-spacing: -1px;
}
.stat span {
  font-size: 12px;
  color: var(--muted);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0 16px;
}
.section-heading h2 {
  margin: 0;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
}
.panel.flat {
  padding: 0;
  overflow: hidden;
}
.template-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.template {
  display: block;
  text-align: left;
  padding: 24px;
  background: #edf3ed;
  border: 1px solid #d7e3d6;
  border-radius: 9px;
  color: #244b3b;
  position: relative;
}
.template:hover {
  background: #e4eee2;
}
.template .number {
  font-size: 11px;
  color: #70906b;
  display: block;
  margin-bottom: 20px;
}
.template h3 {
  font-size: 17px;
}
.template p {
  font-size: 13px;
  margin: 6px 20px 0 0;
  color: #58725f;
}
.template .arrow {
  position: absolute;
  top: 20px;
  right: 22px;
  font-size: 22px;
  font-weight: 400;
}
.empty {
  text-align: center;
  padding: 42px 24px;
  color: var(--muted);
}
.empty h3 {
  color: #284439;
  margin-bottom: 8px;
}
.empty p {
  font-size: 13px;
  margin: 0 0 18px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
th {
  text-align: left;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: var(--muted);
  font-weight: 600;
  background: #f9faf8;
  padding: 15px 20px;
}
td {
  padding: 18px 20px;
  border-top: 1px solid #e8ece8;
  vertical-align: middle;
}
td p {
  font-size: 11px;
  margin: 4px 0 0;
  color: var(--muted);
}
td .title-link {
  font-weight: 600;
  color: #234b3e;
}
tbody tr:hover {
  background: #fafcf9;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 550;
  padding: 5px 9px;
  border-radius: 5px;
  background: #eef1ed;
  color: #53645d;
  white-space: nowrap;
}
.tag.good {
  background: #e5f1e8;
  color: #246641;
}
.tag.wait {
  background: #fff1d5;
  color: #8f630b;
}
.tag.bad {
  background: #fae8e4;
  color: #9c3935;
}
.tag.blue {
  background: #e5edf8;
  color: #3d5d8c;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.notice {
  font-size: 13px;
  line-height: 1.6;
  background: #edf2ee;
  border: 1px solid #d5e2d7;
  border-radius: 7px;
  padding: 13px 17px;
  margin: 0 0 22px;
  color: #405a49;
}
.notice.warning {
  background: #fff7e9;
  border-color: #efdcaf;
  color: #805b25;
}
.notice.error {
  background: #fff0ed;
  border-color: #edc6be;
  color: #963e36;
}
.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
}
.editor-side {
  align-self: start;
  position: sticky;
  top: 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
  min-width: 0;
}
.field:last-child {
  margin-bottom: 0;
}
.field > span,
.field > label {
  font-size: 12px;
  font-weight: 600;
  color: #44574e;
}
.field small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #ccd8cf;
  border-radius: 6px;
  padding: 10px 11px;
  color: #233a30;
  background: white;
  font-size: 13px;
  min-width: 0;
}
textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.6;
}
.code {
  font-family: Consolas, monospace;
  font-size: 12px;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  margin: 12px 0;
}
.checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}
details {
  font-size: 12px;
  margin-top: 14px;
}
summary {
  cursor: pointer;
  color: var(--muted);
  padding: 6px 0;
}
.steps {
  position: relative;
}
.step {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 20px;
  margin: 0 0 20px;
  position: relative;
}
.step + .step:before {
  content: "";
  height: 20px;
  width: 1px;
  background: #b7c9bd;
  position: absolute;
  top: -21px;
  left: 35px;
}
.step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.step-number {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid #d1ded2;
  border-radius: 50%;
  font-size: 12px;
  color: #568064;
  background: #f1f6ed;
}
.step-head h3 {
  margin: 0;
  flex: 1;
}
.step-head .actions {
  margin-left: auto;
  gap: 2px;
}
.argument {
  border-top: 1px solid #eef1ec;
  padding-top: 12px;
  margin-top: 12px;
}
.argument-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
}
.argument-title select {
  width: 120px;
  padding: 5px;
  font-size: 11px;
}
.argument .field {
  margin: 0;
}
.checklist {
  list-style: none;
  padding: 0;
  font-size: 12px;
  color: #5c7062;
}
.checklist li {
  padding: 9px 0;
  border-bottom: 1px solid #edf0e9;
  line-height: 1.5;
}
.checklist li:before {
  content: "↳";
  margin-right: 9px;
  color: var(--accent);
}
.builder textarea {
  min-height: 110px;
}
.timeline {
  border-left: 1px solid #c9d9cb;
  margin: 20px 0 0 15px;
  padding-left: 27px;
}
.timeline-item {
  position: relative;
  margin-bottom: 24px;
}
.timeline-item:before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: #dce7dd;
  border: 3px solid #f6f7f5;
  border-radius: 50%;
  top: 4px;
  left: -36px;
}
.timeline-item.done:before {
  background: #0f8968;
}
.timeline-item .step {
  margin: 0;
}
.timeline-item .step h3 {
  display: inline-block;
  margin-right: 12px;
}
.timeline-item .step p {
  font-size: 12px;
}
.result {
  background: #f6f8f5;
  border-radius: 6px;
  padding: 13px;
  margin-top: 10px;
  max-height: 340px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    12px/1.6 Consolas,
    monospace;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-intro {
  background: #173c36;
  color: #fff;
  padding: 12vh 10vw 10vh 7vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-intro h1 {
  font-size: 52px;
  line-height: 1.1;
  letter-spacing: -2px;
  max-width: 460px;
}
.login-intro p {
  color: #b7cdbf;
  max-width: 350px;
  font-size: 16px;
}
.login-form {
  display: grid;
  align-content: center;
  justify-items: start;
  padding: 70px;
}
.login-form h2 {
  font-size: 28px;
}
.login-form form {
  width: 100%;
  max-width: 380px;
  display: grid;
  gap: 16px;
}
.login-form #auth-message {
  margin: 0;
  font-size: 13px;
}
.login-form #auth-message:empty { display: none; }
.login-form #auth-switch { margin: 18px 0; }
.login-form p {
  max-width: 380px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 30px;
}
.loading {
  padding: 15vh 10vw;
  color: var(--muted);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  width: min(720px, calc(100vw - 32px));
  padding: 28px;
  max-height: 90vh;
  color: #243c30;
  box-shadow: 0 24px 100px #102d3840;
}
dialog::backdrop {
  background: #16332c66;
  backdrop-filter: blur(3px);
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.dialog-header h2 {
  margin: 0;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #163f35;
  color: white;
  border-radius: 8px;
  padding: 16px 22px;
  max-width: 500px;
  box-shadow: 0 8px 30px #172c3422;
  z-index: 50;
  font-size: 13px;
  line-height: 1.5;
}
#toast.error {
  background: #8c3731;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}
.mobile-brand {
  display: none;
}
.preline {
  white-space: pre-line;
}
footer {
  font-size: 11px;
  color: #8a988d;
  margin-top: 36px;
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 190px 1fr;
  }
  .sidebar {
    padding: 28px 14px;
  }
  main {
    padding: 30px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .editor-grid {
    grid-template-columns: 1fr;
  }
  .editor-side {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .editor-side .panel {
    margin: 0;
  }
  .login-intro h1 {
    font-size: 40px;
  }
  .login-form {
    padding: 35px;
  }
}
@media (max-width: 720px) {
  .table-wrap table { min-width: 640px; }
  .table-wrap td:first-child { min-width: 230px; }
  .shell {
    display: block;
  }
  .sidebar {
    height: auto;
    position: static;
    padding: 16px;
    display: block;
  }
  .brand {
    margin: 0 0 14px;
  }
  .sidebar nav {
    display: flex;
    overflow-x: auto;
    gap: 4px;
  }
  .sidebar nav a {
    white-space: nowrap;
    padding: 8px 10px;
    font-size: 12px;
  }
  .nav-label,
  .sidebar-bottom,
  .nav-icon {
    display: none;
  }
  .topbar {
    height: 55px;
    padding: 0 18px;
    font-size: 11px;
  }
  main {
    padding: 26px 18px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  h1 {
    font-size: 27px;
  }
  .template-list,
  .form-grid,
  .editor-side {
    grid-template-columns: 1fr;
  }
  .stats .stat + .stat {
    padding-left: 15px;
  }
  .stat strong {
    font-size: 26px;
  }
  .stat span {
    font-size: 10px;
  }
  .panel {
    padding: 18px;
  }
  .step {
    padding: 15px;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-intro {
    padding: 40px 28px;
  }
  .login-intro .brand {
    margin-bottom: 45px;
  }
  .login-intro h1 {
    font-size: 36px;
  }
  .login-form {
    padding: 40px 28px;
  }
  .actions {
    gap: 6px;
  }
  button,
  a.button {
    font-size: 12px;
    padding: 9px 12px;
  }
  td,
  th {
    padding: 14px;
  }
  dialog {
    padding: 20px;
  }
  .topbar .tag {
    font-size: 10px;
  }
}
