.wallet-editor{display:grid;grid-template-columns:minmax(350px,430px) minmax(0,1fr);align-items:start;gap:24px}
.wallet-preview-panel{position:sticky;top:24px;padding:24px}
.wallet-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:22px}
.wallet-section-heading h2{margin:0;font-size:18px}
.wallet-section-heading p{margin:7px 0 0;color:var(--muted);font-size:13px;line-height:1.7}
.wallet-example{padding:4px 9px;border-radius:6px;background:var(--brand-050);color:var(--brand-700);font-size:12px;white-space:nowrap}
.wallet-preview-tabs{display:flex;gap:4px;width:max-content;margin:0 auto 20px;padding:4px;border-radius:9px;background:var(--canvas)}
.wallet-preview-tabs button{min-height:34px;padding:0 22px;border:0;border-radius:6px;background:transparent;color:var(--muted);font-size:13px;cursor:pointer}
.wallet-preview-tabs button.is-selected{background:#fff;box-shadow:var(--shadow-sm);color:var(--brand-700);font-weight:600}
.wallet-phone{position:relative;width:100%;max-width:326px;margin:auto;padding:8px 7px 20px;border:1px solid #dce2df;border-radius:32px;background:#fff;box-shadow:0 8px 24px #123f3710}
.wallet-phone-status{display:flex;justify-content:space-between;align-items:center;padding:12px 18px 8px;font-size:12px;color:#222}
.wallet-phone-nav{display:flex;justify-content:space-between;align-items:center;padding:10px 16px 16px;color:#222;font-size:14px}
.wallet-phone-nav>span:first-child{font-size:26px;line-height:1}
.wallet-phone-body{height:510px;overflow:auto;padding:14px 12px 20px;background:#f5f5f5;border-radius:0 0 22px 22px}
.wallet-native-card{position:relative;isolation:isolate;aspect-ratio:5/3;overflow:hidden;padding:17px;border-radius:10px;background:#2c9f67;color:#fff}
.wallet-native-background{position:absolute;inset:0;z-index:-1;width:100%;height:100%;object-fit:cover}
.wallet-native-brand{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:500}
.wallet-native-brand img{width:28px;height:28px;object-fit:cover;border-radius:50%}
.wallet-native-card h3{margin:13px 0 0;color:inherit;font-size:21px;font-weight:500;overflow-wrap:anywhere;line-height:1.35}
.wallet-native-number{position:absolute;bottom:16px;left:17px;font-size:17px;letter-spacing:1px}
.wallet-native-number span{margin-left:10px;opacity:.8;font-size:10px;letter-spacing:0}
.wallet-native-notice{display:flex;align-items:flex-start;gap:6px;padding:14px 3px;color:#727c77;font-size:11px;line-height:1.5}
.wallet-native-notice .icon{width:14px;height:14px;margin-top:1px}
.wallet-native-center{display:grid;justify-items:center;gap:7px;padding:2px 0 18px;text-align:center}
.wallet-native-center strong{display:grid;place-items:center;min-width:164px;min-height:38px;padding:0 18px;border:1px solid #2c9f67;border-radius:5px;color:#238653;font-size:14px;font-weight:500}
.wallet-native-center small{color:#8c948f;font-size:10px;line-height:1.5}
.wallet-native-row{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:49px;padding:12px;border-bottom:1px solid #edf0ee;background:#fff;font-size:12px}
.wallet-native-row strong{font-weight:500;color:#283a33}
.wallet-native-row span{color:#88958e;font-size:11px}
.wallet-native-excerpt{max-height:66px;overflow:auto;padding:10px 12px;background:#fff;color:#687870;font-size:11px;line-height:1.7;white-space:pre-line;overflow-wrap:anywhere}
.wallet-native-detail{padding:16px 14px;border-radius:8px;background:#fff}
.wallet-native-detail h3{margin:0 0 12px;font-size:14px}
.wallet-native-detail p{margin:0 0 24px;color:#64736d;font-size:12px;line-height:1.9;white-space:pre-line;overflow-wrap:anywhere}
.wallet-home-indicator{position:absolute;bottom:9px;left:50%;width:100px;height:4px;transform:translateX(-50%);border-radius:4px;background:#27352f}
.wallet-preview-note{max-width:326px;margin:18px auto 0;color:var(--muted);font-size:12px;line-height:1.8}
.wallet-edit-form{display:grid;gap:18px;min-width:0}
.wallet-config-section{padding:26px 28px}
.wallet-config-section .field:last-child{margin-bottom:0}
.wallet-background-editor{display:flex;align-items:center;gap:20px;margin-bottom:20px}
.wallet-background-thumb{display:grid;place-items:center;flex:none;width:140px;aspect-ratio:5/3;overflow:hidden;border-radius:8px;background:#2c9f67;color:#fff;font-size:12px}
.wallet-background-thumb img{width:100%;height:100%;object-fit:cover}
.wallet-background-editor strong{font-size:14px}
.wallet-background-editor p{margin:6px 0 10px;color:var(--muted);font-size:12px;line-height:1.7}
.wallet-upload-actions{display:flex;flex-wrap:wrap;gap:6px}
.wallet-upload-actions .btn{min-height:34px;padding:0 12px;font-size:12px}
.wallet-upload-label{position:relative;overflow:hidden;cursor:pointer}
.wallet-upload-label input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}
.wallet-upload-label:focus-within{box-shadow:var(--focus)}
.wallet-card-id{display:block;padding:12px 14px;border:1px solid var(--divider);border-radius:8px;background:var(--canvas);color:var(--muted);font-family:monospace;font-size:13px;overflow-wrap:anywhere}
.wallet-config-section textarea{min-height:104px;resize:vertical}
.wallet-connection{padding:0}
.wallet-connection summary{display:flex;align-items:center;gap:12px;padding:22px 28px;cursor:pointer;list-style:none}
.wallet-connection summary::-webkit-details-marker{display:none}
.wallet-connection summary>span{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:600}
.wallet-connection summary>small{margin-left:auto;color:var(--muted);font-size:12px}
.wallet-connection summary>.icon{width:16px;height:16px;transform:rotate(90deg)}
.wallet-connection[open] summary>.icon{transform:rotate(-90deg)}
.wallet-connection-body{padding:0 28px 24px}
.wallet-connection-note{margin:0 0 18px;color:var(--muted);font-size:12px;line-height:1.8}
.wallet-connection-note:last-child{margin-bottom:0}
.wallet-save-panel{padding:22px 28px}
.wallet-config-status{display:flex;align-items:flex-start;gap:10px;line-height:1.5}
.wallet-status-dot{flex:none;width:8px;height:8px;margin-top:6px;border-radius:50%;background:var(--success)}
.wallet-status-dot.is-pending{background:var(--warning)}
.wallet-config-status strong{display:block;font-size:14px;font-weight:600}
.wallet-config-status small{display:block;margin-top:4px;color:var(--muted);font-size:12px}
.wallet-save-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-top:20px;padding-top:18px;border-top:1px solid var(--divider)}
.wallet-save-actions .btn[hidden]{display:none}
.wallet-save-panel>p{margin:14px 0 0;color:var(--muted);font-size:12px;line-height:1.8}
#wallet-settings-message:not(:empty){margin-top:18px}
.wallet-edit-form [aria-invalid=true]{border-color:var(--error)}
@media(min-width:1600px){.wallet-editor{grid-template-columns:430px minmax(0,1fr)}.wallet-config-section{padding:28px 36px}.wallet-connection-body{padding-inline:36px}}
@media(max-width:1199px){.wallet-editor{grid-template-columns:340px minmax(0,1fr);gap:18px}.wallet-preview-panel{padding:20px 16px}.wallet-config-section,.wallet-save-panel{padding:22px 20px}.wallet-background-editor{align-items:flex-start;gap:14px}.wallet-background-thumb{width:110px}.wallet-connection summary{padding:20px}.wallet-connection summary>small{display:none}.wallet-connection-body{padding:0 20px 20px}}
@media(max-width:999px){.wallet-editor{grid-template-columns:1fr}.wallet-preview-panel{position:static}.wallet-preview-note{max-width:560px}.wallet-phone-body{height:440px}.wallet-background-thumb{width:140px}}
@media(max-width:479px){.wallet-background-editor{flex-direction:column}.wallet-save-actions{display:grid;grid-template-columns:1fr 1fr}.wallet-save-actions #wallet-save{grid-column:1/-1}.wallet-save-actions .btn{padding:0 10px;font-size:13px}}
