:root { --bg: #f4f7f8; --card: #fff; --line: #dbe5e9; --text: #112a33; --muted: #5d737b; --accent: #0e6b80; --field: #eef3f5; --ok: #0a6b55; --bad: #ae381c; --code: #e9f0f2; color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b1f27; --card: #102c37; --line: #1f4250; --text: #e8f3f8; --muted: #94adb6; --accent: #4fb7c0; --field: #0d2630; --ok: #59c3a6; --bad: #eb9882; --code: #0d2630; color-scheme: dark; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; padding: 12px 20px; background: var(--card); border-bottom: 1px solid var(--line); }
.logo { font-weight: 700; }
.logo .muted { font-weight: 400; }
.right { display: flex; gap: 10px; align-items: center; position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 10; width: min(300px, calc(100vw - 32px)); padding: 8px; display: grid; gap: 6px; box-shadow: 0 14px 36px -14px rgba(0, 0, 0, 0.35); }
.menu[hidden] { display: none; }
.menu p { margin: 4px 6px 0; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; }
.menu img { width: 22px; height: 22px; border-radius: 6px; flex: none; }
a { color: var(--accent); }
main { max-width: 480px; margin: 0 auto; padding: 20px 16px 40px; display: grid; gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; min-width: 0; }
h2 { font-size: 15px; margin: 0 0 6px; }
button, select { font: inherit; color: inherit; border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 8px 12px; cursor: pointer; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
button:disabled { opacity: 0.55; cursor: default; }
button.wide { width: 100%; padding: 12px; margin-top: 12px; }
button.link { border: 0; padding: 0; background: none; color: var(--accent); }
button:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.field { background: var(--field); border-radius: 12px; padding: 12px 14px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.field input, .field output { flex: 1; min-width: 0; border: 0; background: none; font-size: 28px; font-weight: 600; color: inherit; padding: 4px 0; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.field input::placeholder { color: var(--muted); }
.token { font-weight: 600; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.flip { display: block; margin: -8px auto; position: relative; z-index: 1; width: 36px; height: 36px; padding: 0; border-radius: 10px; }
dl { margin: 12px 0 0; display: grid; gap: 4px; font-size: 13px; }
dl div { display: flex; justify-content: space-between; gap: 12px; }
dt { color: var(--muted); }
dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.status { min-height: 20px; margin: 10px 0 0; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.status.ok, .ok { color: var(--ok); }
.status.bad, .bad { color: var(--bad); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
code { background: var(--code); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; overflow-wrap: anywhere; }
pre { background: var(--code); border-radius: 8px; padding: 10px; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 260px; overflow: auto; }
.calls { margin: 6px 0; padding-left: 18px; }
.calls li { margin: 2px 0; overflow-wrap: anywhere; }
.plain { padding-left: 18px; margin: 6px 0; }
.plain li { margin: 6px 0; }
