:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  color: #14213d;
  background: #f7f8fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.site-header {
  background:
    radial-gradient(circle at 15% 20%, rgba(80, 161, 255, 0.36), transparent 34%),
    linear-gradient(135deg, #081826, #102a43 55%, #1f4e79);
  color: white;
  padding: 58px 24px 72px;
}

.hero,
.layout {
  max-width: 1080px;
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 34px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b7d7ff;
}

.eyebrow.dark {
  color: #0f6fff;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 14px;
  font-size: clamp(32px, 7vw, 56px);
  line-height: 1;
}

.lede {
  max-width: 720px;
  margin-bottom: 0;
  color: #d7e9ff;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button-like {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 18px;
  color: #102a43;
  background: white;
  font-weight: 800;
  text-decoration: none;
}

.button-like.secondary {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.dark-button {
  color: white;
  background: #102a43;
}

.hero-panel {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
}

.hero-panel > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.metric {
  font-size: 24px;
  font-weight: 900;
}

.metric-label {
  color: #d7e9ff;
  font-size: 13px;
  text-align: right;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(440px, 1.05fr);
  gap: 24px;
  padding: 32px 24px 56px;
}

.card {
  border: 1px solid #dde5ef;
  border-radius: 20px;
  background: white;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(16, 42, 67, 0.08);
}

.request-card {
  position: relative;
  overflow: hidden;
}

.request-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #0f6fff, #00b8a9, #7c3aed);
  content: "";
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #334e68;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  color: #102a43;
  background: white;
}

textarea {
  resize: vertical;
}

.check-row {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding-top: 25px;
}

.check-row input {
  width: auto;
}

.wide {
  grid-column: 1 / -1;
}

.admin-card {
  align-self: start;
}

.admin-controls,
.ops-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-controls {
  margin-top: 14px;
}

.help-box {
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  padding: 12px;
  color: #1e3a8a;
  background: #eff6ff;
  font-size: 14px;
}

.preview-wrap {
  margin-top: 16px;
}

.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  padding: 14px;
  background: #eff6ff;
}

.download-card strong {
  display: block;
  max-width: 650px;
  overflow-wrap: anywhere;
}

.download-card p {
  margin-bottom: 0;
}

.table-scroll {
  overflow: auto;
  margin-top: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 12px;
}

th,
td {
  border-bottom: 1px solid #e2e8f0;
  padding: 9px;
  text-align: left;
  white-space: nowrap;
}

th {
  color: #486581;
  background: #f8fafc;
  font-weight: 900;
}

td {
  color: #102a43;
}

button {
  width: max-content;
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font: inherit;
  font-weight: 800;
  color: white;
  background: #0f6fff;
  cursor: pointer;
}

button:hover {
  background: #0958cc;
}

button.small {
  padding: 7px 10px;
  font-size: 12px;
}

button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.muted-pill {
  color: #486581;
  background: #eef2f7;
}

.status-new {
  color: #92400e;
  background: #fef3c7;
}

.status-reviewing,
.status-running {
  color: #1d4ed8;
  background: #dbeafe;
}

.status-fulfilled {
  color: #166534;
  background: #dcfce7;
}

.status-rejected {
  color: #991b1b;
  background: #fee2e2;
}

.status {
  min-height: 24px;
  margin: 16px 0 0;
  font-weight: 700;
}

.status.ok {
  color: #176c3a;
}

.status.err {
  color: #b42318;
}

.section-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.muted {
  color: #627d98;
  font-size: 14px;
}

.request-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  max-height: 720px;
  overflow: auto;
  padding-right: 4px;
}

.request-item {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  background: #f8fafc;
}

.request-item p {
  margin: 10px 0;
}

.request-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.command-box {
  margin: 12px 0;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #eff6ff;
}

.command-box summary {
  cursor: pointer;
  padding: 9px 11px;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
}

.command-box pre {
  margin: 0;
  overflow: auto;
  border-top: 1px solid #dbeafe;
  padding: 10px 11px;
  color: #102a43;
  font-size: 12px;
  white-space: pre-wrap;
}

.ops-grid {
  margin-top: 12px;
}

.request-item strong {
  display: block;
  color: #102a43;
}

.request-meta {
  color: #627d98;
  font-size: 13px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.wide-card {
  grid-column: 1 / -1;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.steps div {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  background: #f8fafc;
}

.steps strong,
.steps span {
  display: block;
}

.steps span {
  margin-top: 6px;
  color: #627d98;
  font-size: 14px;
}

code {
  border-radius: 6px;
  background: #eef2f7;
  padding: 2px 5px;
}

@media (max-width: 860px) {
  .hero,
  .layout,
  .form-grid,
  .admin-controls,
  .ops-grid,
  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .download-card {
    align-items: stretch;
    flex-direction: column;
  }
}
