﻿:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #14213d;
  --brand: #005f73;
  --accent: #ee9b00;
  --line: #d7dde5;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top right, #dce6f2, var(--bg));
}
header {
  padding: 24px;
  background: linear-gradient(135deg, var(--brand), #0a9396);
  color: #fff;
}
h1 { margin: 0; font-family: "Space Grotesk", sans-serif; }
main { padding: 20px; display: grid; gap: 16px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.grid3, .grid4 { display: grid; gap: 10px; }
.grid3 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.grid4 { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
label { display: block; font-size: 12px; margin-bottom: 4px; }
input, button {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
}
button {
  background: var(--brand);
  color: white;
  border: none;
  cursor: pointer;
  margin-top: 8px;
}
button:disabled { opacity: 0.5; cursor: not-allowed; }
.table-wrap { overflow: auto; max-height: 480px; border: 1px solid var(--line); border-radius: 8px; margin-top: 10px; }
table { border-collapse: collapse; width: 100%; min-width: 980px; }
th, td { border-bottom: 1px solid var(--line); padding: 8px; font-size: 12px; text-align: left; }
thead th { position: sticky; top: 0; background: #edf2f7; z-index: 1; }
pre { white-space: pre-wrap; background: #0b132b; color: #f0f3f7; padding: 8px; border-radius: 8px; }
.sim-save { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 8px; align-items: end; }
@media (max-width: 768px) {
  .sim-save { grid-template-columns: 1fr; }
}
