.wallet-page .wrap{max-width:1180px}
.wallet-note{font-size:.84rem;color:var(--muted);line-height:1.6}
.wallet-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--paper)}
.wallet-editor,.wallet-output{padding:28px;min-width:0}
.wallet-output{border-left:1px solid var(--line);background:var(--surface)}
.wallet-grid h2{font-size:1.1rem;letter-spacing:-.015em;margin:0 0 20px}
.wallet-editor label{display:block;font-size:.87rem;font-weight:650;margin:18px 0 8px}
.wallet-editor textarea{width:100%;min-height:310px;resize:vertical;padding:16px;border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:9px;box-sizing:border-box;font:13px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;tab-size:2}
.wallet-editor input[type=file]{max-width:100%;font-size:.85rem}
.wallet-editor select{width:100%;padding:11px 9px;margin-top:8px;border:1px solid var(--line);border-radius:7px;background:white;color:var(--ink)}
.wallet-targets{display:grid;grid-template-columns:1fr 1fr;gap:15px}
.wallet-page button{font:inherit;font-size:.85rem;padding:10px 14px;background:var(--paper);border:1px solid var(--line);border-radius:7px;color:var(--ink);cursor:pointer}
.wallet-page button:hover{background:var(--surface)}
.wallet-page button.primary{background:var(--accent);border-color:var(--line);color:#fff}
.wallet-page button:disabled{opacity:.48;cursor:default}
.wallet-page button:focus-visible,.wallet-page textarea:focus-visible,.wallet-page select:focus-visible{outline:3px solid #9cbecc;outline-offset:3px}
.wallet-examples,.wallet-actions{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}
.wallet-examples button{font-size:.78rem}
.wallet-page .hint,.wallet-page .muted{color:var(--muted);font-size:.83rem;line-height:1.6}
.input-meta{display:flex;justify-content:space-between;gap:10px;align-items:center}
.input-meta label{margin-bottom:8px}
#input-size{font-size:.75rem;color:var(--muted)}
.over-limit{color:#9f362d!important}
.wallet-page #status{min-height:2.8em;line-height:1.6;font-size:.88rem;color:var(--ink)}
.wallet-placeholder{border:1px dashed var(--line);padding:20px;border-radius:9px;line-height:1.7;color:var(--muted)}
.wallet-output:has(#results:not([hidden])) .wallet-placeholder{display:none}
.wallet-page [hidden]{display:none!important}
.wallet-summary{display:flex;gap:7px;flex-wrap:wrap;margin:16px 0}
.count,.severity{font:600 .7rem/1.4 ui-monospace,SFMono-Regular,monospace;border-radius:4px;padding:5px 7px}
.count.error,.finding.error .severity{background:#f8e0db;color:#8b2c24}
.count.warning,.finding.warning .severity{background:#f1e6bc;color:#695000}
.count.unverified,.finding.unverified .severity{background:#e1e7ec;color:#3f5063}
.finding{background:var(--paper);border:1px solid var(--line);border-radius:8px;padding:14px;margin:12px 0}
.finding-heading{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:.72rem}
.finding p{font-size:.84rem;line-height:1.6;margin:9px 0}
.field-path{display:block;font-size:.73rem;overflow-wrap:anywhere;color:var(--muted);margin-top:8px}
.finding-sources{display:flex;gap:15px;font-size:.75rem}
.wallet-output h3{font-size:1rem;line-height:1.5}
.wallet-output #result-title{font-size:1.05rem;margin:14px 0 6px}
.wallet-output #result-scope{font-size:.84rem;line-height:1.6}
.wallet-diff{padding:32px 0;border-bottom:1px solid var(--line)}
.wallet-diff h2{font-size:1.45rem}
.diff-scroll{overflow:auto;border:1px solid var(--line);border-radius:9px;background:var(--paper)}
.wallet-diff table{width:100%;border-collapse:collapse;table-layout:fixed;min-width:670px;text-align:left;font-size:.8rem}
.wallet-diff th,.wallet-diff td{padding:15px;border-bottom:1px solid var(--line);vertical-align:top;overflow-wrap:anywhere}
.wallet-diff thead th{background:var(--surface)}
.wallet-diff th:first-child{width:20%}
.wallet-diff small{display:block;color:var(--muted);font-weight:400;margin-top:8px}
.wallet-diff pre{white-space:pre-wrap;font:12px/1.6 ui-monospace,SFMono-Regular,monospace;overflow-wrap:anywhere;margin-top:10px}
.diff-changed{background:#fff8de}
.wallet-related{display:flex;gap:18px;flex-wrap:wrap}
.quiet-result{font-size:.87rem;line-height:1.7}
#unchecked{padding-left:20px;font-size:.8rem;line-height:1.7}
.wallet-editor .scope-warning{padding:12px 15px;border-left:3px solid #c4ae62;background:#f5efd8;font-size:.81rem;line-height:1.6}
@media(max-width:800px){.wallet-grid{grid-template-columns:1fr}
.wallet-output{border-left:0;border-top:1px solid var(--line)}
.wallet-editor,.wallet-output{padding:20px}
.wallet-targets{grid-template-columns:1fr}
.input-meta{align-items:flex-end}
.wallet-editor textarea{min-height:270px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.finding-sources a,.wallet-related a{color:var(--muted);text-decoration:underline;text-underline-offset:3px}
.wallet-page .finding.error{color:#192d45}
