﻿:root {
  --bg: #0f172a;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --text: #e5edf8;
  --muted: #9fb0c8;
  --line: rgba(255, 255, 255, 0.14);
  --brand: #7dd3fc;
  --brand-2: #38bdf8;
  --danger: #fca5a5;
  --ok: #86efac;
  --warn: #fde68a;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.22), transparent 34rem),
    radial-gradient(circle at 80% 10%, rgba(99, 102, 241, 0.2), transparent 32rem),
    var(--bg);
}
button, input { font: inherit; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 44px 0; min-height: 100vh; display: flex; flex-direction: column; align-items: center; }
.hero { width: 100%; max-width: 760px; display: flex; align-items: center; justify-content: center; text-align: center; gap: 24px; margin: 0 auto 24px; }
h1 { font-size: clamp(32px, 5vw, 58px); line-height: 1; margin: 0 0 14px; }
h2 { margin: 0; font-size: 22px; }
.card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  backdrop-filter: blur(18px);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
}
.narrow { width: min(460px, 100%); margin: 0 auto; }
.grid { width: min(860px, 100%); display: grid; grid-template-columns: 1fr; gap: 20px; }
.history-card { grid-column: 1 / -1; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.card-head.compact { align-items: center; margin-bottom: 16px; }
.muted { color: var(--muted); line-height: 1.65; }
.stack { display: grid; gap: 16px; }
label { display: grid; gap: 8px; color: var(--muted); }
input {
  width: 100%; border: 1px solid var(--line); color: var(--text);
  background: rgba(15, 23, 42, .72); border-radius: 14px; padding: 13px 14px;
  outline: none;
}
input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(125, 211, 252, .16); }
button {
  border: 0; border-radius: 14px; padding: 11px 16px; color: #06111f; cursor: pointer;
  transition: transform .15s ease, opacity .15s ease, background .15s ease;
}
button:hover { transform: translateY(-1px); }
button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); font-weight: 800; }
.primary.big { min-height: 50px; }
.ghost { background: rgba(255,255,255,.08); color: var(--text); border: 1px solid var(--line); }
.pill { color: #082f49; background: #bae6fd; border-radius: 999px; padding: 7px 11px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.hidden { display: none !important; }
.message { min-height: 22px; margin: 0; color: var(--muted); }
.message.error { color: var(--danger); }
.message.ok { color: var(--ok); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 780px; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 13px 10px; vertical-align: top; }
th { color: var(--muted); font-weight: 700; font-size: 13px; }
td { color: var(--text); }
.empty { color: var(--muted); text-align: center; }
.status-success { color: var(--ok); font-weight: 800; }
.status-failed { color: var(--danger); font-weight: 800; }
.file-cell { max-width: 340px; word-break: break-all; }
@media (max-width: 860px) {
  .hero, .card-head { flex-direction: column; }
  .grid { grid-template-columns: 1fr; }
  .shell { padding-top: 26px; }
  .hero { max-width: 100%; }
}
