:root { --bg:#12141a; --panel:#1b1e27; --panel2:#232736; --text:#e8eaf0; --muted:#8e94a8; --line:#2d3244; --ui-accent:#6c8cff; --danger:#e5484d; --ok:#3ecf8e; }
:root[data-theme=light] { --bg:#f3f4f8; --panel:#fff; --panel2:#eef0f6; --text:#1b1e27; --muted:#667; --line:#dcdfe9; }
@media (prefers-color-scheme: light) { :root[data-theme=auto] { --bg:#f3f4f8; --panel:#fff; --panel2:#eef0f6; --text:#1b1e27; --muted:#667; --line:#dcdfe9; } }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--text); font:15px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; }
a { color:var(--ui-accent); text-decoration:none; } a:hover { text-decoration:underline; }
h1,h2,h3,h4 { margin:.4em 0; } .muted,small,time { color:var(--muted); font-size:.88em; } .pre { white-space:pre-wrap; overflow-wrap:anywhere; margin:.3em 0; }
input,textarea,select { width:100%; background:var(--panel2); color:var(--text); border:1px solid var(--line); border-radius:8px; padding:8px 10px; font:inherit; }
input[type=checkbox] { width:auto; } input[type=color] { padding:2px; height:36px; } input[type=range] { padding:0; }
textarea.code { font-family:ui-monospace,Menlo,Consolas,monospace; font-size:13px; }
.btn,button.link { background:var(--panel2); color:var(--text); border:1px solid var(--line); border-radius:8px; padding:7px 14px; cursor:pointer; font:inherit; display:inline-block; }
.btn:hover { text-decoration:none; filter:brightness(1.15); } .btn.primary { background:var(--ui-accent); border-color:transparent; color:#fff; } .btn.danger { color:var(--danger); }
button.link { border:0; background:none; color:var(--muted); text-align:left; padding:8px 12px; }
.card { background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:14px 16px; margin:10px 0; }
.field { display:block; margin:10px 0; } .field>span { display:block; margin-bottom:4px; font-size:.9em; color:var(--muted); } .field>small { display:block; margin-top:3px; }
.row { display:flex; gap:10px; align-items:center; justify-content:space-between; flex-wrap:wrap; } .row>input,.row>select { flex:1; min-width:120px; } .actions { display:flex; gap:6px; flex-wrap:wrap; }
.check { display:flex; gap:8px; align-items:flex-start; margin:8px 0; } .check small { display:block; } .checks { display:flex; gap:16px; flex-wrap:wrap; }
.grid2 { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:0 16px; }
.tabs { display:flex; gap:4px; flex-wrap:wrap; margin:10px 0; border-bottom:1px solid var(--line); }
.tabs a,.tabs button { background:none; border:0; color:var(--muted); padding:8px 14px; cursor:pointer; font:inherit; border-bottom:2px solid transparent; } .tabs .on { color:var(--text); border-color:var(--ui-accent); } .tabs .lock { margin-left:auto; }
.tag { background:var(--panel2); border:1px solid var(--line); border-radius:6px; padding:0 6px; margin-left:6px; font-size:.75em; color:var(--muted); font-weight:400; }
.msg { min-height:1.2em; margin:8px 0; } .msg.bad { color:var(--danger); } .msg.ok { color:var(--ok); }
.toast { position:fixed; right:16px; bottom:16px; background:var(--panel); border:1px solid var(--line); padding:10px 16px; border-radius:10px; z-index:99; box-shadow:0 6px 24px #0006; } .toast.bad { border-color:var(--danger); }
.x { background:none; border:0; color:var(--muted); cursor:pointer; } .x:hover { color:var(--danger); }
/* layout */
.layout { display:grid; grid-template-columns:220px 1fr; min-height:100vh; } .side { background:var(--panel); border-right:1px solid var(--line); padding:16px 8px; display:flex; flex-direction:column; gap:2px; position:sticky; top:0; height:100vh; }
.side a { color:var(--text); padding:8px 12px; border-radius:8px; } .side a:hover { background:var(--panel2); text-decoration:none; } .side .brand { font-weight:700; font-size:1.1em; margin-bottom:10px; } .side button.link { margin-top:auto; }
.badge { background:var(--danger); color:#fff; border-radius:10px; padding:0 7px; margin-left:8px; font-size:.8em; }
.main { padding:20px 28px; max-width:980px; width:100%; }
@media (max-width:760px) { .layout { grid-template-columns:1fr; } .side { position:static; height:auto; flex-direction:row; flex-wrap:wrap; } .side button.link { margin:0; } .main { padding:14px; } }
/* home */
.home { max-width:1000px; margin:0 auto; padding:24px 16px; } .hero { text-align:center; padding:30px 0; } .home-grid { display:grid; grid-template-columns:1fr 340px; gap:24px; align-items:start; } @media (max-width:760px) { .home-grid { grid-template-columns:1fr; } }
.auth { position:sticky; top:16px; }
/* people / avatars */
.avatar { width:44px; height:44px; border-radius:50%; object-fit:cover; flex:none; } .avatar.ph { background:var(--ui-accent); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; }
.avatar.big { width:96px; height:96px; font-size:2em; } .avatar.sm { width:32px; height:32px; font-size:.9em; }
.person { display:flex; gap:12px; align-items:center; color:var(--text); } .person:hover { text-decoration:none; background:var(--panel2); }
/* chat */
.warn { background:#f5a62326; border:1px solid #f5a623; border-radius:10px; padding:10px 14px; margin-bottom:10px; }
.chatbox { height:55vh; overflow-y:auto; background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:10px; } .msgrow,.comment { display:flex; gap:10px; padding:6px 0; } .msgrow>div,.comment>div { flex:1; min-width:0; }
.chatimg { max-width:320px; max-height:240px; border-radius:8px; display:block; margin-top:4px; } .chatform { display:flex; gap:8px; margin-top:10px; }
/* profile */
.ptools { display:flex; gap:8px; margin-bottom:10px; }
.profile-frame { position:relative; overflow:hidden; contain:paint; isolation:isolate; border-radius:14px; border:1px solid var(--line); }
.profile-skin { position:relative; min-height:420px; padding-bottom:16px; }
.profile-skin .p-banner { height:180px; background:var(--accent); overflow:hidden; } .profile-skin .p-banner img { width:100%; height:100%; object-fit:cover; display:block; }
.profile-skin .p-head { display:flex; gap:16px; align-items:center; padding:16px; } .profile-skin .p-head .avatar { border:3px solid var(--accent); }
.profile-skin .p-body { display:grid; gap:12px; padding:0 16px; } .profile-skin.two .p-body { grid-template-columns:1fr 1fr; } .profile-skin.two .pcard.wide { grid-column:1/-1; } @media (max-width:760px) { .profile-skin.two .p-body { grid-template-columns:1fr; } }
.profile-skin .pcard { background:var(--card); border-radius:var(--radius); padding:12px 16px; position:relative; z-index:1; } .profile-skin .muted,.profile-skin time,.profile-skin small { color:inherit; opacity:.7; }
.profile-skin a { color:var(--accent); } .profile-skin input,.profile-skin textarea { background:#0003; color:inherit; } .profile-skin .btn.primary { background:var(--accent); }
.fx-canvas { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; z-index:0; }
.tbl { width:100%; border-collapse:collapse; } .tbl td,.tbl th { border-bottom:1px solid var(--line); padding:6px; text-align:left; font-size:.9em; } .resp { border-left:3px solid var(--ui-accent); padding-left:10px; }
