:root { color-scheme: light dark; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--tg-theme-text-color, #172640); background: var(--tg-theme-secondary-bg-color, #f3f6fb); --surface: var(--tg-theme-bg-color, #fff); --muted: var(--tg-theme-hint-color, #69768a); --accent: var(--tg-theme-button-color, #2f6de6); --accent-text: var(--tg-theme-button-text-color, #fff); --line: color-mix(in srgb, var(--muted) 20%, transparent); }
* { box-sizing: border-box; } body { margin: 0; padding: env(safe-area-inset-top) 0 110px; } button, input { font: inherit; } button { cursor: pointer; touch-action: manipulation; } button:disabled { cursor: default; } button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; } [hidden] { display: none !important; }
.topbar { max-width: 720px; margin: auto; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; font-weight: 750; font-size: 22px; letter-spacing: -.7px; }.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; margin-right: 9px; color: #fff; background: #2f6de6; border-radius: 10px; font-style: italic; }.brand-dot { color: var(--accent); }.connection { color: var(--muted); font-size: 12px; }
main { max-width: 720px; margin: auto; padding: 10px 24px; }.intro { padding: 16px 0 24px; }.eyebrow { font-size: 10px; letter-spacing: 1.7px; font-weight: 700; color: var(--accent); } h1 { font-size: clamp(28px, 6vw, 36px); letter-spacing: -1.1px; margin: 10px 0; line-height: 1.16; }.intro > p:last-child { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; }.panel-heading { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; } h2 { font-size: 16px; margin: 0; }.refresh { border: 0; background: none; color: var(--accent); padding: 6px 0; font-size: 12px; min-height: 36px; }.refresh:disabled { color: var(--muted); }
.search { display: flex; gap: 10px; align-items: center; padding: 0 13px; background: color-mix(in srgb, var(--muted) 8%, var(--surface)); border: 1px solid var(--line); border-radius: 11px; }.search > span { color: var(--muted); font-size: 25px; }.search input { width: 100%; min-width: 0; height: 45px; border: none; background: transparent; color: inherit; font-size: 14px; }.search input::placeholder { color: var(--muted); }
.notice { font-size: 12px; line-height: 1.55; padding: 12px; background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border-radius: 10px; margin: 14px 0 4px; } .group { display: flex; align-items: center; gap: 11px; padding: 18px 0; border-bottom: 1px solid var(--line); }.group:last-child { border-bottom: 0; padding-bottom: 4px; }.avatar { flex-shrink: 0; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 11%, var(--surface)); color: var(--accent); font-weight: 700; font-size: 17px; }.group:nth-child(3n + 2) .avatar { color: #258b78; background: color-mix(in srgb, #258b78 12%, var(--surface)); }.group:nth-child(3n + 3) .avatar { color: #ab7432; background: color-mix(in srgb, #ab7432 12%, var(--surface)); }.group-info { flex: 1; min-width: 0; }.group h3 { margin: 0 0 5px; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }.group p { font-size: 11px; color: var(--muted); margin: 0; line-height: 1.35; }
.connect { flex-shrink: 0; min-height: 40px; min-width: 60px; border: 1px solid var(--line); color: var(--accent); background: var(--surface); border-radius: 10px; font-size: 12px; font-weight: 600; padding: 7px 10px; }.connect:disabled { color: var(--muted); opacity: .7; }.connect.joined { border-color: transparent; color: #258b78; opacity: 1; padding-right: 0; }.hint { color: var(--muted); line-height: 1.6; font-size: 12px; padding: 3px 8px; text-align: center; }.more { display: block; width: 100%; border: 1px solid var(--line); background: transparent; color: var(--accent); border-radius: 10px; padding: 12px; margin-top: 16px; font-size: 13px; }
.footer { position: fixed; bottom: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px max(24px, calc((100vw - 672px) / 2)) calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }.footer > span { font-size: 12px; color: var(--muted); }.primary { border: 0; background: var(--accent); color: var(--accent-text); border-radius: 11px; padding: 14px 18px; font-size: 13px; font-weight: 600; min-height: 44px; }.empty { text-align: center; padding: 60px 12px; }.empty h1 { font-size: 27px; }.empty p { font-size: 14px; line-height: 1.7; color: var(--muted); max-width: 360px; margin: 15px auto 25px; }.empty-icon { display: grid; place-items: center; margin: 0 auto 24px; width: 64px; height: 64px; border-radius: 20px; background: var(--surface); color: var(--accent); font-size: 30px; }.list-empty { text-align: center; padding: 40px 10px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.loader { display: inline-block; width: 22px; height: 22px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .9s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } .toast { position: fixed; bottom: calc(94px + env(safe-area-inset-bottom)); left: 20px; right: 20px; max-width: 620px; margin: auto; padding: 14px 12px 14px 18px; background: #172640; color: #fff; border-radius: 14px; box-shadow: 0 5px 24px #0002; font-size: 13px; line-height: 1.5; display: flex; align-items: center; gap: 12px; z-index: 5; }.toast span { flex: 1; }.toast button { border: 0; background: transparent; color: inherit; font-size: 23px; min-width: 36px; min-height: 36px; }
@media (max-width: 380px) { main { padding-inline: 16px; }.topbar { padding-inline: 16px; }.panel { padding: 14px; }.group { gap: 8px; }.avatar { width: 34px; height: 34px; font-size: 15px; }.connect { padding-inline: 7px; min-width: 50px; }.footer { padding-inline: 16px; } }
@media (prefers-reduced-motion: reduce) { .loader { animation: none; } }
