.market-head {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  margin: 1rem 0 2rem;
}
.market-head h2 {
  margin: 0.5rem 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}
.market-head p {
  max-width: 44rem;
}
.market-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #2a443c;
  border-radius: 20px;
  overflow: hidden;
  margin: 1.5rem 0;
}
.market-stats > div {
  padding: 1.5rem;
  background: #10251e;
}
.market-stats > div + div {
  border-left: 1px solid #2a443c;
}
.market-stats span,
.market-stats small {
  display: block;
  color: #adc0b8;
}
.market-stats strong {
  display: block;
  font-size: 2.5rem;
  color: #baff48;
  margin: 0.6rem 0;
}
.market-stats .stat-text {
  font-size: 1.35rem;
  line-height: 1.3;
}
.offer-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.offer-toolbar h3 {
  margin-right: auto;
}
.offer-toolbar label {
  font-size: 0.8rem;
  margin: 0;
}
.offer-toolbar select {
  margin: 0.3rem 0;
  width: auto;
  padding: 0.6rem;
}
.offer-grid,
.buyer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.offer-card {
  border: 1px solid #304c40;
  border-radius: 20px;
  background: linear-gradient(145deg, #10251e, #0b1b17);
  padding: 1.6rem;
  min-width: 0;
}
.offer-card.chosen {
  border-color: #baff48;
}
.offer-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
}
.offer-top h3 {
  margin: 0;
}
.offer-top .badge {
  font-size: 0.72rem;
}
.offer-price {
  font-size: 2.6rem;
  letter-spacing: -0.04em;
  color: #f2f7f3;
  line-height: 1.2;
  margin: 1.3rem 0;
}
.offer-price small {
  font-size: 0.9rem;
  color: #adc0b8;
  letter-spacing: 0;
  margin-left: 0.6rem;
  white-space: nowrap;
}
.offer-card dl > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid #263e33;
  font-size: 0.85rem;
}
.offer-card dt {
  color: #adc0b8;
}
.offer-card dd {
  margin: 0;
  text-align: right;
  max-width: 60%;
  overflow-wrap: anywhere;
}
.offer-card details {
  margin: 1rem 0;
  font-size: 0.9rem;
}
.offer-card summary,
.market-details summary {
  cursor: pointer;
  color: #d5e8db;
  font-weight: 600;
}
.offer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}
.offer-actions .check {
  margin: 0;
}
.offer-actions input {
  width: 18px;
  height: 18px;
}
.offer-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 3rem;
  max-width: none;
}
.offer-empty p {
  max-width: 40rem;
  margin: 1rem auto;
}
.table-scroll {
  overflow: auto;
}
.table-scroll table {
  min-width: 580px;
}
.table-scroll td {
  min-width: 180px;
  white-space: normal;
  max-width: 360px;
  vertical-align: top;
}
.market-details {
  margin-top: 1.25rem;
}
.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
}
.quote-form .full {
  grid-column: 1/-1;
}
.operator-quote {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  border-bottom: 1px solid #2a443c;
}
.market-status {
  display: flex;
  align-items: start;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.market-status h1 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  margin: 0.4rem 0;
}
.market-support {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}
.market-support .panel {
  margin: 0;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.industry-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.8rem 0;
}
.industry-category-list a {
  border: 1px solid #2c4434;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  color: #d9e8dc;
  font-size: 0.85rem;
  text-decoration: none;
}
.industry-category-list a:hover {
  border-color: #baff48;
  color: #baff48;
}
@media (max-width: 760px) {
  .market-head {
    align-items: start;
    flex-direction: column;
    gap: 0.5rem;
  }
  .market-stats {
    grid-template-columns: 1fr;
  }
  .market-stats > div {
    padding: 1.2rem;
  }
  .market-stats > div + div {
    border-left: 0;
    border-top: 1px solid #2a443c;
  }
  .market-stats strong {
    font-size: 2rem;
  }
  .offer-grid,
  .buyer-grid,
  .market-support,
  .quote-form {
    grid-template-columns: 1fr;
  }
  .offer-top {
    flex-direction: column;
    gap: 0.5rem;
  }
  .offer-card {
    padding: 1.2rem;
  }
  .offer-price {
    font-size: 2.3rem;
  }
  .offer-actions {
    flex-wrap: wrap;
  }
  .offer-toolbar {
    gap: 0.6rem;
  }
  .offer-toolbar h3 {
    width: 100%;
    margin-bottom: 0;
  }
  .quote-form .full {
    grid-column: auto;
  }
  .market-status {
    flex-direction: column;
  }
  .operator-quote {
    align-items: start;
    flex-direction: column;
    padding: 1rem 0;
  }
}
