:root {
  font-family:
    Inter,
    "PingFang SC",
    "Microsoft YaHei",
    system-ui,
    sans-serif;

  color: #172033;
  background: #f4f6f9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(
      180deg,
      #eef4ff 0,
      #f6f8fb 260px,
      #f6f8fb 100%
    );
}

button,
input,
select,
textarea {
  font: inherit;
}

.page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 46px 0 64px;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 22px;
}

.eyebrow {
  color: #4169a1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}

h1 {
  margin: 8px 0 10px;
  font-size: 36px;
  line-height: 1.15;
}

h2 {
  margin: 0;
  font-size: 20px;
}

p {
  margin: 0;
}

.hero-copy {
  max-width: 760px;
  color: #59657a;
  line-height: 1.75;
}

.system-badge {
  flex: none;
  padding: 9px 14px;
  border-radius: 999px;
  background: #e7f7ed;
  color: #19743d;
  font-size: 13px;
  font-weight: 700;
}

.system-badge.loading {
  background: #eef1f5;
  color: #697386;
}

.system-badge.disabled {
  background: #fff3db;
  color: #9a6500;
}

.security-note {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  margin-bottom: 18px;
  border: 1px solid #dbe7f7;
  border-radius: 12px;
  background: #f8fbff;
  color: #536074;
  font-size: 13px;
}

.security-note strong {
  flex: none;
  color: #315b91;
}

.card {
  margin-bottom: 18px;
  padding: 26px;
  border: 1px solid #e5e9f0;
  border-radius: 16px;
  background: #fff;
  box-shadow:
    0 8px 28px rgba(29, 44, 74, .05);
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.card-head p {
  margin-top: 7px;
  color: #7a8598;
  font-size: 13px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two {
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
}

.field {
  display: block;
  margin-bottom: 18px;
}

.field > span {
  display: block;
  margin-bottom: 8px;
  color: #2a3447;
  font-size: 13px;
  font-weight: 650;
}

.field small {
  display: block;
  margin-top: 7px;
  color: #8a94a6;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d8dee8;
  border-radius: 9px;
  background: #fff;
  color: #20293a;
  outline: none;
  transition:
    border-color .16s,
    box-shadow .16s;
}

input,
select {
  height: 42px;
  padding: 0 12px;
}

textarea {
  min-height: 96px;
  padding: 11px 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #6d8fbd;
  box-shadow:
    0 0 0 3px rgba(81, 117, 166, .10);
}

.submit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 6px;
}

.execution-message {
  color: #738095;
  font-size: 13px;
}

button {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  padding: 0 22px;
  background: #244f86;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

button:hover:not(:disabled) {
  filter: brightness(.96);
}

button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

button.secondary {
  min-height: 38px;
  border: 1px solid #d5dce7;
  background: #fff;
  color: #344156;
}

.status {
  padding: 7px 11px;
  border-radius: 999px;
  background: #edf3fb;
  color: #41618b;
  font-size: 12px;
  font-weight: 700;
}

.progress {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #edf0f5;
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      #315f96,
      #668dbd
    );
  transition: width .3s ease;
}

.task-meta {
  margin-top: 18px;
  color: #637085;
  font-size: 13px;
  line-height: 1.8;
}

.task-error {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 9px;
  background: #fff2f1;
  color: #a43f36;
  font-size: 13px;
}

.task-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

#reportFrame {
  width: 100%;
  min-height: 780px;
  border: 1px solid #e2e6ed;
  border-radius: 10px;
  background: #fff;
}

.hidden {
  display: none !important;
}

footer {
  padding-top: 8px;
  text-align: center;
  color: #9aa2b0;
  font-size: 12px;
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 24px, 1180px);
    padding-top: 26px;
  }

  .hero {
    display: block;
  }

  .system-badge {
    display: inline-block;
    margin-top: 18px;
  }

  .grid.two {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  button {
    width: 100%;
  }

  .task-actions {
    flex-direction: column;
  }
}
