:root {
  --bg: #d8dde6;
  --panel: #f3f5f8;
  --panel-2: #e8edf4;
  --panel-3: #dbe3ee;
  --text: #1f2f45;
  --muted: #5c6f88;
  --accent: #2c6db2;
  --accent-2: #7f9dbd;
  --border: #aab7c8;
  --danger: #c44f4f;
  --success: #4f8a45;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Tahoma, Arial, sans-serif;
  background: linear-gradient(180deg, #eef2f7 0%, #d7dee8 100%);
  color: var(--text);
}
.page {
  max-width: 1380px;
  margin: 0 auto;
  padding: 14px 12px 24px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0,0,0,0.08);
}
.hero {
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  gap: 12px;
  align-items: center;
  background: linear-gradient(180deg, #f8fbff 0%, #e7edf5 100%);
}
.hero-brand-block { min-width: 0; }
.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  width: 46px;
  height: 42px;
  object-fit: contain;
  background: #33506f;
  border: 1px solid #8da3bd;
  padding: 4px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: #35516d;
  margin-bottom: 3px;
}
h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.08;
  color: #213652;
}
.lead {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 760px;
  line-height: 1.35;
  font-size: 13px;
}
.hero-side {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.hero-photo {
  width: 100%;
  max-width: 240px;
  max-height: 102px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #fff;
}
.search {
  margin-top: 10px;
  padding: 12px;
}
.search label, .section-title {
  font-size: 13px;
  font-weight: 700;
  color: #294563;
}
.search-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 2px;
  border: 1px solid #90a2b8;
  background: #fff;
  color: var(--text);
  font-size: 16px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.08);
}
button {
  border: 1px solid #6e89ab;
  border-radius: 2px;
  background: linear-gradient(180deg, #fdfefe 0%, #c8d8ea 100%);
  color: #1d3857;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  min-height: 38px;
}
button.ghost {
  background: linear-gradient(180deg, #fefefe 0%, #dde7f2 100%);
  border: 1px solid #94a8bf;
  color: #284666;
  padding: 7px 12px;
  font-size: 13px;
}
.demo-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.demo-buttons button {
  padding: 7px 10px;
  font-size: 13px;
}
.hint, .muted {
  color: var(--muted);
  font-size: 13px;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(320px, 0.9fr);
  gap: 12px;
  margin-top: 12px;
}
.main-column, .side-column { display: grid; gap: 12px; align-content: start; }
.status-card, .results-card, .insight-card, .history-card { padding: 14px; }
.status-top, .section-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.status-text {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 700;
}
.session-tag {
  font-size: 12px;
  color: #36506f;
  background: #edf3fa;
  border: 1px solid var(--border);
  padding: 6px 8px;
}
.progress-bar {
  margin-top: 12px;
  height: 12px;
  background: #dde6f0;
  border: 1px solid var(--border);
  overflow: hidden;
}
#progressFill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #6e8fb5, #2c6db2);
  transition: width 0.35s ease;
}
.targets {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}
.target-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: var(--panel-2);
  border: 1px solid #bcc8d6;
}
.target-status {
  font-size: 12px;
  color: var(--muted);
}
.target-status.completed { color: var(--success); }
.target-status.failed { color: var(--danger); }
.target-status.running { color: var(--accent); }
.table-wrap { margin-top: 12px; overflow: auto; border: 1px solid var(--border); background: #fff; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td {
  text-align: left;
  padding: 9px 8px;
  border-bottom: 1px solid #d3dbe5;
  border-right: 1px solid #e0e6ee;
  vertical-align: top;
}
th:last-child, td:last-child { border-right: 0; }
th {
  color: #264566;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(180deg, #f9fbfd 0%, #dce6f2 100%);
}
td { font-size: 13px; }
.empty { color: var(--muted); text-align: center; padding: 24px; }
.insight-box {
  margin-top: 10px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--border);
}
.insight-box.accent {
  background: #eef5fd;
  border-color: #9eb7d4;
}
.insight-label {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}
.insight-value {
  font-size: 15px;
  font-weight: 700;
  color: #1e3756;
  line-height: 1.35;
}
.summary {
  margin-top: 12px;
  line-height: 1.45;
  color: #314c6f;
  font-size: 13px;
}
.history-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}
.history-actions {
  margin-top: 10px;
}
.history-item {
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #c6d1df;
  cursor: pointer;
}
.history-item:hover {
  background: #f4f8fc;
}
.history-item .top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}
.history-item .status {
  color: var(--muted);
  font-size: 12px;
}
.badge {
  display: inline-block;
  padding: 3px 7px;
  background: #e6eef8;
  border: 1px solid #a7b8ca;
  font-size: 11px;
  color: #294767;
}
.top-badge {
  margin-left: 6px;
  background: #fff4c7;
  border-color: #d7bb56;
  color: #6b5400;
}
.top-offer td {
  background: #fffdf2;
}
.top-offer-1 td { background: #fff4c9; }
.top-offer-2 td { background: #fff8da; }
.top-offer-3 td { background: #fffbea; }
.top-offer-4 td,
.top-offer-5 td { background: #fffdf5; }
.link {
  color: #1c5c9d;
  text-decoration: none;
}
.link:hover { text-decoration: underline; }
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .layout { grid-template-columns: 1fr; }
  .search-row { flex-direction: column; }
  .brand-row { align-items: flex-start; }
  .hero-side { justify-content: flex-start; }
}
