@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap";:root{--primary: #4f46e5;--primary-hover: #4338ca;--primary-light: #eef2ff;--bg: #f8fafc;--surface: #ffffff;--text: #1e293b;--text-muted: #64748b;--border: #e2e8f0;--danger: #ef4444;--danger-hover: #dc2626;--success: #10b981;--radius: 12px;--radius-sm: 8px;--shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);--shadow-md: 0 4px 6px rgba(0,0,0,.05), 0 2px 4px rgba(0,0,0,.04);--shadow-lg: 0 10px 15px rgba(0,0,0,.07), 0 4px 6px rgba(0,0,0,.05);--transition: .2s ease}[data-theme=dark]{--primary: #6366f1;--primary-hover: #818cf8;--primary-light: #1e1b4b;--bg: #0f172a;--surface: #1e293b;--text: #f1f5f9;--text-muted: #94a3b8;--border: #334155;--danger: #f87171;--danger-hover: #fca5a5;--success: #34d399;--shadow: 0 1px 3px rgba(0,0,0,.3), 0 1px 2px rgba(0,0,0,.2);--shadow-md: 0 4px 6px rgba(0,0,0,.3), 0 2px 4px rgba(0,0,0,.2);--shadow-lg: 0 10px 15px rgba(0,0,0,.4), 0 4px 6px rgba(0,0,0,.3)}*{margin:0;padding:0;box-sizing:border-box}body{font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif;background:var(--bg);color:var(--text);line-height:1.6;min-height:100vh}.nav{display:flex;align-items:center;gap:1rem;padding:.85rem 1.5rem;background:var(--surface);border-bottom:1px solid var(--border);box-shadow:var(--shadow);position:sticky;top:0;z-index:100}.nav-logo{font-weight:700;font-size:1.15rem;color:var(--primary);letter-spacing:-.02em}.nav-actions{margin-left:auto;display:flex;align-items:center;gap:.75rem}.nav-link{text-decoration:none;color:var(--text-muted);font-weight:500;font-size:.9rem;padding:.4rem .85rem;border-radius:var(--radius-sm);transition:var(--transition)}.nav-link:hover{color:var(--primary);background:var(--primary-light)}.theme-toggle{background:var(--bg);border:1.5px solid var(--border);border-radius:var(--radius-sm);padding:.35rem .5rem;font-size:1rem;cursor:pointer;transition:var(--transition);line-height:1}.theme-toggle:hover{border-color:var(--primary);background:var(--primary-light)}.main{max-width:680px;margin:0 auto;padding:2.5rem 1.5rem}.wide{max-width:780px}.auth-card{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow-md);padding:2.5rem;margin:1.5rem auto 0;max-width:420px}.auth-card h2{font-size:1.5rem;font-weight:700;margin-bottom:.25rem}.auth-card .subtitle{color:var(--text-muted);font-size:.9rem;margin-bottom:1.5rem}.field{display:flex;flex-direction:column;gap:.35rem;margin-bottom:1rem}.field label{font-size:.85rem;font-weight:600;color:var(--text)}.field input,.field textarea{padding:.65rem .85rem;border:1.5px solid var(--border);border-radius:var(--radius-sm);font-size:.95rem;font-family:inherit;transition:var(--transition);background:var(--bg);color:var(--text)}.field input:focus,.field textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-light);background:var(--surface)}.field textarea{resize:vertical;min-height:100px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;padding:.6rem 1.25rem;border:none;border-radius:var(--radius-sm);font-size:.9rem;font-weight:600;font-family:inherit;cursor:pointer;transition:var(--transition);text-decoration:none}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover{background:var(--primary-hover);box-shadow:var(--shadow)}.btn-danger{background:transparent;color:var(--danger);border:1.5px solid var(--border)}.btn-danger:hover{background:#ef44441a;border-color:var(--danger);color:var(--danger-hover)}.btn-sm{padding:.4rem .85rem;font-size:.82rem}.page-header{margin-bottom:1.75rem}.page-header h2{font-size:1.6rem;font-weight:700}.page-header p{color:var(--text-muted);font-size:.95rem;margin-top:.2rem}.post-form{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.5rem;margin-bottom:1.75rem;box-shadow:var(--shadow)}.post-form h3{font-size:1.05rem;font-weight:600;margin-bottom:1rem}.section-title{font-size:1.05rem;font-weight:600;margin-bottom:.75rem}.post-list{display:flex;flex-direction:column;gap:.75rem}.post-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.25rem 1.4rem;box-shadow:var(--shadow);transition:var(--transition)}.post-card:hover{box-shadow:var(--shadow-md)}.post-card h4{font-size:1rem;font-weight:600;margin-bottom:.35rem}.post-card p{color:var(--text-muted);font-size:.92rem;line-height:1.55;white-space:pre-wrap}.post-card .meta{display:flex;align-items:center;justify-content:space-between;margin-top:.75rem;padding-top:.6rem;border-top:1px solid var(--border)}.post-card .timestamp{font-size:.78rem;color:var(--text-muted)}.error-msg{background:#ef44441a;color:var(--danger);border:1px solid #fecaca;border-radius:var(--radius-sm);padding:.6rem 1rem;font-size:.88rem;margin-bottom:1rem}.empty-state{text-align:center;color:var(--text-muted);padding:2rem;font-size:.92rem;background:var(--surface);border:1px dashed var(--border);border-radius:var(--radius)}.auth-footer{margin-top:1.25rem;text-align:center;font-size:.88rem;color:var(--text-muted)}.auth-footer a{color:var(--primary);font-weight:500;text-decoration:none}.auth-footer a:hover{text-decoration:underline}.post-card-clickable{cursor:pointer}.post-card-clickable:hover{border-color:var(--primary)}.comments-section{margin-top:2rem}.comment-form{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.25rem;margin-bottom:1rem;box-shadow:var(--shadow)}.comment-form textarea{width:100%;padding:.6rem .85rem;border:1.5px solid var(--border);border-radius:var(--radius-sm);font-size:.92rem;font-family:inherit;resize:vertical;min-height:70px;background:var(--bg);color:var(--text);transition:var(--transition)}.comment-form textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-light);background:var(--surface)}.comment-form .btn{margin-top:.65rem}.comment-list{display:flex;flex-direction:column;gap:.65rem}.comment-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);padding:1rem 1.15rem;box-shadow:var(--shadow);transition:var(--transition)}.comment-card:hover{box-shadow:var(--shadow-md)}.comment-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.4rem}.comment-author{font-size:.88rem;font-weight:600;color:var(--text)}.badge-own{font-size:.75rem;font-weight:500;color:var(--primary)}.comment-header .timestamp{font-size:.78rem;color:var(--text-muted)}.comment-body{font-size:.92rem;color:var(--text);line-height:1.55;white-space:pre-wrap}.comment-actions{display:flex;gap:.75rem;margin-top:.5rem;padding-top:.45rem;border-top:1px solid var(--border)}.btn-link{background:none;border:none;cursor:pointer;font-size:.8rem;font-family:inherit;font-weight:500;color:var(--primary);padding:.1rem 0;transition:var(--transition)}.btn-link:hover{text-decoration:underline}.btn-danger-link{color:var(--danger)}.btn-danger-link:hover{color:var(--danger-hover)}.comment-edit textarea{width:100%;padding:.55rem .8rem;border:1.5px solid var(--border);border-radius:var(--radius-sm);font-size:.9rem;font-family:inherit;resize:vertical;min-height:60px;background:var(--bg);color:var(--text)}.comment-edit textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-light);background:var(--surface)}.comment-edit-actions{display:flex;gap:.5rem;margin-top:.5rem}
