:root { --bg: var(--tg-theme-bg-color, #fff); --fg: var(--tg-theme-text-color, #000);
        --btn: var(--tg-theme-button-color, #3390ec); --btn-fg: var(--tg-theme-button-text-color, #fff); }
* { box-sizing: border-box; }
body { margin: 0; padding: 12px; font-family: system-ui, sans-serif; background: var(--bg); color: var(--fg); }
header { display: flex; justify-content: space-between; align-items: center; }
h1 { font-size: 18px; margin: 0; }
h2 { font-size: 15px; margin: 0 0 8px; }
.card { border: 1px solid #8884; border-radius: 10px; padding: 10px; margin: 10px 0; }
button { width: 100%; padding: 10px; margin-top: 6px; border: 0; border-radius: 8px;
         background: var(--btn); color: var(--btn-fg); font-size: 15px; cursor: pointer; }
button.ok { background: #2e9e44; }
button.danger { background: #d33; }
textarea { width: 100%; font-family: monospace; }
.row { display: flex; gap: 8px; }
.row button { margin-top: 0; }
.link { flex: 1; text-align: center; padding: 10px; border-radius: 8px; background: var(--btn); color: var(--btn-fg); text-decoration: none; }
.badge { padding: 4px 8px; border-radius: 6px; background: #8884; font-size: 12px; }
pre { white-space: pre-wrap; font-size: 12px; background: #8881; padding: 8px; border-radius: 8px; max-height: 200px; overflow: auto; }
