/* --- Construction theme tokens --- */
:root {
  --bg: #0f172a; /* slate-900 */
  --panel: #111827; /* gray-900 */
  --panel-2: #1f2937; /* gray-800 */
  --text: #e5e7eb; /* gray-200 */
  --muted: #9ca3af; /* gray-400 */
  --accent: #f97316; /* safety orange */
  --accent-2: #2563eb; /* blueprint blue */
  --ok: #22c55e;
  --warn: #f59e0b;
  --ring: rgba(249, 115, 22, 0.35);
  --shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Oswald",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    sans-serif;
  line-height: 1.45;
  margin: 0;
}

/* --- Page shell --- */
.wrapper {
  max-width: 960px;
  margin: 32px auto;
  padding: 0 16px 40px;
}

/* Top bar with subtle “caution tape” accent */
.site-header {
  position: relative;
  background: var(--panel);
  border: 1px solid #222;
  border-radius: 14px;
  padding: 18px 20px 12px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.site-header .title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.site-header .sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 10px;
  border-radius: 0 0 14px 14px;
  background: repeating-linear-gradient(
    -45deg,
    var(--accent) 0 12px,
    #111827 12px 24px
  );
}

/* --- Panel / card --- */
.card {
  background: var(--panel-2);
  border: 1px solid #23272f;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 18px;
  margin-top: 22px;
}

/* --- Form controls --- */
label {
  font-size: 13px;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

input[type="text"],
input[type="number"],
select {
  width: 100%;
  background: #0b1020;
  color: var(--text);
  border: 1px solid #24304a;
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  transition:
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    transform 0.02s ease;
}
input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--ring);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, var(--accent), #ea580c);
  color: #111;
  border: 1px solid #9a3a07;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.06s ease,
    filter 0.15s ease,
    box-shadow 0.15s ease;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.25);
  margin-top: 12px;
}
.btn:hover {
  filter: brightness(1.05);
}
.btn:active {
  transform: translateY(1px);
}

/* --- Section layout --- */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 820px) {
  .grid {
    grid-template-columns: 1.1fr 1fr;
  }
}

/* --- Notes / results area --- */
.note {
  background: #0b1020;
  border: 1px solid #24304a;
  border-radius: 12px;
  padding: 12px;
  min-height: 56px;
  color: var(--text);
  font-size: 14px;
}

/* Results base */
.results {
  border: 1px solid #24304a;
  border-radius: 12px;
  padding: 12px;
  margin-top: 14px;
  font-size: 14px;
}

/* Results / Notes states */
.results-pass,
.note.result-pass {
  background: #e9f5e9; /* light green */
  color: #111827; /* dark text */
  border-left: 4px solid #28a745;
}

.results-warn {
  background: #fff7e6; /* light amber */
  color: #111827;
  border-left: 4px solid #ffc107;
}

.results-fail,
.note.result-fail {
  background: #fcebea; /* light red */
  color: #111827;
  border-left: 4px solid #dc3545;
}

.disclaimer {
  margin-top: 8px;
  font-style: italic;
}

.subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

/* --- Tiny helpers --- */
.row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}
.row > * {
  flex: 1;
}
.hr {
  height: 1px;
  background: #1f2937;
  border: 0;
  margin: 16px 0;
}
.small {
  font-size: 12px;
  color: var(--muted);
}

/* Fieldset tidy */
.filters {
  margin: 12px 0;
  border: 1px solid #24304a;
  border-radius: 12px;
  padding: 10px 12px;
}
.filters legend {
  color: var(--muted);
  font-size: 12px;
  padding: 0 6px;
}
.filters label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 12px;
  margin-bottom: 6px;
}
