:root {
  color-scheme: light;
  font-family: Segoe UI, Roboto, Arial, sans-serif;
  background: #edf2ef;
  color: #18231f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

.shell {
  width: min(980px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 18px 0 32px;
}

.topbar,
.section-head,
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar {
  margin-bottom: 12px;
}

.topbar-actions,
.language-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.language-switcher {
  color: #263a34;
  font-size: 0.9rem;
  font-weight: 700;
}

.language-switcher select {
  width: auto;
  min-width: 120px;
  padding: 7px 9px;
}

.eyebrow {
  margin: 0 0 2px;
  color: #48665c;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 2rem;
}

h2 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.panel {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #c7d5cf;
  border-radius: 8px;
  background: #ffffff;
}

.alert {
  border-color: #e0b4a8;
  background: #fff7f4;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e1f1eb;
  color: #0d6b57;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge.is-blocked {
  background: #ffe8e4;
  color: #8f2618;
}

.hint,
.status-text {
  margin-bottom: 8px;
  color: #4d635b;
  font-size: 0.92rem;
}

.field {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  color: #263a34;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #b7c9c2;
  border-radius: 6px;
  padding: 10px;
  color: #18231f;
  background: #fbfdfc;
}

textarea {
  resize: vertical;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.84rem;
}

.actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 10px;
}

button {
  min-height: 38px;
  border: 1px solid #0d6b57;
  border-radius: 6px;
  padding: 8px 12px;
  background: #0d6b57;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

button:disabled {
  border-color: #9aa9a4;
  background: #d7dfdc;
  color: #5b6864;
  cursor: not-allowed;
}

.status-list {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 7px 12px;
  margin: 0;
}

.status-list dt {
  color: #48665c;
  font-weight: 700;
}

.status-list dd {
  margin: 0;
}

.new-site-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(140px, 180px) minmax(160px, 220px);
  gap: 10px;
  margin-top: 10px;
}

.workbench-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

.workbench-card {
  min-height: 124px;
  padding: 12px;
  border: 1px solid #c7d5cf;
  border-radius: 8px;
  background: #fbfdfc;
}

.workbench-card p {
  min-height: 38px;
  margin-bottom: 12px;
  color: #4d635b;
  overflow-wrap: anywhere;
}

.draft-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.draft-section,
.location-block,
.hazard-block {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #d7e2de;
}

.draft-section h4,
.location-block h5,
.hazard-block h6 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.hazard-block {
  background: #fffaf0;
  border: 1px solid #e6d5aa;
  border-radius: 8px;
  padding: 10px;
}

.risk-output {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #efe8ff;
  color: #44216f;
  font-weight: 700;
}

[hidden] {
  display: none !important;
}

@media (max-width: 680px) {
  .topbar,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .status-list,
  .new-site-grid,
  .filter-grid,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 1.55rem;
  }
}
