html, body {
  height: 100%;
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #111;
  background: #fbfbfc;
}

.header {
  padding: 8px 12px;
  border-bottom: 1px solid #ddd;
  background: #fff;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.header h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #d6d6de;
  background: #f3f3f8;
  color: #222;
  text-decoration: none;
  font-size: 13px;
  line-height: 1;
}

.nav-pill.active {
  background: #244cff;
  border-color: #244cff;
  color: #fff;
}

.layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10px;
  padding: 10px;
  height: calc(100% - 42px);
  box-sizing: border-box;
}

.map-wrap {
  min-height: 300px;
}

.map {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.form-wrap {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px;
  overflow: auto;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.form-wrap h2 {
  margin: 4px 0 10px;
  font-size: 16px;
}

.form {
  display: grid;
  gap: 10px;
}

label {
  display: grid;
  gap: 5px;
  font-size: 13px;
}

input, textarea, button {
  font: inherit;
}

input, textarea {
  padding: 8px 10px;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  background: #fff;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #6b8cff;
  box-shadow: 0 0 0 3px rgba(107, 140, 255, 0.22);
}

button {
  padding: 9px 14px;
  border: 1px solid #2b59ff;
  border-radius: 10px;
  background: linear-gradient(180deg, #3b6bff, #244cff);
  color: white;
  font-weight: 600;
  cursor: pointer;
}

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

button.danger {
  border-color: #b00020;
  background: linear-gradient(180deg, #d61b3c, #b00020);
}

button:hover {
  filter: brightness(1.03);
}

button:active {
  transform: translateY(1px);
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status {
  font-size: 14px;
  color: #333;
}

.details {
  margin-top: 10px;
}

.details-box {
  background: #f7f7f7;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 10px;
  white-space: pre-wrap;
  min-height: 80px;
}

.page {
  padding: 10px;
}

.panel {
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.panel-head-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-head h2 {
  margin: 0;
}

.bids-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.bids-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.bids-item {
  margin: 0;
}

.bids-row {
  width: 100%;
  text-align: left;
  border: 1px solid #d6d6de;
  background: #f7f7fb;
  color: #111;
  border-radius: 12px;
  padding: 10px;
}

.bids-row.selected {
  border-color: #244cff;
  box-shadow: 0 0 0 3px rgba(36, 76, 255, 0.18);
}

.bids-name {
  font-weight: 700;
  margin-bottom: 4px;
}

.bids-meta {
  font-size: 13px;
  color: #333;
}

/* Align bids-page details column with top of list */
.bids-layout .details {
  margin-top: 0;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  .map {
    min-height: 340px;
  }
  .bids-layout {
    grid-template-columns: 1fr;
  }
}
