:root { --ink:#0f1111; --muted:#565959; --line:#d5d9d9; --brand:#ff9900; --bg:#f2f4f6; --ok:#067d62; --err:#b12704; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: #3a3f45; }
.scrim { min-height: 100vh; display: flex; gap: 16px; justify-content: center; align-items: flex-start; padding: 24px 12px; }
.overlay { width: 100%; max-width: 420px; background: var(--bg); border-radius: 16px; padding: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.ov-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.brand { font-weight: 700; display: flex; gap: 8px; align-items: center; }
.logo { width: 26px; height: 26px; border-radius: 6px; background: #232f3e; color: var(--brand); display: grid; place-items: center; font-weight: 800; }
.test-badge { font-size: 11px; font-weight: 700; background: #fff3cd; color: #7a5b00; border-radius: 4px; padding: 2px 6px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.item { display: flex; gap: 10px; align-items: center; }
.thumb { width: 44px; height: 44px; background: var(--bg); border-radius: 8px; display: grid; place-items: center; font-size: 24px; }
.grow { flex: 1; } .title { font-weight: 600; } .price { font-weight: 700; }
.row { display: flex; justify-content: space-between; padding: 3px 0; gap: 8px; }
.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; font-weight: 700; }
.muted { color: var(--muted); } .small { font-size: 12px; text-align: center; margin-top: 8px; }
h2 { font-size: 15px; margin: 12px 2px 6px; }
.hint { font-size: 12px; color: var(--muted); margin: 0 2px 8px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 6px; min-height: 74px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; font: inherit; color: inherit; }
.tile:hover { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(255,153,0,.25); }
.tile .ic { font-size: 22px; } .tile .lb { font-size: 13px; font-weight: 600; text-align: center; }
.tile .sub { font-size: 10px; color: var(--muted); }
.tile.disabled { opacity: .45; cursor: not-allowed; }
.other-bank { display: flex; gap: 8px; margin-top: 8px; }
.other-bank select { flex: 1; padding: 10px; border-radius: 10px; border: 1px solid var(--line); font: inherit; background: #fff; }
.btn { background: #ffd814; border: 1px solid #fcd200; border-radius: 10px; padding: 10px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.btn:disabled { opacity: .5; } .btn.ghost { background: #fff; border-color: var(--line); }
.banner { border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; font-size: 13px; }
.banner.error { background: #fdecea; color: var(--err); border: 1px solid #f5c2bc; }
.hidden { display: none !important; }
.waiting { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px; }
.spinner { width: 34px; height: 34px; border: 4px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.qr { width: 220px; height: 220px; }
.placed { text-align: center; }
.tick { width: 56px; height: 56px; margin: 6px auto; border-radius: 50%; background: var(--ok); color: #fff; font-size: 30px; display: grid; place-items: center; }
.placed pre, .debug pre { text-align: left; background: #f7f7f7; border-radius: 8px; padding: 8px; font-size: 11px; overflow: auto; max-height: 260px; white-space: pre-wrap; word-break: break-all; }
.debug { width: 420px; max-width: 100%; background: #fff; border-radius: 12px; padding: 10px 12px; font-size: 12px; }
.debug summary { font-weight: 700; cursor: pointer; } .debug label { display: block; margin: 6px 0; }
.debug h4 { margin: 10px 0 4px; } .kv { margin: 4px 0; word-break: break-all; }
@media (max-width: 880px) { .scrim { flex-direction: column; align-items: center; padding: 0; } .overlay { border-radius: 0; max-width: none; min-height: 100vh; } .debug { width: 100%; border-radius: 0; } }
.live-banner { background: #b12704; color: #fff; font-weight: 700; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; text-align: center; }
.test-badge.live { background: #b12704; color: #fff; }
.more-apps { margin-top: 8px; } .more-apps summary { cursor: pointer; font-size: 13px; color: var(--muted); padding: 6px 2px; }
.more-apps .tiles { margin-top: 8px; }
.small a { color: #007185; }
.brand { color: inherit; text-decoration: none; }
