:root{--bg: #020617;--bg-card: #020617;--bg-soft: #020617;--text: #e5e7eb;--text-muted: #9ca3af;--accent: #3b82f6;--accent-soft: rgba(59, 130, 246, .12);--border: #1f2937;--danger: #f97373;--success: #4ade80}:root[data-theme=light]{--bg: #f3f4f6;--bg-card: #ffffff;--bg-soft: #e5e7eb;--text: #111827;--text-muted: #6b7280;--accent: #2563eb;--accent-soft: rgba(37, 99, 235, .1);--border: #d1d5db;--danger: #b91c1c;--success: #16a34a}*,*:before,*:after{box-sizing:border-box}html,body{margin:0;padding:0}body{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:var(--bg);color:var(--text)}button{font-family:inherit}.app{min-height:100vh;background:radial-gradient(circle at top,#111827 0,var(--bg) 45%);color:var(--text);display:flex;flex-direction:column}.site-header{display:flex;align-items:center;justify-content:space-between;padding:10px 20px;border-bottom:1px solid var(--border);background:#0f172af0;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);position:sticky;top:0;z-index:10}:root[data-theme=light] .site-header{background:#f3f4f6f5}.site-header__left{display:flex;align-items:center;gap:16px}.site-header__right{display:flex;align-items:center;gap:10px}.logo{font-size:22px;letter-spacing:.06em}.nav{display:flex;gap:8px}.link-button{border:none;background:transparent;color:var(--text-muted);font-size:13px;cursor:pointer;text-decoration:underline;padding:4px 6px}.link-button:hover{color:var(--text)}.link-button--active{color:var(--accent);text-decoration:none;font-weight:600}.primary-button{border-radius:10px;border:none;padding:9px 14px;background:var(--accent);color:#fff;font-weight:600;cursor:pointer;font-size:14px}.primary-button--small{padding:6px 10px;font-size:13px}.primary-button:disabled{opacity:.5;cursor:default}.secondary-button{margin-top:8px;width:100%;border-radius:10px;border:1px solid var(--border);padding:7px 0;background:transparent;color:var(--text);font-size:13px;cursor:pointer}.theme-toggle{border-radius:999px;border:1px solid var(--border);background:#0f172a99;padding:6px 12px;font-size:13px;color:var(--text);cursor:pointer}:root[data-theme=light] .theme-toggle{background:#e5e7eb}.user-badge{font-size:12px;color:var(--text-muted)}.user-badge strong{color:var(--text)}.app-inner{flex:1;width:100%;margin:0;padding:24px;display:flex;gap:24px}.left-panel{flex:0 0 340px;max-width:380px}.right-panel{flex:1;display:block}.footer{margin-top:10px;font-size:11px;color:var(--text-muted)}.auth-card{background:var(--bg-card);border-radius:16px;padding:20px 18px 18px;box-shadow:0 18px 45px #0000008c;border:1px solid var(--border)}.alert{padding:8px 10px;border-radius:8px;font-size:13px;margin-bottom:8px}.alert--success{background:#22c55e1f;border:1px solid rgba(34,197,94,.3)}.alert--error{background:#f871711f;border:1px solid rgba(248,113,113,.3)}.form{display:flex;flex-direction:column;gap:10px}.form-row{display:flex;flex-direction:column;gap:4px}.form-row--split{display:flex;gap:10px}.form-row--split>div{flex:1;display:flex;flex-direction:column;gap:4px}label{font-size:12px;color:var(--text-muted)}input,select,textarea{border-radius:8px;border:1px solid var(--border);padding:7px 9px;font-size:14px;background:#0f172ab3;color:var(--text);outline:none;resize:vertical}:root[data-theme=light] input,:root[data-theme=light] select,:root[data-theme=light] textarea{background:#f9fafb}input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent-soft)}.info-text{font-size:12px;color:var(--text-muted);margin-bottom:6px}.form-error{font-size:11px;color:var(--danger)}.password-list{list-style:none;padding:0;margin:4px 0 0;font-size:11px;color:var(--text-muted)}.password-list__item{display:flex;align-items:center;gap:4px}.password-list__item.ok{color:var(--success)}.password-list__bullet{width:14px}.forum-preview{background:#0f172acc;border-radius:18px;padding:18px;border:1px solid var(--border);box-shadow:0 18px 40px #00000080;margin-bottom:20px;display:flex;flex-direction:column}:root[data-theme=light] .forum-preview{background:#fff}.forum-header{display:flex;justify-content:space-between;gap:12px;margin-bottom:14px}.forum-header h2{margin:0 0 4px;font-size:20px}.forum-header p{margin:0;font-size:13px;color:var(--text-muted)}.forum-userbox{display:flex;flex-direction:column;align-items:flex-end;gap:4px}.forum-userbox__name{font-size:13px}.forum-userbox__name span{display:block;font-size:11px;color:var(--text-muted)}.forum-userbox__actions{display:flex;gap:6px}.forum-userbox__actions button{border-radius:999px;border:1px solid var(--border);background:transparent;color:var(--text);padding:5px 9px;font-size:11px;cursor:pointer}.badge{font-size:10px;padding:3px 7px;border-radius:999px;border:1px solid var(--border)}.badge--success{border-color:#22c55ecc;color:var(--success)}.forum-layout{display:grid;grid-template-columns:.7fr 1.3fr;gap:14px;flex:1}.forum-categories{border-radius:14px;background:#0f172ab3;padding:10px 12px}:root[data-theme=light] .forum-categories{background:var(--bg-soft)}.forum-topics{border-radius:14px;background:#0f172ab3;padding:10px 12px}:root[data-theme=light] .forum-topics{background:var(--bg-soft)}.forum-categories h3,.forum-topics h3{margin:0 0 8px;font-size:15px}.forum-categories ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:6px}.cat-title{font-size:13px;font-weight:600}.cat-desc{font-size:11px;color:var(--text-muted)}.topic-list{display:flex;flex-direction:column;gap:6px}.topic-row{display:flex;justify-content:space-between;gap:8px;padding:6px 8px;border-radius:10px;background:#0f172ab3}:root[data-theme=light] .topic-row{background:#fff}.topic-main{flex:1}.topic-title{font-size:13px;margin-bottom:2px}.topic-meta{font-size:11px;color:var(--text-muted)}.topic-stats{display:flex;gap:10px;align-items:center;font-size:11px}.topic-stat-label{display:block;color:var(--text-muted)}.topic-stat-value{font-weight:600}.page{display:flex;flex-direction:column;gap:12px}.page-title{margin:0 0 6px;font-size:20px}.forum-column{background:#0f172acc;border-radius:14px;padding:12px 14px;border:1px solid var(--border)}:root[data-theme=light] .forum-column{background:#fff}.forum-column h2{margin:0 0 10px;font-size:16px}.list{list-style:none;margin:0;padding:0}.list--bordered .list-item{border-bottom:1px solid rgba(148,163,184,.2)}.list-item{display:flex;justify-content:space-between;align-items:center;gap:6px;padding:6px 0}.list-item--active{background:#3b82f614;border-radius:8px;padding-inline:6px}.list-item-meta{font-size:11px;color:var(--text-muted)}.card{border-radius:14px;background:#0f172ae6;border:1px solid var(--border)}:root[data-theme=light] .card{background:#fff}.card-body{padding:10px 12px}.post-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}.post-item{padding:8px 10px;border-radius:10px;background:#0f172ab3}:root[data-theme=light] .post-item{background:#f3f4f6}.post-meta{display:flex;justify-content:space-between;font-size:11px;color:var(--text-muted);margin-bottom:4px}.post-content{font-size:14px}.mt-md{margin-top:12px}.mt-lg{margin-top:18px}@media(max-width:900px){.site-header{flex-wrap:wrap;gap:8px}.app-inner{flex-direction:column;padding:16px}.left-panel{flex:none;max-width:100%}.right-panel{flex:none}.forum-preview{margin-top:16px}.forum-layout{grid-template-columns:1fr}}.app--auth .app-inner{max-width:420px;width:100%;margin:24px auto;padding:24px 16px;display:block}.app--auth .left-panel{max-width:100%}.app--auth .right-panel{display:none!important}
