:root{color-scheme:light dark}
body{margin:0;font-family:-apple-system,Segoe UI,Roboto,sans-serif;
  background:var(--tg-theme-bg-color,#fff);color:var(--tg-theme-text-color,#111);
  font-size:15px;padding:0 0 24px}
.tabs{display:flex;gap:6px;padding:10px 12px;position:sticky;top:0;
  background:var(--tg-theme-bg-color,#fff);border-bottom:1px solid #8883}
.tab{font-size:13px;padding:6px 12px;border-radius:20px;border:none;
  background:#8882;color:inherit}
.tab.active{background:var(--tg-theme-button-color,#3390ec);
  color:var(--tg-theme-button-text-color,#fff)}
.lead{margin:8px 12px;padding:12px;border-radius:12px;border:1px solid #8883}
.lead h3{margin:0 0 4px;font-size:15px;font-weight:600}
.lead .meta{font-size:12px;color:var(--tg-theme-hint-color,#888)}
.lead .snippet{margin:6px 0 0;font-size:13px;color:#888;line-height:1.4;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.post{background:#8881;border-radius:10px;padding:10px;font-size:13px;
  line-height:1.5;margin:10px 12px}
.variant{margin:8px 12px;padding:10px 12px;border:1px solid #8883;border-radius:10px}
.variant .lbl{font-size:11px;color:var(--tg-theme-hint-color,#888);margin-bottom:4px}
.variant p{margin:0;font-size:13px;line-height:1.5}
.variant textarea{width:100%;box-sizing:border-box;font-size:13px;
  min-height:80px;margin-top:6px}
button{font-size:13px;padding:9px 12px;border-radius:10px;border:1px solid #8884;
  background:transparent;color:inherit}
button.primary{background:var(--tg-theme-button-color,#3390ec);
  color:var(--tg-theme-button-text-color,#fff);border:none}
button.wide{width:100%}
.row{display:flex;gap:6px;margin:8px 12px}
.row button{flex:1}
.badge{font-size:11px;padding:1px 7px;border-radius:20px;background:#8882}
.empty{text-align:center;color:#888;padding:48px 24px}
.err{margin:12px;padding:10px;border-radius:10px;background:#e5484d22;color:#e5484d}
