*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{--green:#10b981;--green-dark:#059669;--bg:#f8faf9;--card:#fff;--text:#1f2937;--text-light:#6b7280;--radius:12px;--shadow:0 1px 3px rgba(0,0,0,.08)}
body{font-family:system-ui,-apple-system,sans-serif;background:var(--bg);color:var(--text);line-height:1.6;min-height:100vh;display:flex;flex-direction:column}

.ad-container{max-width:728px;margin:0 auto;padding:4px}

.header{background:linear-gradient(135deg,var(--green),var(--green-dark));color:#fff;padding:16px 20px}
.header-inner{max-width:800px;margin:0 auto;display:flex;align-items:center;gap:12px}
.logo{font-size:2rem}
.header-title{font-size:1.4rem;font-weight:700;letter-spacing:-.02em}
.header-subtitle{font-size:.8rem;opacity:.9}

.filter-bar{position:sticky;top:0;z-index:100;background:#fff;border-bottom:1px solid #e5e7eb;padding:12px 20px;box-shadow:0 2px 8px rgba(0,0,0,.06)}
.filter-inner{max-width:800px;margin:0 auto}
.filter-row{display:flex;gap:8px;margin-bottom:8px}
.filter-select{flex:1;padding:10px 12px;border:1px solid #d1d5db;border-radius:8px;font-size:.95rem;background:#fff;color:var(--text);appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}
.filter-select:focus{outline:none;border-color:var(--green);box-shadow:0 0 0 3px rgba(16,185,129,.15)}

.toggle-label{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:.9rem;color:var(--text-light)}
.toggle-label input{display:none}
.toggle-slider{width:40px;height:22px;background:#d1d5db;border-radius:11px;position:relative;transition:.2s}
.toggle-slider::after{content:'';position:absolute;top:2px;left:2px;width:18px;height:18px;background:#fff;border-radius:50%;transition:.2s}
.toggle-label input:checked+.toggle-slider{background:var(--green)}
.toggle-label input:checked+.toggle-slider::after{left:20px}

.main{flex:1;max-width:800px;width:100%;margin:0 auto;padding:16px 20px}
.result-count{font-size:.85rem;color:var(--text-light);margin-bottom:12px}

.loading{text-align:center;padding:40px 0;color:var(--text-light)}
.spinner{width:32px;height:32px;border:3px solid #e5e7eb;border-top-color:var(--green);border-radius:50%;animation:spin .6s linear infinite;margin:0 auto 8px}
@keyframes spin{to{transform:rotate(360deg)}}

.empty{text-align:center;padding:60px 20px;color:var(--text-light);font-size:1.1rem}

.results{display:flex;flex-direction:column;gap:12px}

.card{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px;border:1px solid #f0f0f0}
.card-header{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;margin-bottom:8px}
.card-name{font-size:1.05rem;font-weight:600}
.card-tags{display:flex;gap:4px;flex-shrink:0}
.card-tag{font-size:.7rem;padding:2px 8px;border-radius:99px;background:#f3f4f6;color:var(--text-light);white-space:nowrap}
.card-tag.public{background:#dbeafe;color:#1d4ed8}
.card-tag.private{background:#fce7f3;color:#be185d}
.card-capacity{font-size:.8rem;color:var(--text-light);margin-bottom:10px}

.badges{display:flex;flex-wrap:wrap;gap:6px}
.badge{display:flex;flex-direction:column;align-items:center;border-radius:8px;padding:4px 8px;min-width:48px;font-size:.75rem}
.badge-age{font-weight:600;margin-bottom:1px}
.badge-status{font-size:.85rem;font-weight:700}
.badge-count{font-size:.65rem;opacity:.8;margin-top:1px}
.badge-open-many{background:#d1fae5;color:#065f46}
.badge-open{background:#dbeafe;color:#1e40af}
.badge-few{background:#fef3c7;color:#92400e}
.badge-none{background:#f3f4f6;color:#9ca3af}

.footer{text-align:center;padding:24px 20px;font-size:.8rem;color:var(--text-light);border-top:1px solid #e5e7eb;margin-top:20px}
.footer p{margin-bottom:4px}
.footer-copy{opacity:.6}

@media(max-width:480px){
  .header{padding:12px 16px}
  .header-title{font-size:1.2rem}
  .filter-bar{padding:10px 16px}
  .main{padding:12px 16px}
  .filter-row{flex-direction:column}
  .badge{min-width:42px;padding:3px 6px}
}
