/* Continental P2P screens. Keep these rules scoped to the market view. */
.app-shell:has(.market-design) > .app-header {
  display: none;
}
.app-shell:has(.market-design) > nav {
  display: none;
}
.market-design {
  padding-bottom: 16px;
}
.market-design button,
.market-design input,
.market-design select,
.market-design textarea {
  min-width: 0;
}
.market-design .market-topbar,
.market-design .market-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 8px 0;
  margin-bottom: 12px;
}
.market-design .market-topbar h1,
.market-design .market-step h1 {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.3;
  letter-spacing: 0;
}
.market-design .market-step > span {
  font-size: 1.0625rem;
  white-space: nowrap;
}
.market-design .market-header-spacer {
  width: 44px;
}
.market-design .market-icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 14px;
  background: #16182b;
  color: #f2f3f7;
}
.market-design .market-back .ui-symbol {
  transform: rotate(180deg);
}
.market-design .market-header-tools {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}
.market-design .market-country-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  max-width: 135px;
  border-radius: 14px;
  background: #16182b;
  color: #f2f3f7;
  padding: 10px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
}
.market-design .market-country-control .ui-symbol {
  width: 16px;
  height: 16px;
  transform: rotate(90deg);
}
.market-design .page-title {
  padding: 12px 0 14px;
}
.market-design .page-title h1 {
  font-size: 1.625rem;
  margin: 0 0 8px;
  line-height: 1.3;
}
.market-design .page-title p {
  font-size: 0.875rem;
  margin-bottom: 0;
}
.market-design .primary,
.market-design .secondary {
  min-height: 54px;
  border-radius: 14px;
  font-size: 1rem;
  margin-top: 10px;
}
.market-design .text-button {
  min-height: 40px;
  font-size: 0.8125rem;
}
.market-design .market-tabs {
  background: #16182b;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  margin: 12px 0 16px;
}
.market-design .market-tabs button {
  min-height: 38px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 6px;
  color: #8d91a8;
}
.market-design .market-tabs .selected {
  background: #22253b;
  color: #f2f3f7;
}
.market-design .market-main-tabs {
  position: fixed;
  z-index: 10;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 430px);
  min-height: 72px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #0f1124;
  padding: 6px calc(12px + var(--safe-right)) calc(14px + var(--safe-bottom))
    calc(12px + var(--safe-left));
  gap: 0;
  border-top: 1px solid #1f2238;
  border-radius: 0;
  margin: 0;
}
.market-design .market-main-tabs button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 50px;
  padding: 0;
  border-radius: 12px;
  border: 0;
  background: none;
  font-size: .8125rem;
}
.market-design .market-main-tabs .selected {
  background: none;
  color: #5aa5ff;
}
.market-design .market-tab-icon {
  width: 44px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.market-design .selected .market-tab-icon {
  background: #162a4b;
}
.market-design .market-tab-icon .ui-symbol {
  width: 20px;
  height: 20px;
}
.market-design .market-tab-offers .ui-symbol,
.market-design .market-tab-sell .ui-symbol {
  transform: rotate(-45deg);
}
.market-design .market-heading {
  min-width: 0;
}
.market-design .market-heading .page-title {
  min-width: 0;
  padding-top: 4px;
}
.market-design .market-heading h1 {
  font-size: 1.375rem;
}

/* Country gate and filters. No platform-colored select backgrounds. */
.app-shell:has(.market-country-screen) {
  padding-bottom: calc(16px + var(--safe-bottom));
}
.market-design.market-country-screen {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 16px);
  padding-bottom: 0;
}
.market-design.market-country-screen > .market-topbar,
.market-design.market-country-screen > .page-title,
.market-design.market-country-screen > .field {
  flex-shrink: 0;
}
.market-design.market-country-screen > .market-country-list {
  flex: 1;
  min-height: 140px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.market-design .market-country-screen > .field,
.market-design.market-country-screen > .field {
  margin: 4px 0 16px;
}
.market-design .market-country-list {
  background: #16182b;
  border-radius: 18px;
  overflow: hidden;
}
.market-design .market-country-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 68px;
  padding: 13px 16px;
  text-align: left;
  background: none;
}
.market-design .market-country-row + .market-country-row {
  border-top: 1px solid #22253b;
}
.market-design .market-country-code {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #22253b;
  color: #8bc0ff;
  font-size: 0.8125rem;
  font-weight: 700;
}
.market-design .market-country-labels {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.market-design .market-country-labels strong {
  font-size: 0.9375rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.market-design .market-country-labels small {
  font-size: 0.8125rem;
}
.market-design .market-country-row > .ui-symbol {
  width: 18px;
  height: 18px;
  color: #5aa5ff;
}
.market-design .market-filters {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 6px;
}
.market-design .market-filter {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 58px;
  padding: 10px;
  border-radius: 12px;
  background: #1e2136;
  color: #8d91a8;
  font-size: .8125rem;
}
.market-design .market-filter select {
  display: block;
  width: 100%;
  min-height: 24px;
  padding: 0 18px 0 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-position: right center;
  color: #f2f3f7;
  font-size: 1rem;
  font-weight: 600;
  text-overflow: ellipsis;
}
.market-design .market-filter input {
  width: 100%;
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #f2f3f7;
  font-size: 1rem;
  font-weight: 600;
}
.market-design .market-filter input::placeholder {
  font-size: 0.8125rem;
  color: var(--muted);
}
.market-design .market-filter :disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.market-design .market-filter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: .8125rem;
  margin-bottom: 8px;
}
.market-design .market-filter-summary .text-button {
  min-height: 36px;
  padding: 8px 0;
}
.market-design .market-security-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0;
  padding: 12px;
  background: #1c1a12;
  border: 1px solid #3a3220;
  border-radius: 14px;
  color: #ead3a0;
  font-size: 0.8125rem;
  line-height: 1.45;
}
.market-design .market-security-note .ui-symbol {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}
.market-design .market-security-note span {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Offer cards share the preview layout used by the ad wizard. */
.market-design .market-offer,
.market-design .market-panel {
  background: #16182b;
  border-radius: 18px;
  padding: 14px 16px;
  margin: 12px 0;
}
.market-design .market-offer-price {
  gap: 12px;
  padding-bottom: 0;
  border-bottom: 0;
}
.market-design .market-offer-price > div {
  min-width: 0;
}
.market-design .market-offer-price strong {
  display: block;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  overflow-wrap: anywhere;
}
.market-design .market-offer-price small {
  margin-top: 3px;
  font-size: .8125rem;
}
.market-design .market-buy {
  flex-shrink: 0;
  min-height: 40px;
  border-radius: 12px;
  padding: 10px 16px;
  background: #1f6fe0;
  font-size: 0.875rem;
  font-weight: 700;
}
.market-design .market-sell {
  background: #173527;
  color: #68dba0;
}
.market-design .market-person {
  gap: 8px;
  padding: 12px 0 10px;
  font-size: 0.9375rem;
}
.market-design .market-avatar {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: #22253b;
  color: #8bc0ff;
  font-size: .8125rem;
}
.market-design .market-reserved {
  min-width: 0;
  max-width: 44%;
  font-size: .8125rem;
  line-height: 1.3;
  text-align: right;
}
.market-design .market-offer .detail-row {
  display: grid;
  grid-template-columns: minmax(84px, 110px) minmax(0, 1fr);
  gap: 10px;
  border: 0;
  padding: 5px 0;
  font-size: 0.8125rem;
  line-height: 1.4;
}
.market-design .market-offer .detail-row strong {
  max-width: none;
  font-size: 0.8125rem;
  font-weight: 500;
}
.market-design .market-offer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 10px;
  border-top: 1px solid #22253b;
  padding-top: 10px;
  color: #8d91a8;
  font-size: .8125rem;
}
.market-design .market-offer-preview {
  border: 1px solid #243a66;
}
.market-design .market-caption {
  color: #5aa5ff;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 10px;
}
.market-design .market-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  gap: 12px;
  padding: 28px 16px;
  text-align: center;
  color: #8d91a8;
}
.market-design .market-empty-state > .ui-symbol {
  width: 44px;
  height: 44px;
  color: #5aa5ff;
}
.market-design .market-empty-state p {
  max-width: 290px;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
}
.market-design .market-empty-state .primary {
  width: auto;
}

/* Real P2P profile statistics; unsupported badges and ratings are omitted. */
.market-design .market-profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0;
  padding: 16px;
  background: #16182b;
  border-radius: 20px;
}
.market-design .market-profile-card > div {
  min-width: 0;
}
.market-design .market-profile-card h2 {
  margin: 0 0 5px;
  font-size: 1.125rem;
}
.market-design .market-profile-card p {
  margin: 0;
  font-size: 0.8125rem;
}
.market-design .market-profile-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: #22253b;
  color: #8bc0ff;
  border-radius: 50%;
  font-size: 1.5625rem;
  font-weight: 700;
}
.market-design .market-profile-scopes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  background: #16182b;
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 12px;
}
.market-design .market-profile-scopes button {
  min-height: 38px;
  border-radius: 10px;
  background: none;
  color: #8d91a8;
  font-size: 0.8125rem;
  padding: 8px;
}
.market-design .market-profile-scopes .selected {
  background: #1f6fe0;
  color: white;
}
.market-design .market-profile-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 16px;
}
.market-design .market-profile-kpis > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  background: #16182b;
  border-radius: 16px;
  padding: 12px 14px;
}
.market-design .market-profile-kpis small {
  font-size: .8125rem;
  line-height: 1.4;
}
.market-design .market-profile-kpis strong {
  font-size: 1.0625rem;
  font-variant-numeric: tabular-nums;
}
.market-design .market-profile-menu {
  background: #16182b;
  border-radius: 18px;
  padding: 0 16px;
  margin: 16px 0;
}
.market-design .market-profile-menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  text-align: left;
  min-height: 56px;
  width: 100%;
  padding: 12px 0;
  font-size: 0.875rem;
}
.market-design .market-profile-menu button + button {
  border-top: 1px solid #22253b;
}
.market-design .market-profile-menu button > .ui-symbol:first-child {
  color: #5aa5ff;
  width: 22px;
  height: 22px;
}
.market-design .market-profile-menu button > span {
  flex: 1;
  min-width: 0;
}
.market-design .market-profile-menu button > .ui-symbol:last-child {
  width: 18px;
  height: 18px;
  color: #8d91a8;
}
.market-design .market-faq {
  border-radius: 18px;
  background: #16182b;
  font-size: 0.875rem;
}

/* Amount, payment, confirmation and dispute screens. */
.market-design.market-flow {
  padding-bottom: 150px;
}
.market-design .market-order-person {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #16182b;
  margin: 12px 0;
}
.market-design .market-order-person > strong {
  min-width: 0;
  font-size: 0.9375rem;
}
.market-design .market-order-rate {
  margin-left: auto;
  text-align: right;
  font-size: 0.875rem;
  font-weight: 700;
}
.market-design .market-order-screen .field input,
.market-design.market-order-screen .market-panel .field input {
  font-size: 1.625rem;
}
.market-design .market-trade-summary .detail-row {
  align-items: flex-start;
  font-size: 0.875rem;
  padding: 10px 0;
  border-bottom: 0;
  gap: 12px;
}
.market-design .market-trade-summary .detail-row strong {
  font-size: 0.875rem;
  font-weight: 500;
}
.market-design .market-summary-extra {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid #22253b;
}
.market-design .market-summary-extra summary {
  font-size: 0.8125rem;
  color: #5aa5ff;
}
.market-design .market-progress {
  align-items: center;
  gap: 12px;
}
.market-design .market-progress > div {
  min-width: 0;
}
.market-design .market-progress h1 {
  font-size: 1.1875rem;
  line-height: 1.35;
  margin: 0 0 6px;
}
.market-design .market-progress p {
  margin: 0;
  font-size: 0.8125rem;
}
.market-design .market-timer {
  width: 56px;
  height: 56px;
  border-width: 3px;
  border-color: #1f6fe0;
  border-left-color: #303456;
  font-size: .8125rem;
}
.market-design .market-payment h2 {
  font-size: 0.9375rem;
  margin: 0 0 12px;
}
.market-design .market-payment-value {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #22253b;
}
.market-design .market-payment-value > div {
  flex: 1;
  min-width: 0;
}
.market-design .market-payment-value small {
  display: block;
  font-size: .8125rem;
  margin-bottom: 5px;
}
.market-design .market-payment-value strong {
  display: block;
  font-size: 1rem;
  overflow-wrap: anywhere;
}
.market-design .market-payment-value .market-terms {
  font-size: 0.9375rem;
  margin: 0;
}
.market-design .market-copy {
  flex-shrink: 0;
  min-height: 36px;
  padding: 8px;
  border-radius: 10px;
  background: #22253b;
  color: #5aa5ff;
  font-size: .8125rem;
}
.market-design .market-copy .ui-symbol {
  width: 20px;
  height: 20px;
  display: block;
}
.market-design .market-complete-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 12px 16px;
  text-align: center;
}
.market-design .market-complete-state > .ui-symbol {
  box-sizing: border-box;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  padding: 26px;
  background: #133a2a;
  color: #5ddb9d;
  margin-bottom: 20px;
}
.market-design .market-complete-state h2 {
  font-size: 1.625rem;
  margin: 0;
}
.market-design .market-actions {
  padding-top: 12px;
}
.market-design.market-flow .market-actions {
  width: min(calc(100% - 32px - var(--safe-left) - var(--safe-right)), 398px);
  background: #0a0b1a;
  padding: 8px 0 calc(12px + var(--safe-bottom));
}
.market-design .market-sheet-overlay {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 60;
  padding-top: calc(20px + var(--safe-top));
  background: rgba(3, 4, 12, 0.72);
}
.market-design .market-confirm-sheet {
  position: relative;
  margin: 0;
  border: 0;
  color: #f2f3f7;
  max-height: 100%;
  overflow-y: auto;
  width: min(100%, 430px);
  background: #14162a;
  border-radius: 24px 24px 0 0;
  padding: 20px calc(16px + var(--safe-right)) calc(28px + var(--safe-bottom))
    calc(16px + var(--safe-left));
}
.market-design .market-confirm-sheet .page-title {
  padding: 0 0 12px;
}
.market-design .market-confirm-sheet h1 {
  font-size: 1.375rem;
}
.market-design .market-confirm-sheet p {
  font-size: 0.875rem;
  color: #a1a6bd;
}
.market-design .market-dispute-form {
  display: grid;
  gap: 16px;
}
.market-design .market-dispute-reasons {
  border-radius: 18px;
  background: #16182b;
  padding: 0 16px;
}
.market-design .market-dispute-reasons label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  font-size: 0.875rem;
  cursor: pointer;
}
.market-design .market-dispute-reasons label + label {
  border-top: 1px solid #22253b;
}
.market-design .market-dispute-reasons input {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  accent-color: #1f6fe0;
}
.market-design .market-dispute-comment {
  min-height: 120px;
  border-radius: 16px;
  padding: 14px 16px;
  background: #16182b;
  border: 1px solid #2a2d47;
  font-size: 0.9375rem;
}
.market-design .market-dispute-form .footnote {
  margin: 0;
}

/* Chat has a compact header, readable bubbles and a fixed bottom composer. */
.market-design.market-chat-screen {
  min-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 16px);
  padding-bottom: 96px;
}
.market-design .market-chat-reference {
  color: #8d91a8;
  font-size: .8125rem;
  margin: -6px 0 18px;
}
.market-design.market-chat-screen .market-topbar h1 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.market-design.market-chat-screen .market-avatar {
  width: 36px;
  height: 36px;
}
.market-design .market-chat-messages {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.market-design .market-chat-bubble {
  max-width: 78%;
  min-width: 0;
  background: #16182b;
  padding: 12px 14px;
  border-radius: 16px 16px 16px 4px;
}
.market-design .market-chat-own {
  align-self: flex-end;
  background: #1f6fe0;
  border-radius: 16px 16px 4px 16px;
}
.market-design .market-chat-bubble .message-body {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.4;
}
.market-design .market-chat-bubble time {
  display: block;
  color: #8d91a8;
  font-size: .8125rem;
  text-align: right;
  margin-top: 6px;
}
.market-design .market-chat-own time {
  color: #d6e6ff;
}
.market-design .market-chat-composer {
  display: flex;
  align-items: center;
  gap: 10px;
  position: fixed;
  z-index: 12;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 430px);
  padding: 10px calc(16px + var(--safe-right)) calc(12px + var(--safe-bottom))
    calc(16px + var(--safe-left));
  background: #0a0b1a;
}
.market-design .market-chat-composer input {
  flex: 1;
  min-height: 44px;
  border-radius: 999px;
  padding: 12px 16px;
  border: 1px solid #22253b;
  background: #16182b;
  color: #f2f3f7;
  font-size: 1rem;
}
.market-design .market-chat-send {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1f6fe0;
  color: white;
}
.market-design .market-chat-send .ui-symbol {
  transform: rotate(-45deg);
}
.market-design .market-chat-refresh {
  display: block;
  margin: 12px auto;
}

/* Four-step ad wizard; settings remain backed by the existing API contract. */
.market-design .wizard-progress {
  width: 100%;
  height: 3px;
  margin: 0 0 8px;
  background: #22253b;
}
.market-design .wizard-progress::-webkit-progress-bar {
  background: #22253b;
  border-radius: 2px;
}
.market-design .wizard-progress::-webkit-progress-value {
  background: #1f6fe0;
  border-radius: 2px;
}
.market-design .wizard-progress::-moz-progress-bar {
  background: #1f6fe0;
}
.market-design .market-wizard {
  min-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 90px);
}
.market-design .market-wizard .market-panel {
  margin: 8px 0;
}
.market-design .market-wizard .market-filter {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 14px 0;
  min-height: 48px;
  background: none;
  color: #f2f3f7;
  font-size: 0.875rem;
}
.market-design .market-wizard .market-filter select {
  width: auto;
  max-width: 56%;
  color: #5aa5ff;
  font-size: 0.875rem;
  font-weight: 600;
  padding-right: 20px;
}
.market-design .market-side {
  min-height: 50px;
  padding: 0 0 12px;
  gap: 12px;
  font-size: 0.875rem;
}
.market-design .market-segmented {
  display: flex;
  padding: 4px;
  gap: 4px;
  border-radius: 12px;
  background: #0f1124;
}
.market-design .market-side .market-segmented button {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 9px;
  background: none;
  color: #8d91a8;
  font-size: 0.875rem;
}
.market-design .market-side .market-segmented .selected {
  background: #1f6fe0;
  color: white;
}
.market-design .market-wizard .field {
  position: relative;
  gap: 10px;
  margin: 0;
  font-size: 0.875rem;
  color: #5aa5ff;
}
.market-design .market-wizard .field input {
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #2a2d47;
  border-radius: 0;
  background: none;
  font-size: 1.375rem;
}
.market-design .market-wizard .field input::placeholder {
  color: var(--muted);
}
.market-design .market-price-adjust {
  display: flex;
  gap: 8px;
  position: absolute;
  right: 0;
  bottom: 6px;
}
.market-design .market-price-adjust button {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #22253b;
  color: #f2f3f7;
  font-size: 1.5625rem;
}
.market-design .market-pricing-panel .field:has(.market-price-adjust) input {
  padding-right: 110px;
  min-height: 56px;
  font-size: 1.75rem;
}
.market-design .market-input-unit {
  position: absolute;
  right: 0;
  bottom: 14px;
  max-width: 42%;
  color: #8d91a8;
  font-size: 0.875rem;
  pointer-events: none;
}
.market-design .field:has(.market-input-unit) input {
  padding-right: 44%;
}
.market-design .market-volume-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: .8125rem;
  line-height: 1.4;
  margin-top: 6px;
}
.market-design .market-volume-balance .text-button {
  flex-shrink: 0;
}
.market-design .market-limit-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.market-design .market-limit-fields .field {
  gap: 8px;
  color: #8d91a8;
  font-size: .8125rem;
}
.market-design .market-limit-fields .field input {
  height: 46px;
  padding: 12px 42px 12px 10px;
  border: 0;
  border-radius: 10px;
  background: #0f1124;
  font-size: 1rem;
}
.market-design .market-limit-fields .market-input-unit {
  bottom: 15px;
  right: 10px;
  max-width: 32%;
  font-size: .8125rem;
}
.market-design .market-setting {
  min-height: 56px;
  border-bottom: 1px solid #22253b;
  font-size: 0.875rem;
}
.market-design .market-setting:last-child {
  border-bottom: 0;
}
.market-design .market-setting input {
  width: 50px;
  height: 30px;
  min-width: 50px;
  background: #3b4058;
}
.market-design .market-setting input::after {
  width: 24px;
  height: 24px;
  background: white;
}
.market-design .market-setting input:checked {
  background: #1f6fe0;
}
.market-design .market-setting input:checked::after {
  transform: translateX(20px);
}
.market-design .market-wizard .footnote {
  margin: 8px 8px 12px;
  font-size: 0.8125rem;
  line-height: 1.45;
}
.market-design .market-method-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  margin-top: 12px;
}
.market-design .market-methods {
  padding: 0 16px;
}
.market-design .market-methods .check-row {
  min-height: 50px;
  gap: 12px;
  border-bottom: 1px solid #22253b;
  font-size: 0.875rem;
}
.market-design .market-methods .check-row:last-child {
  border-bottom: 0;
}
.market-design .market-methods .check-row input {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: #1f6fe0;
}
.market-design .market-custom-method {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.market-design .market-custom-method .field {
  flex: 1;
  min-width: 0;
}
.market-design .market-custom-method .field input {
  font-size: 1rem;
}
.market-design .market-comment {
  min-height: 150px;
  margin: 8px 0;
  border: 1px solid #2a2d47;
  border-radius: 16px;
  background: #16182b;
  padding: 14px 16px;
  font-size: 0.9375rem;
}
.market-design .market-inline-error {
  margin: 0 0 10px;
  color: #ff8a8a;
  font-size: 0.8125rem;
  line-height: 1.4;
}

@media (max-width: 350px) {
  .market-design .market-topbar,
  .market-design .market-step {
    gap: 8px;
  }
  .market-design .market-topbar h1,
  .market-design .market-step h1 {
    font-size: 0.9375rem;
  }
  .market-design .market-country-control {
    max-width: 108px;
    padding-inline: 8px;
    font-size: .8125rem;
  }
  .market-design .market-header-tools {
    gap: 6px;
  }
  .market-design .market-offer,
  .market-design .market-panel {
    padding-inline: 12px;
  }
  .market-design .market-filter {
    padding: 8px;
    font-size: .75rem;
  }
  .market-design .market-filter select {
    font-size: 0.875rem;
  }
  .market-design .market-offer-price strong {
    font-size: 1.25rem;
  }
  .market-design .market-buy {
    padding-inline: 12px;
  }
  .market-design .market-offer .detail-row {
    grid-template-columns: 92px minmax(0, 1fr);
    font-size: .8125rem;
  }
  .market-design .market-offer .detail-row strong {
    font-size: .8125rem;
  }
  .market-design .market-reserved {
    font-size: .75rem;
  }
  .market-design .market-price-adjust button {
    width: 40px;
    height: 40px;
  }
  .market-design .market-pricing-panel .field:has(.market-price-adjust) input {
    padding-right: 96px;
  }
}
