/* generated by scripts/sync_prototype.py from the prototype: portal phone: pages.css. Do not edit. */
/* ============================================================
   KCM Trade — phone, the rest of the pages (≤760px). Home has its
   own file; this one takes the height out of Accounts, Payment
   details, Deposit, Funds and Reward, on the same principle: a
   phone shows what you act on, and sends the detail one tap away.
   ============================================================ */
@media (max-width:760px){

  /* ---------- page heads: the sentence under the title is desktop copy;
     on a phone the title alone does the work ---------- */
  .pagehead{margin:2px 0 12px}
  .pagehead h1{font-size:26px}
  .pagehead p{display:none}

  /* ---------- Accounts ----------
     The account card was spending 104px on four figures. Two of them are
     the ones people check; margin used and floating P&L are on the card
     you open. The card keeps its tags, its name and its three actions. */
  .total{padding:16px 16px 15px;gap:13px}
  .total-i{width:46px;height:46px;border-radius:14px}
  .total-i svg{width:28px;height:28px}
  .total-val{font-size:30px}
  .total-sub{font-size:12.2px;margin-top:4px}
  .acct{padding:12px 14px 13px}
  .mini-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 14px;margin-top:9px}
  .mini-stats > div:nth-child(n+3){display:none}
  .acct-acts{gap:6px;padding-top:8px}
  .acct-acts .btn{padding:9px 6px}
  /* the two side cards lose their explaining paragraph: the rows say it */
  body[data-page="Accounts"] .opener > p,
  body[data-page="Accounts"] .card-quiet > p{display:none}
  body[data-page="Accounts"] .card{padding:16px}
  body[data-page="Accounts"] .opens{margin-top:12px;gap:8px}

  /* ---------- Payment details ----------
     A saved method is a row: the mark, the name with its number, the
     status, and the two actions under it. It does not need 157px. */
  .pm{padding:11px 13px 12px;border-radius:14px}
  .pm-top{gap:10px}
  .pm-i{width:34px;height:34px}
  .pm-name{font-size:14.6px}
  .pm-no{margin-top:1px}
  .pm-added{font-size:11.4px;margin-top:1px}
  .pm-acts{padding-top:9px;margin-top:9px}
  /* adding a method is a list of 56px rows rather than 70px cards */
  .addm{padding:9px 12px;gap:10px;min-height:56px}
  .addm-i{width:32px;height:32px}
  .addm b{font-size:14px}
  .addm span span{font-size:11.8px}

  /* ---------- Deposit ----------
     The method tiles were one per row on the narrowest phones; two across
     fits the whole list in a screen. */
  .deps{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .dep{aspect-ratio:1.12}
  .dep-into{padding:13px 15px}

  /* ---------- Reward ----------
     The hero carries four figures that read fine two-up. */
  .rw-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px}
  .promo.is-hero .rw-stats{margin-top:14px}

  /* ---------- Funds ---------- */
  .move-grid{gap:8px}
  .move{padding:13px}
  .avail{margin-top:14px;padding-top:14px}
}

/* ---------- Profile ----------
   One column, and the identity block loses its side-by-side shape: the name
   is long enough in Thai and English that it needs the width. */
@media (max-width:760px){
  .pme{gap:13px;margin-bottom:20px}
  .pme-av{width:52px;height:52px;font-size:17px}
  .pme-t h2{font-size:18.5px}
  .pme-t p{font-size:12.8px}
  .panel-rows{padding:2px 16px}
  .prow{padding:12px 0;gap:12px}
  .prow dt{font-size:12.8px}
  .prow dd{font-size:13.6px}
  .plink{padding:12px 14px}
  .plink-i{width:32px;height:32px}
  .plink-t b{font-size:14px}
  .plink:active{transform:scale(.99);background:#EEF1F7}
:where(html[data-appearance="dark"]) .plink:active{background:rgba(255,255,255,0.1)}
  .plink:hover{transform:none;background:var(--surface)}
  .plogout{min-height:48px}
  @media (prefers-reduced-motion:reduce){ .plink:active{transform:none} }
}
