.market-cost-settings p {
  color: var(--muted);
  line-height: 1.5;
}
.market-cost-form, .wb-cost-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 10px;
}
.market-cost-form label, .wb-cost-fields label, .wb-cost-history label {
  display: grid;
  min-width: 0;
  gap: 5px;
  font-size: 12px;
  font-weight: 650;
}
.market-cost-form label {
  flex: 1 1 205px;
}
.market-cost-form select, .wb-cost-dialog select, .wb-cost-dialog input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.market-cost-form :is(select,button):focus-visible, .wb-cost-dialog :is(select,input,button):focus-visible {
  outline: 2px solid var(--theme-focus);
  outline-offset: 2px;
}
.wb-cost-settings { margin-bottom: 16px; }
.market-cost-settings .market-cost-error, .wb-cost-dialog .market-cost-error {
  color: var(--danger, #a94151);
}
.wb-cost-dialog {
  width: min(560px, calc(100% - 28px));
  max-height: calc(100dvh - 30px);
  padding: clamp(16px, 3vw, 25px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
}
.wb-cost-dialog::backdrop { background: rgb(12 9 20 / 62%); }
.wb-cost-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.wb-cost-dialog-head h3 { margin: 0; }
.wb-cost-dialog p { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.wb-cost-history { margin-bottom: 14px; }
.wb-cost-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wb-cost-fields .primary-button { grid-column: 1 / -1; justify-self: start; }
.wb-detail-table tbody th { white-space: normal; min-width: 175px; max-width: 330px; overflow-wrap: anywhere; }
.wb-detail-table td small { white-space: normal; }
.wb-cost-settings-link { margin-bottom: 14px; }
@media (max-width: 480px) {
  .wb-cost-fields { grid-template-columns: 1fr; }
  .wb-cost-dialog-head { flex-wrap: wrap; }
}
