:root{--bg:#f0f2f5;--surface:#fff;--surface2:#f7f8fa;--border:#dde1e8;--text:#1c1e21;--text-muted:#65676b;--accent:#1877f2;--accent-hover:#1565d8;--danger:#e53e3e;--radius:12px;--radius-sm:8px;--shadow:0 1px 3px #0000001a;--shadow-md:0 4px 16px #0000001a;--header-h:56px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#18191a;--surface:#242526;--surface2:#3a3b3c;--border:#3e4042;--text:#e4e6eb;--text-muted:#b0b3b8;--accent:#2d88ff;--accent-hover:#4ea3ff;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}:root[data-theme=dark]{--bg:#18191a;--surface:#242526;--surface2:#3a3b3c;--border:#3e4042;--text:#e4e6eb;--text-muted:#b0b3b8;--accent:#2d88ff;--accent-hover:#4ea3ff;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*,:before,:after{box-sizing:border-box;margin:0;padding:0}html{font-size:100%}body{background:var(--bg);color:var(--text);min-height:100dvh;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;line-height:1.5}img,video{max-width:100%;display:block}button{cursor:pointer;font:inherit;background:0 0;border:none}a{color:inherit;text-decoration:none}.app-header{top:0;top:env(safe-area-inset-top);height:var(--header-h);background:var(--surface);border-bottom:1px solid var(--border);z-index:100;box-shadow:var(--shadow);align-items:center;gap:12px;padding:0 16px;display:flex;position:sticky}.app-header .logo{color:var(--accent);opacity:1;font-size:1.25rem;font-weight:700;transition:opacity .15s}.app-header .logo:hover{opacity:.8}.app-header .logo:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}.header-spacer{flex:1}.page{max-width:640px;margin:0 auto;padding:16px 16px 80px}.btn{border-radius:var(--radius-sm);justify-content:center;align-items:center;gap:6px;padding:8px 18px;font-size:.9375rem;font-weight:600;transition:background .15s,opacity .15s;display:inline-flex}.btn-primary{background:var(--accent);color:#fff}.btn-primary:hover{background:var(--accent-hover)}.btn-ghost{color:var(--text)}.btn-ghost:hover{background:var(--surface2);border-radius:var(--radius-sm)}.btn-danger{background:var(--danger);color:#fff}.btn-sm{padding:5px 12px;font-size:.85rem}.btn-icon{border-radius:50%;padding:8px;line-height:1}.btn-icon:hover{background:var(--surface2)}.form-group{flex-direction:column;gap:6px;display:flex}.form-group label{color:var(--text-muted);font-size:.9rem;font-weight:600}.input{background:var(--surface2);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text);width:100%;min-height:44px;padding:10px 14px;font-size:1rem;transition:border-color .15s}.input:focus{border-color:var(--accent);outline:none}.input-pw-wrap{position:relative}.input-pw-wrap .input{padding-right:44px}.pw-toggle{color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-radius:4px;padding:6px;position:absolute;top:50%;right:8px;transform:translateY(-50%)}.pw-toggle:focus-visible{outline:2px solid var(--accent)}textarea.input{resize:vertical;min-height:100px}.card{background:var(--surface);border-radius:var(--radius);border:1px solid var(--border);box-shadow:var(--shadow);overflow:hidden}.post-card{margin-bottom:16px}.post-header{align-items:center;gap:10px;padding:12px 16px 0;display:flex}.post-meta{flex:1}.post-meta .name{font-size:.9375rem;font-weight:700}.post-meta .name:hover{text-decoration:underline}.post-meta time{color:var(--text-muted);font-size:.8rem}.post-content{white-space:pre-wrap;word-break:break-word;padding:10px 16px;font-size:.9375rem}.post-edited{color:var(--text-muted);font-size:.75rem}.post-images{gap:2px;display:grid}.post-images.one img{object-fit:cover;width:100%;max-height:500px}.post-images.two,.post-images.three,.post-images.four{grid-template-columns:1fr 1fr}.post-images img{object-fit:cover;cursor:pointer;width:100%;height:200px}.post-video video{width:100%;max-height:400px}.post-footer{padding:6px 16px 12px}.reaction-bar{flex-wrap:wrap;gap:4px;margin-bottom:8px;display:flex}.reaction-btn{background:var(--surface2);border:1px solid var(--border);border-radius:20px;align-items:center;gap:3px;padding:4px 10px;font-size:.85rem;transition:background .12s;display:inline-flex}.reaction-btn.active{background:color-mix(in srgb, var(--accent) 15%, transparent);border-color:var(--accent)}.reaction-btn:hover{background:var(--surface2);filter:brightness(.95)}.post-actions{gap:8px;display:flex}.avatar{background:var(--surface2);object-fit:cover;border-radius:50%;flex-shrink:0}.avatar-sm{width:32px;height:32px}.avatar-md{width:44px;height:44px}.avatar-lg{width:80px;height:80px}.avatar-placeholder{background:var(--accent);color:#fff;border-radius:50%;justify-content:center;align-items:center;font-weight:700;display:flex}.comment{gap:8px;margin-bottom:10px;display:flex}.comment-bubble{background:var(--surface2);border-radius:12px;flex:1;padding:8px 12px}.comment-author{font-size:.85rem;font-weight:700}.comment-text{white-space:pre-wrap;word-break:break-word;font-size:.9rem}.comment-replies{margin-top:6px;margin-left:40px}.message-bubble{word-break:break-word;border-radius:18px;max-width:75%;padding:8px 14px;font-size:.9375rem}.message-bubble.mine{background:var(--accent);color:#fff;margin-left:auto}.message-bubble.theirs{background:var(--surface2)}.badge{color:#fff;background:#e53e3e;border-radius:10px;justify-content:center;align-items:center;min-width:18px;padding:1px 6px;font-size:.7rem;font-weight:700;display:inline-flex}.divider{border:none;border-top:1px solid var(--border);margin:16px 0}.text-muted{color:var(--text-muted)}.text-sm{font-size:.85rem}.flex{display:flex}.items-center{align-items:center}.gap-2{gap:8px}.gap-3{gap:12px}.mt-2{margin-top:8px}.mt-3{margin-top:12px}.w-full{width:100%}.login-page{justify-content:center;align-items:center;min-height:100dvh;padding:16px;display:flex}.login-box{width:100%;max-width:400px;padding:32px 24px}.login-box h1{text-align:center;color:var(--accent);margin-bottom:8px;font-size:2rem}.login-box p{text-align:center;color:var(--text-muted);margin-bottom:24px}.search-bar{background:var(--surface2);border:1px solid var(--border);border-radius:20px;flex:1;align-items:center;gap:6px;max-width:280px;padding:6px 12px;display:flex}.search-bar input{color:var(--text);background:0 0;border:none;width:100%;font-size:.9rem}.search-bar input:focus{outline:none}.theme-toggle{font-size:1.2rem}
