:root {
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  color: #23262c;
  background: #f7f8fa;
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  width: min(1380px, 100%);
  padding: 28px 36px 64px;
  margin: 0 auto;
}
.masthead {
  background: #161b22;
  color: #f6f3ea;
  border-radius: 18px;
  padding: 26px 32px;
  box-shadow: 0 8px 26px #10182018;
}
.brand {
  font-size: 24px;
  letter-spacing: 0.06em;
  font-weight: 750;
}
.brand span {
  margin-left: 14px;
  font-size: 12px;
  letter-spacing: 0.01em;
  font-weight: 400;
  color: #d2d6da;
}
.eyebrow {
  margin-top: 25px;
  color: #dcc18c;
  font-weight: 700;
  letter-spacing: 0.19em;
  font-size: 11px;
}
h1 {
  font-size: clamp(25px, 3vw, 37px);
  font-weight: 640;
  margin: 8px 0;
  letter-spacing: -0.025em;
}
.masthead p {
  max-width: 800px;
  color: #d1d5dd;
  line-height: 1.75;
}
nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 23px;
  padding-top: 18px;
  border-top: 1px solid #46454c;
}
nav a {
  color: #eee0be;
  font-size: 13px;
  text-decoration: none;
}
nav a:hover,
a:hover {
  text-decoration: underline;
}
.toolbar {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 3px 12px;
  border-bottom: 1px solid #e4e6e8;
}
.toolbar label {
  width: min(340px, 100%);
}
.small-status {
  font-size: 13px;
  color: #505c66;
  padding-bottom: 8px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 24px 0 0;
}
.steps span {
  background: #ece8df;
  padding: 11px 14px;
  font-weight: 650;
  font-size: 12px;
  border-bottom: 2px solid #baa079;
}
.panel {
  background: #fff;
  padding: 25px 28px 28px;
  border-radius: 14px;
  margin-top: 17px;
  border: 1px solid #e2e4e7;
  box-shadow: 0 2px 12px #1b223006;
}
.section-title {
  display: flex;
  gap: 17px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.num {
  color: #9a7e4e;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.07em;
}
h2 {
  font-size: 20px;
  margin: 0;
  font-weight: 670;
}
.section-title p {
  margin: 7px 0 0;
  line-height: 1.55;
  color: #61707c;
  font-size: 13px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 22px;
  row-gap: 15px;
}
.form-grid .wide {
  grid-column: span 2;
}
label {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 7px;
  color: #333b44;
  font-size: 13px;
  font-weight: 600;
}
label input,
label select,
label textarea {
  font: 400 14px/1.5 inherit;
  font-family: inherit;
  padding: 9px 12px;
  border: 1px solid #c8cdd3;
  border-radius: 8px;
  background: #fff;
  color: #20252c;
  width: 100%;
  min-width: 0;
}
label textarea {
  min-height: 75px;
  resize: vertical;
  line-height: 1.6;
}
label input:read-only {
  background: #f6f7f8;
  color: #5a6673;
}
label input:focus-visible,
label select:focus-visible,
label textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid #b69b65;
  outline-offset: 2px;
}
button {
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  background: #292e37;
  color: #fff;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  padding: 11px 17px;
}
button:hover:not(:disabled) {
  background: #423d34;
}
button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}
a {
  color: #80643b;
  text-underline-offset: 3px;
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.hint,
.muted {
  font-size: 12px;
  color: #65717b;
  line-height: 1.6;
}
.inline-choice {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
}
.inline-choice label {
  flex: 1 1 320px;
  max-width: 650px;
}
.inline-choice a,
.inline-choice button,
.inline-choice span {
  align-self: center;
}
.message {
  min-height: 14px;
  color: #333e48;
  border-left: 3px solid #af986b;
  padding: 6px 12px;
  margin-top: 14px;
  background: #f2f0ea;
  font-size: 13px;
}
.message:empty {
  display: none;
}
.closure-result {
  margin-top: 20px;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.summary-grid article {
  padding: 16px;
  border: 1px solid #dddfe3;
  border-radius: 10px;
  background: #fafaf9;
}
.summary-grid .metric {
  font-size: 25px;
  font-weight: 680;
  display: block;
  margin-top: 8px;
  color: #2b313a;
}
.summary-grid .metric-label {
  font-size: 12px;
  color: #6b7580;
}
.checklist {
  margin: 20px 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  font-size: 13px;
  border: 1px solid #e3e5e8;
  border-radius: 7px;
}
.checklist .yes {
  border-left: 3px solid #56836b;
}
.checklist .no {
  border-left: 3px solid #b49560;
}
.workflow-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 14px 0;
}
.workflow-table th,
.workflow-table td {
  border-bottom: 1px solid #e2e5e9;
  padding: 8px 10px;
  text-align: left;
  overflow-wrap: anywhere;
}
.workflow-table th {
  background: #f3f3f1;
}
.table-wrap {
  overflow-x: auto;
}
.quality-review [hidden] {
  display: none;
}
.quality-review .workflow-table {
  min-width: 780px;
}
.notice {
  background: #f4f1ea;
  border-radius: 8px;
  padding: 13px 15px;
  color: #5e584e;
  font-size: 12px;
  line-height: 1.6;
}
footer {
  color: #7f848c;
  font-size: 12px;
  padding-top: 30px;
  text-align: center;
}
@media (max-width: 800px) {
  main {
    padding: 10px 10px 40px;
  }
  .masthead {
    padding: 22px 17px;
    border-radius: 12px;
  }
  .panel {
    padding: 18px 15px;
  }
  .form-grid,
  .checklist {
    grid-template-columns: 1fr;
  }
  .form-grid .wide {
    grid-column: auto;
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .brand span {
    display: block;
    margin: 4px 0 0;
  }
}
