:root {
  color-scheme: light;
  --ink: #132033;
  --muted: #5d6b80;
  --line: #d8e1ee;
  --panel: #ffffff;
  --bg: #eef4f8;
  --blue: #285f9f;
  --blue-soft: #dcecff;
  --green: #177245;
  --green-soft: #dff7e9;
  --amber: #956108;
  --amber-soft: #fff2cf;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(40, 95, 159, 0.12), transparent 38%),
    linear-gradient(225deg, rgba(23, 114, 69, 0.1), transparent 34%),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
}

.intro {
  max-width: 820px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.14rem;
  line-height: 1.65;
}

.workflow {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 16px;
  align-items: stretch;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 42px rgba(19, 32, 51, 0.08);
  overflow: hidden;
}

.output-panel {
  grid-column: 1 / -1;
}

.panel-heading {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
}

.panel-heading h2 {
  margin-bottom: 2px;
  font-size: 1.15rem;
}

.panel-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.step {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font-weight: 800;
}

.request-box {
  padding: 22px;
}

.request-box p {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  font-size: 1rem;
  line-height: 1.7;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

th,
td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 0.95rem;
}

th {
  color: var(--muted);
  background: #f7faff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.ok {
  background: var(--green-soft);
  color: var(--green);
}

.review {
  background: var(--amber-soft);
  color: var(--amber);
}

.summary {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
  margin-top: 16px;
}

.summary > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  padding: 22px;
}

.summary h2 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.summary p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.metric {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.metric span {
  color: var(--muted);
  font-size: 0.9rem;
}

.metric strong {
  margin-top: 8px;
  color: var(--blue);
  font-size: 1.3rem;
  line-height: 1.25;
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 22px, 1180px);
    padding: 28px 0;
  }

  h1 {
    font-size: 2.5rem;
  }

  .workflow,
  .summary {
    grid-template-columns: 1fr;
  }

  th,
  td {
    padding: 12px 14px;
  }
}
