:root {
  --bg: #f6f8fb;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #dbe3ee;
  --accent: #2155a3;
  --status-bg: rgba(96, 165, 250, 0.12);
}

body.dark-mode {
  --bg: #0f172a;
  --panel: #111827;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: #334155;
  --accent: #60a5fa;
  --status-bg: rgba(96, 165, 250, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  background: var(--bg);
  color: var(--text);
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}

.hero,
.single-layout,
.footer {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.hero {
  padding-top: 28px;
  padding-bottom: 10px;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.hero p,
.footer p {
  color: var(--muted);
}

.single-layout {
  padding-top: 10px;
  padding-bottom: 28px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}

.grid2,
.grid3 {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.grid2 {
  grid-template-columns: 1fr 1fr;
}

.grid3 {
  grid-template-columns: repeat(3, 1fr);
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  padding: 10px 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
}

input::placeholder {
  color: var(--muted);
}

button {
  padding: 10px 14px;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font-weight: 600;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.material-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 18px;
  background: var(--panel);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.status {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--status-bg);
}

.hidden {
  display: none !important;
}

#hiddenPlots {
  position: fixed;
  left: -99999px;
  top: -99999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 800px) {
  .grid2,
  .grid3 {
    grid-template-columns: 1fr;
  }

  .hero-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

.hero h1 a {
  color: inherit;
  text-decoration: none;
}

.hero h1 a:visited {
  color: inherit;
}

.hero h1 a:hover,
.hero h1 a:active,
.hero h1 a:focus {
  color: inherit;
  text-decoration: none;
}
