@media (min-width: 860px) {
  /* P2P directory and deposit history */
  .p2p-head .p2p-region {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink-2);
    font-size: 13px;
  }
  .p2p-region .ico { color: var(--brand); }
  .p2p-region b { color: var(--ink); }
  .p2p-body .p2p-tabs {
    display: flex;
    gap: 24px;
    margin: 0 0 16px;
    padding: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
  }
  .p2p-tabs .knob { display: none; }
  .p2p-body .p2p-tabs button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 6px;
    border-bottom: 2px solid transparent;
    border-radius: 0;
  }
  .p2p-body .p2p-tabs button:hover { color: var(--ink); }
  .p2p-body .p2p-tabs button.on { color: var(--brand); border-bottom-color: var(--brand); }
  .p2p-tabs .p2p-tab-icon, .p2p-choice-field .p2p-caret { display: inline; }
  .p2p-active-deals { margin-bottom: 16px; }
  .p2p-active-deals h2 { padding-inline: 18px; }
  .p2p-active-deal { padding-inline: 18px; }
  .p2p-active-deal-info { display: flex; align-items: center; gap: 14px; }
  .p2p-active-deal-meta { gap: 4px 14px; }
  .p2p-cashier { gap: 16px; min-height: 80px; margin-bottom: 18px; padding: 14px 20px; }
  .p2p-cashier-icon { width: 46px; }
  .p2p-cashier-text strong { font-size: 17.5px; }
  .p2p-cashier-text > span { font-size: 13.5px; }
  .p2p-cashier-arrow { width: 38px; }
  .p2p-body .p2p-workspace { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .p2p-body :is(.p2p-filters, .p2p-board, .p2p-history) {
    display: block;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
  }
  .p2p-filters { padding: 16px 20px 20px; }
  .p2p-board { order: 1; }
  .p2p-filter-head, .p2p-results-head { display: flex; align-items: center; gap: 10px; }
  .p2p-filter-head { justify-content: space-between; margin-bottom: 12px; }
  .p2p-filter-head button { font-size: 13px; font-weight: 600; color: var(--brand); }
  .p2p-filter-head h2, .p2p-results-head h2, .p2p-history h2 { font-size: 18px; letter-spacing: -.025em; }
  .p2p-filter-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
    align-items: end;
  }
  .p2p-filter-fields .filters { display: contents; }
  .p2p-filter-fields :is(.p2p-amount, .p2p-choice-field) { display: grid; gap: 5px; min-width: 0; }
  .p2p-filter-fields .p2p-field-label { display: block; }
  .p2p-filter-fields :is(.chip, .search) {
    min-width: 0;
    min-height: 44px;
    height: 44px;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface-2);
    box-shadow: none;
    color: var(--ink);
  }
  .p2p-filter-fields .search { padding-inline: 12px; }
  .p2p-filter-fields .search:focus-within { border-color: var(--brand); }
  #device .p2p-filter-fields .search input:focus-visible { outline: none; }
  .p2p-filter-fields .search :is(.ico, .cur) { color: var(--ink-2); }
  .p2p-filter-fields .search .cur { font-size: 12px; }
  .p2p-choice-field .chip { justify-content: space-between; gap: 8px; width: 100%; padding-inline: 12px; }
  .p2p-choice-field .chip > .ico:first-child { flex: none; }
  .p2p-choice-field .chip .p2p-caret { margin-left: auto; }
  .p2p-filter-fields .chip.on { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); background: var(--brand-soft); color: var(--brand); }
  .p2p-filter-fields .chip:not(:disabled):hover { border-color: var(--brand); }
  .p2p-filter-fields .p2p-toggle { order: 1; justify-self: start; min-height: 35px; height: 35px; }
  .p2p-results-head { min-height: 64px; padding: 10px 20px; }
  #p2pCount {
    display: inline-grid;
    place-items: center;
    min-width: 28px;
    min-height: 26px;
    padding: 1px 7px;
    border-radius: 8px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }
  .p2p-board #offers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 14px;
    padding: 0 16px 16px;
  }
  .p2p-board .offer {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: none;
  }
  .p2p-board .offer.mine { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
  .p2p-board .offer-top { border-radius: 10px; }
  .p2p-board .offer-top:hover .nm { color: var(--brand); }
  .p2p-board .offer-mid { display: contents; }
  .p2p-board .offer-terms {
    display: grid;
    grid-template-columns: minmax(68px, .75fr) minmax(0, 1.25fr);
    gap: 8px;
    margin-top: 16px;
  }
  .p2p-board .offer .price { display: flex; flex-direction: column-reverse; gap: 2px; margin: 0; font-size: 18px; }
  .p2p-board .offer .price small, .p2p-board .offer .kv > span:nth-child(3) { margin: 0; color: var(--ink-2); font-size: 12px; font-weight: 500; }
  .p2p-board .offer .kv { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; margin: 0; }
  .p2p-board .offer .kv > span:last-child { min-width: 0; color: var(--ink); font-size: 15px; font-weight: 700; }
  .p2p-board .offer .methods { order: 1; align-content: center; gap: 5px; margin-top: 12px; padding-top: 0; border-top: 0; }
  .p2p-board .offer .method { min-width: 0; padding: 4px 8px; border-radius: 7px; background: var(--surface-2); overflow-wrap: anywhere; }
  .p2p-board .offer .method::before { width: 6px; height: 6px; flex: none; }
  .p2p-board .offer .method + .method { margin-left: 0; }
  .p2p-board .offer-btns { order: 2; justify-content: flex-end; margin-top: auto; padding-top: 12px; }
  .p2p-board :is(.offer-chat, .offer-pay) { height: 38px; border-radius: 10px; }
  .p2p-board .offer-chat { width: 38px; }
  .p2p-board .offer-pay { flex: none; }
  .p2p-board .p2p-empty {
    display: flex;
    grid-column: 1/-1;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 22px;
    border-radius: 14px;
    background: var(--surface-2);
    color: var(--ink-2);
    text-align: left;
  }
  .p2p-empty .ei { width: 44px; height: 44px; flex: none; margin: 0; border-radius: 12px; background: var(--brand-soft); color: var(--brand); box-shadow: none; }
  .p2p-empty b { margin-bottom: 2px; }
  .p2p-empty p { font-size: 14px; }
  .p2p-empty .p2p-empty-reset { margin: 0 0 0 auto; }
  .p2p-body .p2p-history { margin-top: 0; padding: 18px 20px; }
  .p2p-history h2 { display: block; margin-bottom: 14px; }
  .p2p-history .card { border-radius: 12px; box-shadow: none; }
  .p2p-history .history-empty { padding-block: 26px; background: var(--surface-2); color: var(--ink-2); }
  .p2p-history .history-empty .ei { width: 44px; height: 44px; border-radius: 12px; box-shadow: none; }
  .p2p-history .p2p-history-action { display: inline-flex; margin-top: 12px; }
  .p2p-history .li-end small { width: max-content; max-width: 100%; margin: 4px 0 0 auto; padding: 3px 8px; border-radius: 8px; background: var(--surface-2); color: var(--ink-2); }

  #device[data-view="account"][data-route="p2p"] .li:focus-visible {
    outline-offset: -3px;
  }

  @media (hover: hover) {
    #device[data-view="account"][data-route="p2p"] .li:hover {
      background: var(--surface-2);
    }
  }
}

@media (min-width: 1080px) {
  .p2p-filter-fields { grid-template-columns: minmax(0, 1.1fr) repeat(3, minmax(0, 1fr)); }

}

@media (min-width: 1200px) {
  .p2p-board { --offer-columns: minmax(148px, 1.2fr) minmax(70px, .5fr) minmax(115px, .9fr) minmax(127px, 1.3fr) 12.5rem; }
  .p2p-board :is(.p2p-columns, .offer) {
    display: grid;
    grid-template-columns: var(--offer-columns);
    align-items: center;
    gap: 12px;
    padding-inline: 20px;
  }
  .p2p-board .p2p-columns {
    min-height: 40px;
    border-block: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 600;
  }
  .p2p-board #offers { display: block; padding: 0; }
  .p2p-board .offer { min-height: 84px; border: 0; border-radius: 0; padding-block: 14px; }
  .p2p-board .offer ~ .offer { border-top: 1px solid var(--line); }
  .p2p-board .offer:not(:has(~ .offer)) { border-radius: 0 0 19px 19px; }
  .p2p-board .offer.mine { background: color-mix(in srgb, var(--brand-soft) 26%, var(--surface)); }
  .p2p-board .mine-tag { grid-column: 1/-1; justify-self: start; margin: 0; }
  .p2p-board .offer-terms { display: contents; }
  .p2p-board .offer .price { display: block; font-size: 17px; }
  .p2p-board .offer .price small, .p2p-board .offer .kv > span:nth-child(3) { display: none; }
  .p2p-board .offer .kv > span:last-child { font-size: 14px; }
  .p2p-board .offer .methods, .p2p-board .offer-btns { margin-top: 0; padding-top: 0; }
  .p2p-board .p2p-empty { margin: 0 20px 20px; }
}

/* Deal details and merchant profile */
@media (min-width: 860px) {
  #device[data-view="account"]:is([data-route="deal"], [data-route="seller"]) :is(.scr-head, .scr-body) {
    max-width: 1100px;
  }
  #device[data-view="account"]:is([data-route="deal"], [data-route="seller"]) .scr-head {
    min-height: 76px;
    padding-block: 14px 10px;
  }
  #device[data-view="account"]:is([data-route="deal"], [data-route="seller"]) .scr-head .title {
    font-size: clamp(22px, 2.2vw, 29px);
    text-align: left;
    overflow-wrap: anywhere;
  }
  .deal-screen, .deal-layout, .deal-main, .deal-aside { gap: 18px; }
  .deal-overview { border-radius: 22px; }
  .deal-hero { padding: 21px 24px; }
  .deal-hero-copy p { font-size: 15px; }
  .deal-hero .deal-countdown { gap: 11px; padding: 8px 14px 8px 10px; }
  .deal-countdown .timer-ring, .deal-countdown .timer-ring svg { width: 42px; height: 42px; }
  .deal-countdown span { font-size: 12px; }
  .deal-countdown b { font-size: 23px; }
  .deal-progress { padding-block: 15px; }
  .deal-step-label { font-size: 13px; }
  .deal-screen > .test-deal-notice { padding: 13px 15px; }
  .deal-panel { gap: 16px; padding: 19px; }
  .deal-panel-head h3 { font-size: 19px; }
  .deal-panel .deal-upload { min-height: 84px; padding: 13px; }
  .deal-upload .di { width: 44px; height: 44px; }
  .deal-upload-copy b { font-size: 15px; }
  .deal-actions { display: flex; flex-wrap: wrap; align-items: center; }
  .deal-actions .btn { width: auto; }
  .deal-actions .btn-primary { min-width: 168px; }
  .merchant-screen, .merchant-layout { gap: 18px; }
  .merchant-hero { padding: 21px 24px; }
  .merchant-identity { gap: 16px; }
  .merchant-meta { font-size: 13px; }
  .merchant-rating { min-width: 108px; padding: 11px 15px; }
  .merchant-panel { gap: 16px; padding: 19px; }
  .merchant-panel h2 { font-size: 19px; }
  .merchant-conditions { gap: 11px; font-size: 14px; }
  #device[data-view="account"]:is([data-route="deal"], [data-route="seller"]) .scr-body {
    padding-block-end: 22px;
  }
  #device[data-view="account"]:is([data-route="deal"], [data-route="seller"]) .ink3 { color: var(--ink-2); }
}

@media (min-width: 1080px) {
  .deal-layout { grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr); align-items: start; }
  .merchant-layout { grid-template-columns: minmax(245px, 1fr) minmax(0, 1.5fr); align-items: start; }
}

@media (min-width: 860px) and (max-height: 740px) {
  #device[data-view="account"]:is([data-route="deal"], [data-route="seller"]) .scr-head { min-height: 62px; padding-block: 8px; }
}
