
:root{--bg:#f5f7fb;--panel:#fff;--nav:#0b1220;--nav2:#111827;--blue:#2563eb;--blue2:#1d4ed8;--text:#0f172a;--muted:#64748b;--line:#e2e8f0;--green:#059669;--orange:#d97706;--red:#dc2626;--purple:#7c3aed;--shadow:0 10px 30px rgba(15,23,42,.06)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:"Segoe UI","Noto Sans Thai",Tahoma,sans-serif;background:var(--bg);color:var(--text)}button,input,select,textarea{font:inherit}button{cursor:pointer}.hidden{display:none!important}
.app{display:grid;grid-template-columns:260px 1fr;min-height:100vh}.sidebar{background:linear-gradient(180deg,var(--nav),#111827);color:#fff;position:sticky;top:0;height:100vh;padding:20px 14px;overflow:auto}.brand{display:flex;align-items:center;gap:10px;padding:8px 10px 22px}.brand-mark{width:38px;height:38px;border-radius:11px;background:#2563eb;display:grid;place-items:center;font-weight:900;font-size:19px}.brand b{display:block}.brand small{color:#94a3b8}.nav-title{font-size:10px;letter-spacing:.12em;color:#64748b;font-weight:900;padding:15px 10px 7px}.nav button{width:100%;border:0;background:transparent;color:#cbd5e1;text-align:left;padding:10px 11px;border-radius:9px;margin:2px 0;font-weight:700;font-size:13px}.nav button:hover,.nav button.active{background:#1e293b;color:#fff}.nav button span{display:inline-block;width:24px}.side-user{border-top:1px solid #1e293b;margin-top:14px;padding:14px 10px}.side-user b{font-size:13px}.side-user small{display:block;color:#94a3b8;margin-top:3px}.logout{margin-top:10px;width:100%;padding:9px;border:1px solid #334155;background:transparent;color:#fecaca;border-radius:8px;font-weight:800}
.main{min-width:0}.topbar{height:70px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:10}.crumb{font-size:13px;color:var(--muted)}.mobile-menu{display:none;border:1px solid var(--line);background:#fff;border-radius:8px;padding:8px}.content{max-width:1250px;margin:auto;padding:28px}.page-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:22px}.eyebrow{font-size:10px;color:var(--blue);letter-spacing:.13em;font-weight:900}.page-head h1{margin:5px 0 5px;font-size:28px}.page-head p{margin:0;color:var(--muted);font-size:13px}.grid{display:grid;grid-template-columns:repeat(12,1fr);gap:16px}.card{grid-column:span 12;background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:20px;box-shadow:var(--shadow)}.span3{grid-column:span 3}.span4{grid-column:span 4}.span6{grid-column:span 6}.span8{grid-column:span 8}.span9{grid-column:span 9}.span12{grid-column:span 12}.card h2,.card h3{margin:0 0 6px}.muted{color:var(--muted);font-size:12px}.stat{display:flex;gap:13px;align-items:center}.stat-icon{width:44px;height:44px;border-radius:12px;background:#eff6ff;display:grid;place-items:center;font-size:20px}.stat strong{font-size:23px;display:block}.stat small{color:var(--muted)}
.btn{border:0;border-radius:9px;padding:9px 13px;font-size:12px;font-weight:900}.primary{background:var(--blue);color:#fff}.dark{background:var(--nav);color:#fff}.soft{background:#eff6ff;color:#1d4ed8}.green{background:#ecfdf5;color:#047857}.orange{background:#fff7ed;color:#c2410c}.red{background:#fef2f2;color:#b91c1c}.ghost{background:#f8fafc;color:#334155;border:1px solid var(--line)}.actions{display:flex;gap:8px;flex-wrap:wrap}.btn:hover{filter:brightness(.97);transform:translateY(-1px)}
.badge{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;font-size:10px;font-weight:900}.b-blue{background:#eff6ff;color:#1d4ed8}.b-green{background:#ecfdf5;color:#047857}.b-orange{background:#fff7ed;color:#c2410c}.b-red{background:#fef2f2;color:#b91c1c}.b-purple{background:#f5f3ff;color:#6d28d9}.b-gray{background:#f1f5f9;color:#475569}
.field{margin-bottom:13px}.field label{display:block;font-size:11px;font-weight:900;margin-bottom:6px}.input,.select,.textarea{width:100%;border:1px solid #cbd5e1;border-radius:9px;padding:10px 11px;background:#fff;outline:0}.textarea{min-height:100px;resize:vertical}.input:focus,.select:focus,.textarea:focus{border-color:#60a5fa;box-shadow:0 0 0 4px #2563eb12}.row2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.avatar{width:52px;height:52px;border-radius:14px;background:#dbeafe;color:#1d4ed8;display:grid;place-items:center;font-size:21px;font-weight:900;overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover}.profile{display:flex;gap:15px;align-items:center}.profile h2{margin:0}.profile p{margin:4px 0 0;color:var(--muted);font-size:12px}.progress{height:8px;background:#e2e8f0;border-radius:99px;overflow:hidden}.progress i{display:block;height:100%;background:#2563eb;border-radius:99px}.kv{display:grid;grid-template-columns:150px 1fr;border-bottom:1px solid #f1f5f9;padding:9px 0;font-size:12px}.kv:last-child{border:0}.kv b{color:#475569}
.post{border:1px solid var(--line);border-radius:13px;padding:15px;margin-bottom:10px}.post:last-child{margin-bottom:0}.post h3{font-size:15px;margin:8px 0 4px}.post p{font-size:12px;line-height:1.7;color:#475569;white-space:pre-wrap}.post img{max-width:100%;max-height:270px;border-radius:10px;margin-top:10px;display:block}.post-meta{font-size:10px;color:#94a3b8}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{padding:11px 10px;border-bottom:1px solid #eef2f7;text-align:left;font-size:12px;white-space:nowrap}th{font-size:10px;color:#64748b;background:#f8fafc}
.id-card{border:1px solid #cbd5e1;border-radius:16px;padding:20px;background:linear-gradient(145deg,#fff,#eff6ff);position:relative;overflow:hidden}.id-card:after{content:"CITY ID";position:absolute;right:-20px;bottom:-25px;font-size:70px;font-weight:900;color:#2563eb0d}.id-top{display:flex;gap:15px}.license{border:1px solid #cbd5e1;border-radius:14px;padding:15px;background:#fff}
.news{border-left:4px solid #2563eb}.dispatch{border-left:4px solid #dc2626}.case{border-left:4px solid #7c3aed}.dept{border-left:4px solid #059669}
.chat-layout{display:grid;grid-template-columns:240px 1fr;min-height:520px;border:1px solid var(--line);border-radius:14px;overflow:hidden}.chat-users{background:#f8fafc;border-right:1px solid var(--line);padding:10px}.chat-user{padding:10px;border-radius:9px;cursor:pointer}.chat-user.active,.chat-user:hover{background:#eaf2ff}.chat-user b{font-size:12px}.chat-user small{display:block;color:var(--muted);font-size:10px}.chat-window{display:flex;flex-direction:column;min-width:0}.messages{flex:1;padding:16px;overflow:auto;background:#fbfdff}.msg{display:flex;margin-bottom:12px}.msg.me{justify-content:flex-end}.bubble{max-width:72%;padding:9px 12px;border-radius:12px;background:#fff;border:1px solid var(--line);font-size:12px;line-height:1.6}.msg.me .bubble{background:#2563eb;color:#fff;border-color:#2563eb}.msg-time{font-size:9px;opacity:.65;margin-top:3px}.composer{display:flex;gap:8px;padding:12px;border-top:1px solid var(--line)}.composer input{flex:1}
.timeline{border-left:2px solid #dbeafe;padding-left:18px}.timeline-item{position:relative;margin-bottom:18px}.timeline-item:before{content:"";width:9px;height:9px;border-radius:50%;background:#2563eb;position:absolute;left:-24px;top:5px}.timeline-item b{font-size:12px}.timeline-item p{font-size:11px;color:var(--muted);margin:4px 0}
.modal-bg{position:fixed;inset:0;background:#0f172a88;display:none;align-items:center;justify-content:center;padding:18px;z-index:100}.modal-bg.show{display:flex}.modal{background:#fff;border-radius:18px;width:min(650px,100%);max-height:92vh;overflow:auto;padding:22px}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.close{width:34px;height:34px;border:0;background:#f1f5f9;border-radius:8px}.empty{text-align:center;padding:40px;color:#94a3b8;font-size:12px}.footer{text-align:center;color:#94a3b8;font-size:10px;padding:25px}
@media(max-width:1050px){.app{grid-template-columns:220px 1fr}.span3{grid-column:span 6}.span4{grid-column:span 6}.span8,.span9{grid-column:span 12}}
@media(max-width:760px){.app{display:block}.sidebar{position:fixed;left:-280px;top:0;width:260px;z-index:50;transition:.2s}.sidebar.open{left:0}.main{width:100%}.mobile-menu{display:block}.topbar{padding:0 14px}.content{padding:20px 14px}.span3,.span4,.span6{grid-column:span 12}.row2{grid-template-columns:1fr}.chat-layout{grid-template-columns:1fr}.chat-users{display:flex;overflow:auto;border-right:0;border-bottom:1px solid var(--line)}.chat-user{min-width:150px}.page-head{flex-direction:column}}

/* --- Uploaded logo support (added; doesn't change existing rules) --- */
.js-logo-slot{overflow:hidden}
.js-logo-slot img{width:100%;height:100%;object-fit:cover;display:block}

/* --- FriendHub RP additions: admin settings, server settings, city ID --- */
.site-setting-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.color-field{display:flex;align-items:center;gap:10px}.color-field input[type=color]{width:52px;height:38px;padding:2px;border:1px solid #cbd5e1;border-radius:9px;background:#fff}
.color-preview{width:38px;height:38px;border-radius:10px;border:1px solid #cbd5e1;box-shadow:inset 0 0 0 1px #ffffff66}
.server-status{display:flex;align-items:center;gap:8px}.server-dot{width:9px;height:9px;border-radius:50%;background:#10b981;box-shadow:0 0 0 4px #10b98118}
.image-preview{max-width:220px;max-height:130px;border-radius:12px;border:1px solid var(--line);object-fit:cover;display:block;margin-top:8px}
.city-id-card{position:relative;overflow:hidden;border-radius:18px;padding:20px;color:#111827;background:linear-gradient(135deg,#f8fbff,#e7eef8 52%,#dce8f7);border:1px solid #b8c7d9;box-shadow:0 18px 45px rgba(15,23,42,.12)}
.city-id-card:before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(135deg,transparent 0 12px,#ffffff44 13px 14px);pointer-events:none}
.city-id-head{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:12px;border-bottom:1px solid #b7c5d5}
.city-id-brand{font-weight:900;letter-spacing:.06em}.city-id-sub{font-size:10px;color:#64748b;margin-top:3px}
.city-id-body{position:relative;display:grid;grid-template-columns:112px 1fr;gap:16px;padding:16px 0}
.city-id-photo{width:112px;height:138px;border-radius:10px;background:#fff;border:2px solid #a9b9ca;overflow:hidden;display:grid;place-items:center;color:#94a3b8;font-size:34px}
.city-id-photo img{width:100%;height:100%;object-fit:cover}
.city-id-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px 14px}.city-id-field b{display:block;font-size:9px;color:#64748b;text-transform:uppercase;letter-spacing:.06em}.city-id-field span{display:block;font-size:12px;font-weight:800;margin-top:2px}
.city-id-chip{position:absolute;right:12px;bottom:12px;width:34px;height:26px;border-radius:6px;background:linear-gradient(135deg,#d9b76b,#f5e2a5);border:1px solid #b99b55;opacity:.9}
.city-id-watermark{position:absolute;right:18px;top:65px;font-size:42px;font-weight:1000;color:#2563eb14;transform:rotate(-16deg);pointer-events:none}
.city-id-footer{position:relative;display:flex;align-items:center;justify-content:space-between;border-top:1px solid #b7c5d5;padding-top:10px;font-size:10px;color:#475569}
.dispatch-image,.appointment-image{max-width:100%;max-height:280px;border-radius:12px;margin-top:10px;border:1px solid var(--line);object-fit:cover}
@media(max-width:760px){.site-setting-grid{grid-template-columns:1fr}.city-id-body{grid-template-columns:90px 1fr}.city-id-photo{width:90px;height:112px}.city-id-fields{grid-template-columns:1fr}}

/* FriendHub RP additions */
.topbar-actions{display:flex;align-items:center;gap:10px}.top-icon-btn{position:relative;border:0;background:#fff;border:1px solid #e2e8f0;width:40px;height:40px;border-radius:12px;cursor:pointer;font-size:17px}.notify-badge{position:absolute;right:-5px;top:-5px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#ef4444;color:#fff;font-size:10px;font-weight:800;display:grid;place-items:center;border:2px solid #fff}.notify-badge.hidden{display:none}.social-connect-box{text-align:center;padding:6px 0}.brand-mark.js-logo-slot{overflow:hidden}.brand-mark.js-logo-slot img{width:100%;height:100%;object-fit:cover;border-radius:inherit}.chat-user{position:relative}
/* === Game Monitor / Player Intelligence === */
.game-monitor-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:16px}.game-stats{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin:14px 0}.game-stats>div{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:14px}.game-stats b{display:block;font-size:22px}.game-stats small{color:#64748b}.game-grid{display:grid;grid-template-columns:1.35fr .9fr;gap:16px}.game-event-scroll,.game-player-scroll{max-height:620px;overflow:auto;padding-right:3px;margin-top:12px}.game-event-card{display:flex;gap:11px;padding:12px;border:1px solid #e2e8f0;border-radius:13px;margin-bottom:8px;background:#fff}.game-event-icon{width:34px;height:34px;border-radius:10px;background:#eff6ff;display:grid;place-items:center;flex:0 0 34px}.game-event-main{min-width:0;flex:1}.game-event-top{display:flex;justify-content:space-between;gap:8px}.game-event-top span{font-size:11px;color:#64748b;white-space:nowrap}.game-event-detail{margin-top:4px;white-space:pre-wrap;line-height:1.55}.game-event-meta{margin-top:6px;font-size:12px;color:#64748b}.game-player-card,.game-account{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #e2e8f0;border-radius:13px;padding:12px;margin-bottom:8px;background:#fff}.game-account-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:12px}.game-account{display:block}.game-linked{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.game-chip{font-size:11px;border-radius:999px;padding:5px 8px;background:#f1f5f9}.game-chip.discord{background:#eef2ff}.game-chip.xbox{background:#ecfdf5}.game-profile-head{display:flex;gap:14px;align-items:center}.game-avatar{width:56px;height:56px;border-radius:16px;background:#eff6ff;display:grid;place-items:center;font-size:27px}.game-profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.game-history{margin-top:16px}.game-history-head{display:flex;justify-content:space-between}.game-history-scroll{max-height:420px;overflow:auto;margin-top:8px}.game-event-row{display:flex;gap:10px;padding:10px 0;border-bottom:1px solid #eef2f7}.game-event-row small{color:#64748b}.game-event-row .game-event-icon{width:30px;height:30px;flex-basis:30px}.game-monitor-head .actions{flex-wrap:wrap}@media(max-width:1000px){.game-stats{grid-template-columns:repeat(3,1fr)}.game-grid{grid-template-columns:1fr}.game-account-grid{grid-template-columns:1fr}}@media(max-width:650px){.game-monitor-head{display:block}.game-stats{grid-template-columns:repeat(2,1fr)}.game-player-card{display:block}.game-player-card .actions{margin-top:8px}.game-account-grid{grid-template-columns:1fr}}

/* =========================================================
   FriendHub RP — Professional Game Monitor UI
   Additive styling only; existing layout/components remain intact.
   ========================================================= */
.game-monitor-panel{max-width:100%;color:#0f172a}
.game-monitor-head{padding:4px 2px 18px;border-bottom:1px solid #e8edf4;margin-bottom:18px}
.game-monitor-head h2{font-size:24px;letter-spacing:-.02em;margin:5px 0 7px;font-weight:900}
.game-monitor-head p{margin:0;color:#64748b;font-size:13px;line-height:1.65}
.game-monitor-head .eyebrow{font-size:10px;letter-spacing:.14em;font-weight:900;color:#2563eb}
.game-monitor-head .actions{padding-top:4px}
.game-stats{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:0 0 18px}
.game-stats>div{position:relative;background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:15px 16px;box-shadow:0 5px 18px rgba(15,23,42,.035);min-height:78px}
.game-stats>div:before{content:"";position:absolute;left:0;top:14px;bottom:14px;width:3px;border-radius:3px;background:#2563eb}
.game-stats b{font-size:23px;line-height:1.1;font-weight:900;color:#0f172a}
.game-stats small{display:block;margin-top:6px;color:#64748b;font-size:10px;font-weight:700}
.game-grid{grid-template-columns:minmax(0,1.45fr) minmax(330px,.85fr);gap:18px}
.game-grid>.card,.game-account-grid+.card{box-shadow:0 8px 26px rgba(15,23,42,.045)}
.game-grid .card h3,.game-account-grid .card h3{font-size:15px;font-weight:900;margin-bottom:12px}
.game-event-scroll,.game-player-scroll{max-height:560px;padding-right:5px;margin-top:14px;scrollbar-width:thin}
.game-event-card{gap:13px;padding:13px 14px;border:1px solid #e5eaf1;border-radius:13px;margin-bottom:9px;background:#fff;transition:border-color .15s,box-shadow .15s,transform .15s}
.game-event-card:hover{border-color:#cbd8ea;box-shadow:0 6px 16px rgba(15,23,42,.05);transform:translateY(-1px)}
.game-event-icon{width:38px;height:38px;border-radius:11px;background:#f1f5f9;border:1px solid #e5eaf1;font-size:17px}
.game-event-top{align-items:center}
.game-event-top b{font-size:12px;font-weight:900}
.game-event-top span{font-size:10px;color:#94a3b8}
.game-event-detail{font-size:12px;color:#334155;line-height:1.6}
.game-event-meta{font-size:10px;color:#64748b;margin-top:7px}
.game-player-card{padding:13px 14px;border-radius:13px;margin-bottom:9px;border:1px solid #e5eaf1;box-shadow:none}
.game-player-card>b,.game-player-card b{font-size:12px}
.game-player-card .muted{font-size:10px;margin-top:4px}
.game-account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.game-account{border:1px solid #e5eaf1;border-radius:13px;padding:14px;background:#fff;box-shadow:none}
.game-account>div:first-child b{font-size:12px}
.game-account .muted{font-size:10px;margin-top:4px}
.game-chip{border:1px solid #e5eaf1;background:#f8fafc;font-size:10px;padding:5px 8px}
.game-chip.discord{background:#f5f3ff;border-color:#ddd6fe;color:#5b21b6}
.game-chip.xbox{background:#f0fdf4;border-color:#bbf7d0;color:#166534}
.game-profile-head{padding-bottom:14px;border-bottom:1px solid #eef2f7}
.game-avatar{width:58px;height:58px;border:1px solid #dbe4ef;background:#f8fafc}
.game-profile-grid{gap:12px}
.game-history{border-top:1px solid #eef2f7;padding-top:14px}
.game-history-head h3{font-size:14px}
.game-history-head span{font-size:10px;color:#64748b;background:#f8fafc;padding:5px 8px;border-radius:999px}
.game-event-row{padding:11px 2px}
@media(max-width:1100px){.game-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.game-grid{grid-template-columns:1fr}}
@media(max-width:700px){.game-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.game-account-grid{grid-template-columns:1fr}.game-monitor-head h2{font-size:20px}}

/* Identity / Login model */
.side-user b{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.side-user small{display:block}
.side-user small::before{content:'ยศ: ';opacity:.7}
code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}

/* ===== FriendHub Professional UI Refinement ===== */
.fh-dialog{position:fixed;inset:0;display:none;align-items:center;justify-content:center;padding:20px;background:rgba(15,23,42,.46);backdrop-filter:blur(6px);z-index:9999}.fh-dialog.show{display:flex}.fh-dialog-card{width:min(470px,calc(100vw - 36px));background:#fff;border:1px solid #dbe3ee;border-radius:20px;padding:22px;box-shadow:0 24px 70px rgba(15,23,42,.2);display:grid;grid-template-columns:48px 1fr;gap:14px;align-items:start}.fh-dialog-icon{width:44px;height:44px;border-radius:14px;background:#eff6ff;color:#2563eb;display:grid;place-items:center;font-size:21px;font-weight:900;border:1px solid #dbeafe}.fh-dialog-content h3{margin:2px 0 5px;font-size:16px}.fh-dialog-content p{margin:0;color:#64748b;font-size:13px;line-height:1.65;white-space:pre-wrap}.fh-dialog-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px;margin-top:8px}.fh-dialog-actions .btn{min-width:90px}
.modal-bg{background:rgba(15,23,42,.46);backdrop-filter:blur(6px)}.modal{border:1px solid #dbe3ee;box-shadow:0 24px 70px rgba(15,23,42,.18)}.modal-head{padding-bottom:12px;border-bottom:1px solid #eef2f7}.close{border:1px solid #e2e8f0;background:#f8fafc;color:#475569;font-size:20px}
.id-card{border:1px solid #b9c8d9;border-radius:20px;padding:0;background:linear-gradient(135deg,#f9fbfe,#eaf1f8 55%,#dfe9f4);box-shadow:0 18px 45px rgba(15,23,42,.12)}.id-card:before{content:"";position:absolute;inset:0;background:linear-gradient(120deg,transparent 0 35%,rgba(255,255,255,.5) 50%,transparent 65%);pointer-events:none}.id-card:after{content:"FRIENDHUB";right:-8px;bottom:-18px;font-size:64px;color:#1d4ed80d;letter-spacing:.04em}.id-top{position:relative;padding:20px;border-bottom:1px solid #b9c8d9;align-items:center}.id-top .avatar{width:96px;height:116px;border-radius:12px;background:#fff;border:2px solid #b9c8d9;box-shadow:0 5px 14px rgba(15,23,42,.08)}.id-top h2{font-size:22px;letter-spacing:-.02em}.id-card>.kv,.id-card>div[style*="margin-top"]{position:relative;margin:0!important;padding:14px 20px}.id-card .kv{grid-template-columns:140px 1fr;border-bottom:1px solid #d8e1eb}.id-card .kv b{color:#64748b}.id-card .badge{letter-spacing:.04em}.license{box-shadow:0 8px 20px rgba(15,23,42,.04)}
.messages{background:#f4f7fb}.bubble{background:#fff;box-shadow:0 3px 10px rgba(15,23,42,.035)}.msg.me .bubble{background:#1d4ed8;color:#fff}.dm-link{display:inline-flex;align-items:center;gap:6px;margin:2px 0;padding:5px 9px;border-radius:8px;background:#eef4ff;color:#1d4ed8!important;border:1px solid #c9dbff;font-weight:800;text-decoration:none!important;word-break:break-all}.msg.me .dm-link{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.28);color:#fff!important}.dm-file{background:#f8fafc;border:1px solid #d9e2ec;border-radius:12px}.msg.me .dm-file{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.22)}.dm-image{box-shadow:0 6px 18px rgba(15,23,42,.08)}
/* Live account presence */
.presence-card{overflow:hidden}.presence-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.presence-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:14px 0 18px}.presence-stats>div{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:16px 18px}.presence-stats b{display:block;font-size:25px;line-height:1.1;color:#0f172a}.presence-stats span{display:block;margin-top:5px;color:#64748b;font-size:13px}.presence-stat-online{border-color:#bbf7d0!important;background:#f0fdf4!important}.presence-stat-afk{border-color:#fde68a!important;background:#fffbeb!important}.presence-stat-offline{border-color:#fecaca!important;background:#fef2f2!important}.presence-table td{vertical-align:middle}.presence-status{display:inline-flex;align-items:center;gap:8px;font-weight:700;font-size:13px;white-space:nowrap}.presence-status i{width:10px;height:10px;border-radius:50%;display:inline-block;box-shadow:0 0 0 4px rgba(148,163,184,.12)}.presence-online i{background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.13)}.presence-afk i{background:#eab308;box-shadow:0 0 0 4px rgba(234,179,8,.14)}.presence-offline i{background:#ef4444;box-shadow:0 0 0 4px rgba(239,68,68,.12)}.presence-online{color:#15803d}.presence-afk{color:#a16207}.presence-offline{color:#b91c1c}@media(max-width:800px){.presence-stats{grid-template-columns:repeat(2,1fr)}.presence-head{flex-direction:column}}
