:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --surface: #ffffff;
  --ink: #141713;
  --muted: #667065;
  --line: #d9dfd7;
  --green: #0c735f;
  --blue: #2c5c83;
  --red: #9a342b;
  --amber: #9b6a14;
  --dark: #111713;
  --shadow: 0 18px 48px rgba(28, 34, 24, 0.1);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { border: 0; cursor: pointer; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 32px;
  background: rgba(246, 247, 244, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand, .nav, .controls, .summary, .footer { display: flex; align-items: center; }
.brand { gap: 10px; font-weight: 780; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, var(--blue), var(--green)); }
.nav { gap: 24px; color: var(--muted); font-size: 14px; font-weight: 660; }
.ghost, .primary, .secondary { border-radius: 8px; font-weight: 760; }
.ghost { padding: 9px 13px; background: var(--surface); border: 1px solid var(--line); }
.primary { min-height: 45px; padding: 0 16px; color: #fff; background: var(--dark); }
.secondary { padding: 10px 14px; color: #fff; background: var(--blue); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
  gap: 44px;
  align-items: center;
  max-width: 1180px;
  min-height: 520px;
  margin: 0 auto;
  padding: 54px 32px 30px;
}
.eyebrow { margin: 0 0 12px; color: var(--blue); font-size: 12px; font-weight: 820; letter-spacing: 0; text-transform: uppercase; }
h1, h2 { margin: 0; line-height: 1.06; letter-spacing: 0; }
h1 { max-width: 760px; font-size: clamp(42px, 7vw, 82px); }
h2 { font-size: 30px; }
.lead { max-width: 620px; margin: 22px 0 0; color: var(--muted); font-size: 19px; }
.visual {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.visual img { width: 100%; min-height: 360px; object-fit: cover; display: block; }
.stamp {
  position: absolute;
  left: 18px;
  bottom: 18px;
  min-width: 140px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}
.stamp span, .grid span, label span { color: var(--muted); }
.stamp strong { display: block; font-size: 34px; }
.controls {
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto 16px;
  padding: 0 32px;
  flex-wrap: wrap;
}
label { display: grid; gap: 6px; font-size: 13px; font-weight: 720; }
input, select {
  width: min(360px, 82vw);
  min-height: 45px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px 16px;
}
.grid article, .panel, .summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.grid article { padding: 18px; }
.grid strong { display: block; margin-top: 6px; font-size: 30px; }
.panel { max-width: 1180px; margin: 0 auto 18px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0; }
.pill { display: inline-flex; padding: 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 760; }
.pill.info { color: var(--blue); background: #e8f0f6; }
.pill.review { color: var(--amber); background: #f7efd9; }
.pill.critical { color: var(--red); background: #f8e3e1; }
.summary {
  justify-content: space-between;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto 54px;
  padding: 22px 24px;
}
.summary p { color: var(--muted); }
.footer { justify-content: space-between; padding: 22px 32px; color: var(--muted); border-top: 1px solid var(--line); }
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--dark);
  opacity: 0;
  transform: translateY(8px);
  transition: 0.18s ease;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }
@media (max-width: 860px) {
  .topbar { padding: 0 18px; }
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 36px 18px 24px; }
  h1 { font-size: 42px; }
  .controls, .grid { padding-left: 18px; padding-right: 18px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .panel, .summary { margin-left: 18px; margin-right: 18px; }
  .summary { align-items: flex-start; flex-direction: column; }
}

