/* ============================================================
 * AucKit Android アプリの端末モック (.pm)
 *
 * Android アプリの実装をそのまま写した表示コンポーネント。
 * 寸法・色は src/main/java/com/auckit/probe/ の各 Kotlin と対応する:
 *   TxnRow.kt          … 行の構造・サムネ・状態色(#C62828 / #EF6C00 / #666)
 *   MainActivity.kt    … 見出し・セクション見出し(12sp #666)・アカウント行
 *   TxnListActivity.kt … フィルタチップ(radius 14dp)・状態色
 *   Account.kt         … アカウント色パレット
 * アプリ側の見た目を変えたときは、こちらも合わせて直すこと。
 *
 * マークアップは _shared/app-mock.php のヘルパーが生成する。
 * トップページ(/) と /app/android/ の両方で読み込むため、
 * ページ固有のレイアウトは含めないこと(それは app-lp.css 側)。
 *
 * 配色トークン(--accent 等)は /assets/style.css の :root を継承する。
 * ============================================================ */
/* ---------- 端末モック本体 ---------- */
.pm {
  width: 360px;
  max-width: 100%;
  margin: 0 auto;
  border: 8px solid #22262f;
  border-radius: 30px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(15, 20, 40, 0.18);
  font-family: "Roboto", -apple-system, "Hiragino Sans", sans-serif;
  color: #191919;
  line-height: 1.45;
  -webkit-user-select: none;
  user-select: none;
}
.pm--sm { width: 330px; }

/* ステータスバー */
.pm__status {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 14px 2px;
  font-size: 11px; color: #444;
}
.pm__status-r { letter-spacing: 2px; font-size: 10px; }

/* 画面上部の見出し行 (activity_main.xml / activity_txn_list.xml) */
.pm__head {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 8px 8px 14px;
}
.pm__headline { flex: 1; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.pm__headline--sm { font-size: 15.5px; }
.pm__updated { font-size: 10px; color: #444; white-space: nowrap; }

/* Material3 の塗りつぶしボタン */
.pm__btn {
  display: inline-block;
  background: #6750a4; color: #fff;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 11px; white-space: nowrap;
}
.pm__btn--xs { font-size: 10px; padding: 5px 11px; }
.pm__btn--wide { flex: 1; text-align: center; }

/* 本文領域 (paddingStart/End 12dp) */
.pm__body { padding: 0 10px 16px; }

/* 検索欄 (EditText) */
.pm__search {
  margin: 2px 14px 8px;
  border-bottom: 1px solid #79747e;
  padding: 4px 2px 6px;
  font-size: 12px; color: #8b8b8b;
}

/* 状態フィルタのチップ列 */
.pm__chips { display: flex; gap: 5px; padding: 0 10px 8px; overflow: hidden; }
.pm__chip {
  background: #eee; color: #444;
  border-radius: 14px; padding: 4px 10px;
  font-size: 10.5px; white-space: nowrap;
}
.pm__chip--on { color: #fff; }

/* 取引1行 (TxnRow.build) */
.pm__row {
  display: flex; align-items: center;
  padding: 7px 0;
}
.pm__row-body { display: flex; align-items: center; flex: 1; min-width: 0; }
.pm__row--picked .pm__row-body { opacity: 0.45; }
.pm__chk {
  width: 15px; height: 15px; flex: none;
  border: 2px solid #79747e; border-radius: 2px;
  margin-right: 6px;
}
.pm__chk--on {
  background: #6750a4; border-color: #6750a4;
  position: relative;
}
.pm__chk--on::after {
  content: ""; position: absolute;
  left: 3px; top: 0px; width: 4px; height: 8px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.pm__thumb {
  width: 46px; height: 46px; flex: none;
  margin-right: 8px; background: #eee;
  object-fit: cover; display: block;
}
.pm__col { flex: 1; min-width: 0; }
.pm__title {
  font-size: 12px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.pm__meta-row { display: flex; align-items: center; margin-top: 3px; min-width: 0; }
.pm__badge {
  flex: none;
  color: #fff; font-size: 9.5px; line-height: 1.4;
  border-radius: 6px; padding: 1px 6px;
}
.pm__meta {
  font-size: 10px; color: #666;
  padding-left: 5px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.pm__age { flex: none; font-size: 11.5px; color: #666; padding-left: 5px; }
.pm__age--w { color: #ef6c00; }
.pm__age--d { color: #c62828; }

/* 状態語の色 (TxnListActivity.colorOf) */
.pm-need { color: #c62828; }
.pm-wait { color: #ef6c00; }
.pm-ship { color: #1565c0; }
.pm-done { color: #2e7d32; }

/* セクション見出し (12sp / #666) */
.pm__sect { font-size: 10.5px; color: #666; padding: 14px 0 3px; }

/* アカウント行 */
.pm__acc { display: flex; align-items: center; padding: 8px 0; }
.pm__acc-col { flex: 1; min-width: 0; padding: 0 8px; }
.pm__acc-main { font-size: 12px; color: #222; }
.pm__acc-sub { font-size: 10px; color: #888; }

/* 下部のボタン列 */
.pm__btnrow { display: flex; gap: 7px; padding-top: 8px; }

/* 取引画面 (Demo.tradeHtml と対応) */
.pm__demobar { background: #0070f3; color: #fff; text-align: center; font-size: 10px; padding: 3px; }
.pm__tradebar { background: #f5f5f5; padding: 9px 13px; font-size: 11px; color: #888; border-bottom: 1px solid #e0e0e0; }
.pm__trade { padding: 13px; }
.pm__trade-h { font-size: 12.5px; font-weight: 600; margin-bottom: 10px; }
.pm__steps { display: flex; gap: 3px; margin: 11px 0; }
.pm__step { flex: 1; text-align: center; font-size: 9px; color: #999; }
.pm__step-dot { width: 12px; height: 12px; border-radius: 50%; background: #ccc; margin: 0 auto 3px; }
.pm__step--on { color: #0070f3; }
.pm__step--on .pm__step-dot { background: #0070f3; }
.pm__trade-msg { color: #c62828; font-weight: 700; font-size: 11.5px; margin: 13px 0; line-height: 1.6; }
.pm__trade-box { border: 1px solid #e0e0e0; border-radius: 6px; padding: 10px; margin: 10px 0; font-size: 11px; line-height: 1.75; }
.pm__trade-k { color: #888; }
.pm__trade-btn {
  display: block; text-align: center;
  border: 2px solid #c62828; color: #c62828; font-weight: 700;
  padding: 11px; border-radius: 8px; margin: 14px 0; font-size: 11.5px;
}

/* 設定ダイアログ */
.pm__dialog { padding: 16px 18px 12px; }
.pm__dialog-t { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.pm__opt { display: flex; align-items: center; gap: 9px; padding: 7px 0; font-size: 11.5px; }
.pm__switch { width: 30px; height: 17px; border-radius: 9px; background: #d5d2da; flex: none; position: relative; }
.pm__switch::after { content: ""; position: absolute; width: 11px; height: 11px; border-radius: 50%; background: #fff; top: 3px; left: 4px; }
.pm__switch--on { background: #6750a4; }
.pm__switch--on::after { left: 15px; }

/* モックの下に付ける説明 */
.pm-cap { font-size: 12.5px; color: var(--text-mute); text-align: center; margin-top: 12px; line-height: 1.6; }

@media (max-width: 400px) {
  .pm { width: 100%; border-width: 6px; border-radius: 24px; }
}

