/* Copen Real · 真实能力层样式（沿用原设计变量） */

/* 正式产品：去掉桌面端设计说明栏，只保留居中的 App */
.rail, .notes { display: none !important; }
.workspace { display: flex !important; justify-content: center; align-items: flex-start; }
.statusbar { visibility: hidden; height: 12px !important; }
@media (min-width: 741px) { body { background: #eef0f3; } .phone { margin-top: 12px; } }

.cr-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0; }
.cr-wrap { word-break: break-all; }
.cr-real-label { background: var(--primary-light, #E8F5F0) !important; color: var(--primary, #1F8A70) !important; }

/* 加载指示 */
.cr-spin { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; vertical-align: -2px; margin-right: 6px; animation: cr-spin .8s linear infinite; opacity: .7; }
@keyframes cr-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cr-spin { animation-duration: 2.4s; } }
.cr-busy { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 14px; margin: 12px 0; }

/* 钱包：密码、助记词 */
.cr-pw-block { text-align: left; width: 100%; }
.cr-pw-block .cw-field { margin: 12px 0 4px; }
.cr-seed { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0; margin: 16px 0; }
.cr-seed li { counter-increment: s; background: var(--surface, #f5f5f8); border: 1px solid var(--line, #ebebf1); border-radius: 10px; padding: 9px 8px; font-size: 14px; font-weight: 600; display: flex; gap: 6px; align-items: baseline; }
.cr-seed li::before { content: counter(s); font-size: 11px; color: var(--muted); font-weight: 500; min-width: 14px; }
.cr-import textarea { display: block; width: 100%; padding: 12px 14px; border: 1px solid var(--cp-input-border, #73858c); border-radius: 12px; font: 15px/1.6 ui-monospace, Menlo, monospace; background: var(--cw-soft, #f5f5f8); color: inherit; resize: vertical; }
.cr-lock-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--primary-light, #E8F5F0); font-size: 13px; margin: 12px 0; }

/* 收款 */
.cr-receive { text-align: center; }
.cr-qr { width: 200px; height: 200px; margin: 0 auto 12px; display: grid; place-items: center; background: #fff; border-radius: 16px; border: 1px solid var(--line, #ebebf1); padding: 6px; color: var(--muted); }
.cr-qr svg { width: 100%; height: 100%; }
.cr-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.cr-row2 > * { min-height: 44px; }
.cr-linkbtn { display: flex; align-items: center; justify-content: center; text-decoration: none; border-radius: 14px; font-size: 13px; }

/* 交易记录 */
.cr-st-success { color: var(--primary, #1F8A70) !important; }
.cr-st-failed { color: var(--red, #E45B5B) !important; }
.cr-err { display: block; color: var(--red, #E45B5B); margin-top: 4px; }

/* 首页走势 */
.cr-chart-empty { display: flex; align-items: center; justify-content: center; height: 120px; color: var(--muted); font-size: 13px; }

/* 合约账户切换 */
.cp-account .cr-acct-btn { margin-left: 8px; vertical-align: middle; }
.cr-acct-actions { display: inline-flex; gap: 6px; margin-left: 8px; vertical-align: middle; }
.cr-acct-btn { min-height: 28px !important; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line, #ebebf1) !important; font-size: 12px; background: var(--surface, #f5f5f8) !important; }
.cr-acct-go { background: var(--primary, #1F8A70) !important; color: #fff !important; border-color: transparent !important; }
.cr-live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #e0493f; margin-right: 6px; box-shadow: 0 0 0 3px rgba(224, 73, 63, .15); }
.cr-acct-real strong { color: var(--ink); }
.cr-perp-err { font-size: 12px; color: var(--red, #E45B5B); margin: 6px 0; }
.cp-note.cr-warn { background: #fff4e5; color: #8a5a00; border-color: #f3d7a7; }
.cp-note.cr-ok { background: var(--primary-light, #E8F5F0); color: var(--primary, #1F8A70); }

/* 弹窗内容 */
.cr-sheet p { line-height: 1.7; }
.cr-sheet .primary, .cr-sheet .secondary { width: 100%; margin-top: 10px; }
.cr-list { padding-left: 18px; line-height: 1.8; font-size: 14px; color: var(--muted); }
.cr-note { background: var(--surface, #f5f5f8); border-radius: 12px; padding: 12px; font-size: 13px; line-height: 1.7; }
.cr-h3 { font-size: 15px; margin: 20px 0 8px; }

/* AI */
.cr-key-ok { display: block; font-size: 10px; color: var(--primary, #1F8A70); font-weight: 600; margin-top: 2px; }
.cr-ai-out { margin-top: 16px; }
.cr-ai-text { font-size: 14px; line-height: 1.8; margin-top: 10px; white-space: normal; }
.cr-plan .row { gap: 10px; flex-wrap: wrap; }
.cr-plan-msg { color: var(--ink) !important; }
.cr-badge-btn { cursor: pointer; border: 0; }
.cr-model summary { cursor: pointer; }
.cr-model .cw-field { margin: 12px 0 4px; }

/* 深色外观 */
#phone[data-theme="dark"] .cr-seed li, #phone[data-theme="dark"] .cr-note { background: #1d1f26; border-color: #2a2d36; }
#phone[data-theme="dark"] .cr-qr { border-color: #2a2d36; }
#phone[data-theme="dark"] .cp-note.cr-warn { background: #3a2d12; color: #f3c46b; border-color: #5a4417; }
