:root {
    --bg:   #0d0d0d;
    --bg2:  #161616;
    --bg3:  #1e1e1e;
    --bg4:  #252525;
    --acc:  #00e676;
    --acc2: #00b85e;
    --acc3: rgba(0, 230, 118, .12);
    --txt:  #e8e8e8;
    --txt2: #888;
    --txt3: #555;
    --red:    #ff4757;
    --yellow: #ffd32a;
    --blue:   #74b9ff;
    --bd:  #2a2a2a;
    --bd2: #333;
    --r:   6px;
    --sh:  0 8px 32px rgba(0, 0, 0, .6);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
    font-family: 'SF Mono', Consolas, monospace;
    background: var(--bg);
    color: var(--txt);
    overflow: hidden;
}

::-webkit-scrollbar              { width: 5px; height: 5px; }
::-webkit-scrollbar-track        { background: var(--bg2); }
::-webkit-scrollbar-thumb        { background: var(--bg4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover  { background: var(--acc2); }

#loader {
position: fixed; inset: 0;
background: var(--bg);
display: flex; flex-direction: column; align-items: center; justify-content: center;
gap: 14px; z-index: 9999;
}
.ld-logo { font-size: 34px; font-weight: 700; letter-spacing: 4px; color: var(--acc); }
.ld-bar  { width: 100px; height: 2px; background: var(--bg3); border-radius: 1px; overflow: hidden; }
.ld-fill { height: 100%; background: var(--acc); border-radius: 1px; animation: ld 1.5s ease-in-out infinite; }
.ld-msg  { font-size: 11px; color: var(--txt3); }

@keyframes ld {
    0%   { width: 0;   margin-left: 0; }
    50%  { width: 60%; margin-left: 0; }
    100% { width: 0;   margin-left: 100%; }
}

.app  { display: flex; height: 100vh; }
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }

.sb {
    width: 220px; min-width: 220px;
    background: var(--bg2);
    border-right: 1px solid var(--bd);
    display: flex; flex-direction: column;
    transition: transform .25s;
}
.sb-head {
    padding: 14px 12px;
    border-bottom: 1px solid var(--bd);
    display: flex; align-items: center; gap: 9px;
}
.logo-box {
    width: 30px; height: 30px;
    background: var(--acc); color: #000;
    font-weight: 700; font-size: 13px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 4px; flex-shrink: 0;
}
.logo-name { font-size: 15px; font-weight: 700; letter-spacing: 2px; }
.logo-ver  { font-size: 10px; color: var(--txt3); }

.sb-sec { padding: 5px 8px; }
.sb-lbl {
    font-size: 10px; color: var(--txt3);
    text-transform: uppercase; letter-spacing: 1.5px;
    padding: 7px 6px 3px;
}

.ni {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 8px; border-radius: var(--r);
    cursor: pointer; color: var(--txt2); font-size: 12.5px;
    border: none; background: none;
    width: 100%; text-align: left;
    transition: all .14s;
}
.ni:hover          { background: var(--bg3); color: var(--txt); }
.ni.active         { background: var(--acc3); color: var(--acc); }
.ni .ic            { width: 16px; text-align: center; font-size: 14px; }
.ni .cnt           { margin-left: auto; font-size: 10px; background: var(--bg4); color: var(--txt3); padding: 1px 5px; border-radius: 8px; }
.ni.active .cnt    { background: var(--acc2); color: #000; }

.sb-foot   { margin-top: auto; padding: 10px 12px; border-top: 1px solid var(--bd); }
.sb-bar    { height: 3px; background: var(--bg4); border-radius: 2px; overflow: hidden; margin: 6px 0 4px; }
.sb-fill   { height: 100%; background: var(--acc); border-radius: 2px; transition: width .4s; }
.sb-txt    { font-size: 10px; color: var(--txt3); display: flex; justify-content: space-between; }
.user-row  { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.user-av   { width: 24px; height: 24px; background: var(--acc); color: #000; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }

.demo-bar {
    background: rgba(255, 211, 42, .08);
    border-bottom: 1px solid rgba(255, 211, 42, .2);
    padding: 4px 14px; font-size: 11px; color: var(--yellow);
    display: none; align-items: center; gap: 8px; flex-shrink: 0;
}
.demo-bar.on { display: flex; }

.topbar {
    height: 50px; background: var(--bg2);
    border-bottom: 1px solid var(--bd);
    display: flex; align-items: center;
    padding: 0 14px; gap: 10px; flex-shrink: 0;
}
.mb { background: none; border: none; color: var(--txt2); cursor: pointer; font-size: 17px; padding: 4px; display: none; }

.sw { flex: 1; max-width: 420px; position: relative; }
.si {
    width: 100%; background: var(--bg3);
    border: 1px solid var(--bd); color: var(--txt);
    padding: 6px 12px 6px 32px;
    border-radius: var(--r); font-family: inherit; font-size: 12px;
    outline: none; transition: border-color .2s;
}
.si:focus  { border-color: var(--acc); }
.si-ic { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--txt3); pointer-events: none; }

.tb-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 12px; border-radius: var(--r);
    font-family: inherit; font-size: 12px;
    cursor: pointer; border: none; transition: all .14s;
}
.btn-acc          { background: var(--acc); color: #000; font-weight: 700; }
.btn-acc:hover    { background: var(--acc2); }
.btn-gh           { background: none; color: var(--txt2); border: 1px solid var(--bd); }
.btn-gh:hover     { background: var(--bg3); color: var(--txt); border-color: var(--bd2); }
.btn-sm           { padding: 4px 9px; font-size: 11px; }
.btn-red          { background: none; color: var(--red); border: 1px solid transparent; }
.btn-red:hover    { background: rgba(255,71,87,.1); border-color: var(--red); }
.btn:disabled,
.btn-gh:disabled  { opacity: .5; cursor: not-allowed; }

.icon-btn       { background: none; border: none; color: var(--txt3); cursor: pointer; padding: 3px 5px; border-radius: 4px; font-size: 13px; transition: all .14s; }
.icon-btn:hover { color: var(--txt); background: var(--bg3); }
.icon-btn.del:hover { color: var(--red); background: rgba(255,71,87,.1); }

#content { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 22px; }

.ph  { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.pt  { font-size: 17px; font-weight: 700; }
.ps  { font-size: 11px; color: var(--txt3); margin-top: 2px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--txt2); font-size: 12px; cursor: pointer; margin-bottom: 14px; border: none; background: none; font-family: inherit; transition: color .15s; }
.back:hover { color: var(--acc); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }

.card {
    background: var(--bg2); border: 1px solid var(--bd);
    border-radius: var(--r); padding: 14px;
    cursor: pointer; transition: all .18s;
    display: flex; flex-direction: column; gap: 8px;
    animation: fi .18s ease both;
}
.card:hover { border-color: var(--bd2); transform: translateY(-1px); box-shadow: var(--sh); }
.ct { font-size: 14px; font-weight: 600; line-height: 1.3; }
.cd { font-size: 12px; color: var(--txt2); line-height: 1.5; flex: 1; }
.cf { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cdate { font-size: 10px; color: var(--txt3); }
.tags  { display: flex; gap: 4px; flex-wrap: wrap; }
.tag   { font-size: 10px; color: var(--txt3); background: var(--bg4); padding: 2px 5px; border-radius: 3px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 22px; }
.stat       { background: var(--bg2); border: 1px solid var(--bd); border-radius: var(--r); padding: 12px 14px; transition: border-color .15s; }
.stat:hover { border-color: var(--bd2); }
.sv { font-size: 20px; font-weight: 700; color: var(--acc); }
.sl { font-size: 10px; color: var(--txt3); text-transform: uppercase; letter-spacing: .8px; margin-top: 1px; }

.hero {
    text-align: center; padding: 40px 20px 30px;
    max-width: 600px; margin: 0 auto;
}
.hero-badge  { display: inline-block; font-size: 10px; color: var(--acc); border: 1px solid var(--acc3); padding: 3px 10px; border-radius: 12px; margin-bottom: 14px; letter-spacing: 1px; }
.hero-title  { font-size: 44px; font-weight: 700; letter-spacing: 4px; margin-bottom: 10px; }
.hero-sub    { font-size: 13px; color: var(--txt2); line-height: 1.7; margin-bottom: 20px; }
.hero-btns   { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

.htiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 680px; margin: 0 auto 24px; }
.htile  { background: var(--bg2); border: 1px solid var(--bd); border-radius: var(--r); padding: 14px; cursor: pointer; transition: all .18s; animation: fi .18s ease both; }
.htile:hover { border-color: var(--acc); background: var(--acc3); }
.htic { font-size: 20px; margin-bottom: 6px; }
.htin { font-size: 13px; font-weight: 600; }
.htis { font-size: 11px; color: var(--txt3); margin-top: 3px; }

.ri { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--bd); cursor: pointer; }
.ri:hover .ri-name { color: var(--acc); }
.ri-name { font-size: 13px; flex: 1; }
.ri-date { font-size: 10px; color: var(--txt3); }

.nv       { max-width: 700px; }
.nv-title { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.nv-meta  { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--bd); }
.nv-body  { font-size: 13px; color: var(--txt2); line-height: 1.8; margin-bottom: 24px; }

.comments { border-top: 1px solid var(--bd); padding-top: 14px; }
.comment  { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--bd); }
.c-av     { width: 28px; height: 28px; background: var(--bg3); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--acc); flex-shrink: 0; }
.c-head   { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.c-author { font-size: 12px; color: var(--acc); }
.c-date   { font-size: 10px; color: var(--txt3); }
.c-text   { font-size: 12px; color: var(--txt2); line-height: 1.5; }

.db-tabs { display: flex; gap: 4px; margin-bottom: 14px; flex-wrap: wrap; }
.db-tab       { padding: 5px 12px; border-radius: var(--r); border: 1px solid var(--bd); background: none; color: var(--txt2); font-family: inherit; font-size: 12px; cursor: pointer; transition: all .14s; }
.db-tab:hover { border-color: var(--bd2); color: var(--txt); }
.db-tab.active { background: var(--acc); color: #000; border-color: var(--acc); font-weight: 600; }

.db-wrap { overflow-x: auto; border: 1px solid var(--bd); border-radius: var(--r); }
.dbt { border-collapse: collapse; width: 100%; min-width: 400px; }
.dbt th { background: var(--bg3); padding: 8px 12px; text-align: left; font-size: 10px; color: var(--txt3); text-transform: uppercase; letter-spacing: .8px; border-bottom: 1px solid var(--bd); white-space: nowrap; }
.dbt td { padding: 7px 12px; border-bottom: 1px solid var(--bd); font-size: 12px; cursor: pointer; }
.dbt tr:last-child td { border-bottom: none; }
.dbt tr:hover td { background: var(--bg3); }
.num-col { width: 34px; text-align: center; color: var(--txt3); font-size: 11px; }
.st { display: inline-block; font-size: 10px; padding: 2px 7px; border-radius: 3px; font-weight: 500; }
.ci { background: transparent; border: none; color: var(--txt); font-family: inherit; font-size: 12px; outline: none; width: 100%; padding: 2px 4px; border-bottom: 1px solid var(--acc); }
.db-add { display: flex; align-items: center; gap: 6px; padding: 7px 12px; font-size: 12px; color: var(--txt3); cursor: pointer; border: none; background: none; font-family: inherit; transition: color .14s; width: 100%; }
.db-add:hover { color: var(--acc); }

.cv-wrap    { display: flex; flex-direction: column; height: 100%; }
.cv-toolbar { height: 44px; background: var(--bg2); border-bottom: 1px solid var(--bd); display: flex; align-items: center; padding: 0 14px; gap: 8px; flex-shrink: 0; }
.cv-tabs    { display: flex; gap: 4px; flex: 1; }
.cv-tab       { padding: 4px 10px; border-radius: 4px; border: 1px solid var(--bd); background: none; color: var(--txt2); font-family: inherit; font-size: 11px; cursor: pointer; transition: all .14s; }
.cv-tab:hover { border-color: var(--bd2); color: var(--txt); }
.cv-tab.active { background: var(--acc); color: #000; border-color: var(--acc); font-weight: 600; }
.cv-tools   { display: flex; align-items: center; gap: 6px; }
.cv-btn       { padding: 4px 9px; border-radius: 4px; border: 1px solid var(--bd); background: none; color: var(--txt2); font-family: inherit; font-size: 11px; cursor: pointer; transition: all .14s; }
.cv-btn:hover { border-color: var(--bd2); color: var(--txt); }
.cv-btn.active { border-color: var(--acc); color: var(--acc); }
.cv-zoom    { font-size: 11px; color: var(--txt3); min-width: 36px; text-align: right; }

.cv-vp    { flex: 1; position: relative; overflow: hidden; cursor: default; background: radial-gradient(circle at 50% 50%, var(--bg3) 0%, var(--bg) 100%); }
.cv-grid  { position: absolute; inset: 0; background-image: radial-gradient(var(--bd) 1px, transparent 1px); background-size: 28px 28px; pointer-events: none; opacity: .5; }
.cv-world { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.cv-hint  { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--txt3); pointer-events: none; white-space: nowrap; }

.cv-card  { position: absolute; background: var(--bg2); border: 1px solid var(--bd2); border-radius: var(--r); min-width: 180px; cursor: move; user-select: none; box-shadow: 0 4px 16px rgba(0,0,0,.4); }
.cv-card.selected { border-color: var(--acc); }
.cv-ch    { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 6px; border-bottom: 1px solid var(--bd); gap: 6px; }
.cv-ctitle { font-size: 12px; font-weight: 600; color: var(--txt); flex: 1; outline: none; background: none; border: none; font-family: inherit; cursor: text; }
.cv-ctitle:focus { color: var(--acc); }
.cv-cbtns { display: flex; gap: 2px; opacity: 0; transition: opacity .14s; }
.cv-card:hover .cv-cbtns { opacity: 1; }
.cv-cbtn       { background: none; border: none; color: var(--txt3); cursor: pointer; padding: 2px 5px; border-radius: 3px; font-size: 12px; transition: all .14s; }
.cv-cbtn:hover { color: var(--txt); background: var(--bg3); }
.cv-cbtn.del:hover { color: var(--red); }
.cv-body    { padding: 8px 10px 10px; font-size: 11.5px; color: var(--txt2); line-height: 1.6; min-height: 50px; }
.cv-body-ta { width: 100%; background: transparent; border: none; color: var(--txt2); font-family: inherit; font-size: 11.5px; line-height: 1.6; resize: vertical; outline: none; min-height: 50px; padding: 8px 10px 10px; }
.cv-handle  { position: absolute; bottom: 4px; right: 6px; font-size: 10px; color: var(--txt3); cursor: crosshair; padding: 2px 4px; border-radius: 3px; transition: all .14s; }
.cv-handle:hover { color: var(--acc); background: var(--acc3); }

.fl-toolbar { padding: 9px 14px; border-bottom: 1px solid var(--bd); display: flex; align-items: center; gap: 8px; }
.bc      { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--txt2); flex: 1; overflow: hidden; flex-wrap: wrap; }
.bc-item { cursor: pointer; white-space: nowrap; transition: color .14s; }
.bc-item:hover { color: var(--acc); }
.bc-sep  { color: var(--txt3); }

.fl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; padding: 14px; }
.fi { background: var(--bg2); border: 1px solid var(--bd); border-radius: var(--r); padding: 12px 8px; cursor: pointer; transition: all .15s; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 5px; animation: fi .18s ease both; }
.fi:hover  { border-color: var(--bd2); background: var(--bg3); }
.fi-icon   { font-size: 26px; line-height: 1; }
.fi-name   { font-size: 11px; color: var(--txt); word-break: break-all; line-height: 1.3; }
.fi-meta   { font-size: 10px; color: var(--txt3); }

.prog-bar  { height: 4px; background: var(--bg3); border-radius: 2px; overflow: hidden; margin-top: 8px; }
.prog-fill { height: 100%; background: var(--acc); border-radius: 2px; transition: width .3s; }

.th-item        { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--bg2); border: 1px solid var(--bd); border-radius: var(--r); cursor: pointer; transition: all .15s; margin-bottom: 6px; animation: fi .18s ease both; }
.th-item:hover  { border-color: var(--bd2); background: var(--bg3); }
.th-item.pinned { border-left: 2px solid var(--acc); }
.th-icon   { font-size: 16px; flex-shrink: 0; }
.th-body   { flex: 1; min-width: 0; }
.th-title  { font-size: 13px; font-weight: 600; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-meta   { font-size: 11px; color: var(--txt3); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.th-replies { text-align: center; flex-shrink: 0; }
.tr-num { font-size: 18px; font-weight: 700; color: var(--acc); }
.tr-lbl { font-size: 10px; color: var(--txt3); }

.posts-list  { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.post        { display: flex; gap: 12px; padding: 14px; background: var(--bg2); border: 1px solid var(--bd); border-radius: var(--r); }
.post.op     { border-left: 2px solid var(--acc); }
.post-av     { width: 32px; height: 32px; background: var(--bg3); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--acc); flex-shrink: 0; }
.post-cont   { flex: 1; min-width: 0; }
.post-head   { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.post-author { font-size: 12px; font-weight: 600; color: var(--acc); }
.post-date   { font-size: 11px; color: var(--txt3); }
.op-badge    { font-size: 9px; background: var(--acc3); color: var(--acc); padding: 1px 5px; border-radius: 3px; }
.post-body   { font-size: 12px; color: var(--txt2); line-height: 1.6; white-space: pre-wrap; }
.reply-box   { background: var(--bg2); border: 1px solid var(--bd); border-radius: var(--r); padding: 14px; }

.msg-layout { display: grid; grid-template-columns: 180px 1fr; height: calc(100vh - 120px); border: 1px solid var(--bd); border-radius: var(--r); overflow: hidden; }
.msg-sb     { background: var(--bg2); border-right: 1px solid var(--bd); overflow-y: auto; }
.msg-ci     { display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; transition: all .14s; font-size: 12px; color: var(--txt2); }
.msg-ci:hover,
.msg-ci.active  { background: var(--bg3); color: var(--txt); }
.msg-ci.active  { border-left: 2px solid var(--acc); color: var(--acc); }
.msg-main       { display: flex; flex-direction: column; background: var(--bg); }
.msg-history    { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.msg-input      { padding: 10px 12px; border-top: 1px solid var(--bd); display: flex; gap: 8px; }

.msg-bubble      { max-width: 70%; padding: 8px 12px; border-radius: var(--r); font-size: 12px; line-height: 1.5; }
.msg-bubble.other { background: var(--bg3); align-self: flex-start; }
.msg-bubble.mine  { background: var(--acc3); border: 1px solid var(--acc2); align-self: flex-end; }
.msg-bubble .ma   { font-size: 10px; color: var(--txt3); margin-bottom: 3px; }

.overlay      { position: fixed; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(4px); z-index: 200; display: none; align-items: center; justify-content: center; padding: 16px; }
.overlay.open { display: flex; }
.modal        { background: var(--bg2); border: 1px solid var(--bd2); border-radius: 8px; width: 100%; max-width: 480px; max-height: 92vh; display: flex; flex-direction: column; box-shadow: var(--sh); }
.mh  { padding: 18px 20px 14px; border-bottom: 1px solid var(--bd); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.mt  { font-size: 15px; font-weight: 600; }
.xbtn       { background: none; border: none; color: var(--txt3); cursor: pointer; font-size: 18px; padding: 1px 5px; border-radius: 4px; transition: all .14s; }
.xbtn:hover { color: var(--txt); background: var(--bg3); }
.mb2 { padding: 18px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.mf  { padding: 14px 20px; border-top: 1px solid var(--bd); display: flex; justify-content: flex-end; gap: 8px; flex-shrink: 0; }

.fg  { display: flex; flex-direction: column; gap: 4px; }
.fl  { font-size: 10px; color: var(--txt2); text-transform: uppercase; letter-spacing: .8px; }
.fi2, .fta, .fsl {
    background: var(--bg3); border: 1px solid var(--bd); color: var(--txt);
    padding: 8px 10px; border-radius: var(--r);
    font-family: inherit; font-size: 12px;
    outline: none; transition: border-color .2s; width: 100%;
}
.fi2:focus, .fta:focus, .fsl:focus { border-color: var(--acc); }
.fta { resize: vertical; min-height: 80px; line-height: 1.5; }
.fsl option { background: var(--bg2); }

.auth-note  { font-size: 11.5px; color: var(--txt3); padding: 10px 12px; background: var(--bg3); border-radius: var(--r); border-left: 2px solid var(--acc); line-height: 1.5; }
.auth-sw    { text-align: center; font-size: 12px; color: var(--txt3); }
.auth-sw a  { color: var(--acc); cursor: pointer; }
.auth-gate  { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg3); border-radius: var(--r); font-size: 12px; color: var(--txt2); }

.be-req      { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 60px 20px; text-align: center; color: var(--txt3); }
.be-req .ic  { font-size: 40px; opacity: .3; }
.be-req h3   { color: var(--txt2); font-size: 15px; }
.be-req p    { font-size: 12px; max-width: 400px; line-height: 1.6; }
.be-req code { background: var(--bg3); padding: 7px 14px; border-radius: var(--r); font-size: 12px; color: var(--acc); display: block; margin-top: 6px; text-align: left; }

#toasts { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 6px; z-index: 999; }
.toast {
    background: var(--bg3); border: 1px solid var(--bd2);
    border-left: 3px solid var(--acc);
    padding: 10px 16px; border-radius: var(--r);
    font-size: 12px; box-shadow: var(--sh);
    transform: translateX(120%); transition: transform .25s;
}
.toast.in { transform: translateX(0); }
.toast.w  { border-left-color: var(--yellow); }
.toast.e  { border-left-color: var(--red); }

.empty    { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 60px 20px; color: var(--txt3); text-align: center; grid-column: 1 / -1; }
.empty-ic { font-size: 40px; opacity: .3; }

.sk {
    background: linear-gradient(90deg, var(--bg3) 25%, var(--bg4) 50%, var(--bg3) 75%);
    background-size: 200%;
    animation: sk 1.2s infinite;
    border-radius: 4px; height: 14px;
}
@keyframes sk { 0% { background-position: 200%; } 100% { background-position: -200%; } }

@keyframes fi {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .sb         { position: fixed; left: 0; top: 0; height: 100vh; z-index: 100; transform: translateX(-100%); }
    .sb.open    { transform: translateX(0); }
    .mb         { display: flex; }
    .stats      { grid-template-columns: 1fr 1fr; }
    .htiles     { grid-template-columns: repeat(2, 1fr); }
    .msg-layout { grid-template-columns: 1fr; }
    .msg-sb     { display: none; }
}
@media (max-width: 480px) {
    .stats  { grid-template-columns: 1fr; }
    .htiles { grid-template-columns: 1fr; }
}
