/* Sayabee touch template - cats (forum list grouped by category). Scoped to #page-cats. */
#page-cats{--brand:#FB4E23;--accent:#a43712;--ink:#111827;--muted:#64574e;--line:#e8cbb7;--surface:#FFF5E6;--page:#fffcf8;--soft:#FAD4C0;--radius:20px;--font:"Inter",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
max-width:414px!important;margin:0 auto!important;background:var(--page)!important;color:var(--ink);font-family:var(--font)!important;font-size:14px;line-height:1.5;
padding:60px 0 calc(80px + env(safe-area-inset-bottom))!important}
#page-cats a,#page-cats button,#page-cats input{font-family:inherit}
#page-cats a:focus-visible,#page-cats button:focus-visible,#page-cats input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#page-cats .shared-brand-banner{padding-bottom:2.4px}
#page-cats #cats-view{background:var(--page);padding:4.8px 6.4px 16px}
#page-cats #hb-tabs-card{background:#fff;border:1px solid var(--line);border-radius:20px;margin:3.6px 2px 20px;padding:4px 16px 8px}
#page-cats .hb-tabs{display:flex;align-items:center;gap:16px;padding:4px 16px;min-height:44px;border-block:1px solid #ededed;font-size:13px}
#page-cats .hb-tabs button{position:relative;flex:1;min-width:0;border:0;background:none;padding:14px 0;font-size:15px;color:var(--muted);cursor:pointer}
#page-cats .hb-tabs button.active{color:var(--accent);font-weight:600}
#page-cats .hb-tabs button.active::after{content:"";position:absolute;bottom:4px;left:50%;transform:translateX(-50%);width:24px;height:3px;border-radius:3px;background:var(--accent)}
#page-cats .hb-tab-list{list-style:none;margin:0;padding:0}
#page-cats .hb-tab-list[hidden],#page-cats .bd-grid[hidden]{display:none}
#page-cats .hb-tab-list li{display:flex;align-items:center;gap:8px;min-height:40px;border-bottom:1px solid #f1e6dc}
#page-cats .hb-tab-list li:last-child{border-bottom:0}
#page-cats .hb-tab-list li::before{content:"";width:6px;height:6px;border-radius:50%;background:#b8b0a8;flex:none}
#page-cats .hb-tab-list a{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink);font-size:14px;text-decoration:none}
#page-cats .hb-tab-list time{color:var(--muted);font-size:12px;flex:none;font-variant-numeric:tabular-nums}
#page-cats .hb-tab-list li.hb-none{color:var(--muted);font-size:13px}
#page-cats .hb-tab-list li.hb-none::before{display:none}
#page-cats .bd-group{margin:0 0 24px}
#page-cats .bd-ghead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
#page-cats .bd-ghead h2{margin:0;font-size:18px;font-weight:700;color:var(--ink);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#page-cats .bd-ghead button{position:relative;flex:none;width:36px;height:20px;padding:0;border:0;border-radius:20px;background:#d9d9de;cursor:pointer;transition:background .2s ease;-webkit-tap-highlight-color:transparent}
#page-cats .bd-ghead button::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:left .2s ease}
#page-cats .bd-ghead button[aria-checked="true"]{background:#FB4E23}
#page-cats .bd-ghead button[aria-checked="true"]::after{left:18px}
#page-cats .bd-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#page-cats .bd-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:10px;display:flex;gap:10px;align-items:center;min-width:0;text-decoration:none}
#page-cats .bd-thumb{display:flex;align-items:center;justify-content:center;width:72px;height:72px;flex:none;border-radius:12px;color:#fff;overflow:hidden;padding:0}
#page-cats .bd-thumb img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
#page-cats .bd-copy{flex:1;min-width:0}
#page-cats .bd-name{display:block;font-size:14px;font-weight:600;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#page-cats .bd-count{display:block;white-space:nowrap;font-size:12px;color:var(--muted);margin-top:4px}
#page-cats .bd-empty{padding:32px 12px;text-align:center;color:var(--muted)}
