* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font: 16px/1.5 system-ui, sans-serif; }
.miniapp { display: grid; min-height: 100dvh; place-items: center; text-align: center; padding: 24px; background: var(--tg-theme-bg-color, #fff); color: var(--tg-theme-text-color, #192732); }
.button, button { border: 0; border-radius: 8px; background: #225dc1; color: #fff; padding: 10px 14px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.miniapp .button { display: inline-block; background: var(--tg-theme-button-color, #225dc1); color: var(--tg-theme-button-text-color, #fff); }
button:disabled { opacity: .55; cursor: default; }
button.secondary { color: #17395f; background: #e9f0fa; }
:focus-visible { outline: 3px solid #3181e1; outline-offset: 3px; }
.demo { background: #f2f5fa; color: #182a3a; }
.demo main { max-width: 980px; margin: auto; padding: 36px 20px 48px; }
.demo h1 { margin: 4px 0; font-size: clamp(25px, 5vw, 36px); line-height: 1.15; }
.demo h2 { margin: 0 0 14px; font-size: 20px; }
.demo header { margin-bottom: 24px; }
.demo header p { margin: 10px 0 0; color: #42566a; }
.tag { display: inline-block; color: #1e4b80; background: #dfeaff; padding: 3px 10px; border-radius: 20px; font-size: 13px; font-weight: 700; }
.panel { background: white; border: 1px solid #d8e1ed; padding: 18px; border-radius: 12px; margin: 12px 0; min-width: 0; }
.columns { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.demo label { display: block; font-weight: 600; margin-bottom: 6px; }
select, textarea { width: 100%; border: 1px solid #afbfce; border-radius: 8px; padding: 10px; color: inherit; background: white; font: inherit; margin-bottom: 12px; }
textarea { resize: vertical; min-height: 6em; }
dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; }
dt { color: #4d6071; }
dd { margin: 0; overflow-wrap: anywhere; }
.muted { color: #4d6071; }
#notice { min-height: 1.5em; }
@media (max-width: 690px) { .columns { grid-template-columns: 1fr; gap: 0; } }
