/* 開放平台：授權框和收銀台（public/open-ui.js） */
.op-shade { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, 0); transition: background .2s; }
.op-shade.on { background: rgba(0, 0, 0, .55); }
.op-sheet { width: 100%; max-width: 440px; max-height: 92vh; overflow-y: auto; background: var(--surface, #fff); color: var(--ink, #111); border-radius: 18px 18px 0 0; padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); transform: translateY(24px); opacity: 0; transition: transform .2s, opacity .2s; }
.op-shade.on .op-sheet { transform: none; opacity: 1; }
@media (min-width: 601px) { .op-shade { align-items: center; } .op-sheet { border-radius: 16px; } }
.op-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.op-head b { font-size: 17px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-ic { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: none; }
.op-ic-t { display: inline-flex; align-items: center; justify-content: center; background: var(--chip, #eee); font-weight: 700; font-size: 18px; }
.op-x { border: 0; background: none; color: var(--muted, #666); font-size: 18px; padding: 6px; cursor: pointer; }
.op-lead { margin: 6px 0; font-weight: 600; }
.op-list { margin: 0 0 12px; padding-left: 20px; line-height: 1.8; }
.op-title { margin: 4px 0 2px; color: var(--muted, #666); }
.op-amt { margin: 0 0 14px; font-size: 15px; }
.op-amt b { font-size: 32px; font-variant-numeric: tabular-nums; }
.op-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line, #e5e7eb); border-bottom: 1px solid var(--line, #e5e7eb); margin-bottom: 14px; font-size: 14px; }
.op-row b { text-align: right; }
.op-form { display: grid; gap: 10px; margin-bottom: 10px; }
.op-form .btn { width: 100%; }
.op-warn { color: var(--down, #dc2626); margin: 0 0 10px; }
.op-err { color: var(--down, #dc2626); margin: 6px 0; }
.op-acts { display: flex; gap: 10px; }
.op-acts .btn { flex: 1; }
.op-done { text-align: center; padding: 24px 0; }
.op-done span { display: inline-flex; width: 56px; height: 56px; border-radius: 50%; align-items: center; justify-content: center; background: var(--up, #16a34a); color: #fff; font-size: 28px; }
.op-done b { display: block; font-size: 20px; margin-top: 12px; }
.mp-ic-open img, .mp-ic-open .mp-ic-t { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; }
/* 我的資產：第三方小程序錢包；帳戶設定：已授權的小程序（public/open-member.js） */
.acct-asset-h .op-ic { width: 32px; height: 32px; margin-right: 8px; }
.op-wallet { display: grid; gap: 12px; }
.op-rows { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.op-rows li { display: grid; grid-template-columns: 1fr auto 72px; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line, #e5e7eb); }
.op-rows em { font-style: normal; color: var(--muted, #666); text-align: right; }
.op-rows b { font-variant-numeric: tabular-nums; }
.op-grants { list-style: none; margin: 0 0 10px; padding: 0; }
.op-grants li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line, #e5e7eb); }
.op-grants li > div { flex: 1; min-width: 0; display: grid; }
.op-page { max-width: 480px; padding-top: 32px; display: grid; gap: 16px; }
