/* ----- the admin panel, laid out like CodyChat's: header, menu on the left (260px), the page on the right ----- */
.page-admin { background: #111; }
.admin-head { position: sticky; top: 0; z-index: 70; }
#open-admin-menu { display: none; font-size: 22px; }
.admin-wrap { display: flex; height: calc(100vh - 50px); overflow: hidden; }
.admin-menu { flex: none; width: 260px; overflow-y: auto; padding: 0 0 40px 0; background: #151515; }
.am-item { display: flex; align-items: center; width: 100%; padding: 15px; border: 0; background: none; color: var(--text); text-align: left; font-size: var(--fs-md); cursor: pointer; text-decoration: none; }
.am-item:hover { background: rgba(255,255,255,.05); text-decoration: none; }
.am-item.is-on, .am-sub-item.is-on { color: #03add8; }
.am-icon { flex: none; width: 26px; text-align: center; font-size: 16px; }
.am-text { flex: 1; min-width: 0; padding: 0 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-chev { flex: none; width: 24px; text-align: center; font-size: 12px; }
.am-sub { background: rgba(0,0,0,.1); }
.am-sub[hidden] { display: none; }
.am-sub-item { display: block; padding: 15px 30px; color: var(--text); text-decoration: none; }
.am-sub-item:hover { background: rgba(255,255,255,.03); text-decoration: none; }
.admin-content { flex: 1; min-width: 0; overflow-y: auto; padding: 10px; }
.admin-content.is-loading { opacity: .55; transition: opacity .15s; }
.admin-shade { display: none; }
.page-element { margin-bottom: 10px; padding: 20px; border-radius: 2px; background: #191919; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.page-top { padding: 15px 20px; }
.page-top-title { font-weight: 700; }
.page-top-title i { margin-right: 4px; font-size: 12px; }
.label { margin: 0 0 8px 0; font-size: 13px; font-weight: 700; }
.setting-element { padding: 10px 0; }
.form-control { padding-top: 15px; }
.vpad15 { padding: 15px 0; }
.clear { clear: both; }
.centered-element { text-align: center; padding: 10px 0; }
.empty-zone { margin: 0; padding: 18px 0; text-align: center; }
.tab-menu { margin-bottom: 5px; padding: 5px 10px; background: #191919; box-shadow: 0 1px 3px rgba(0,0,0,.4); font-size: 0; }
.tab-menu ul { margin: 0; padding: 0; list-style: none; }
.tab-item { display: inline-block; margin: 5px; padding: 8px 15px; border-radius: 5px; font-size: 13px; font-weight: 700; cursor: pointer; }
.tab-item:hover { background: rgba(255,255,255,.03); }
.tab-item.is-on { background: rgba(255,255,255,.05); }
.tab-zone[hidden] { display: none; }
/* the dashboard boxes */
.sp-box { float: left; width: calc(50% - 10px); margin: 5px; overflow: hidden; border-radius: 5px; background: rgba(255,255,255,.05); }
.sp-content { display: table; table-layout: fixed; width: 100%; }
.sp-icon { display: table-cell; width: 70px; padding: 20px 0; background: #03add8; color: #fff; font-size: 30px; text-align: center; vertical-align: middle; }
.sp-info { display: table-cell; padding: 0 10px; vertical-align: middle; }
.sp-info p { margin: 0; }
.sp-title { font-size: 12px; }
.sp-count { font-size: 26px; font-weight: 700; }
/* search bar and the lists (members, actions, rooms, console) */
.admin-search { display: flex; overflow: hidden; border-radius: 3px; }
.admin-search .input { flex: 1; min-width: 0; border-radius: 3px 0 0 3px; }
.admin-search-btn { flex: none; width: 50px; border: 0; background: var(--bg-card); color: var(--text); font-size: 16px; cursor: pointer; }
.admin-search-btn:hover { background: var(--bg-hover); }
.sub-item { display: flex; align-items: center; gap: 4px; padding: 12px 10px; border-bottom: 1px solid rgba(255,255,255,.03); }
.sub-item:hover { background: rgba(255,255,255,.04); }
.sub-item:last-child { border-bottom: 0; }
.sub-item[hidden] { display: none; }
.sub-avatar { position: relative; flex: none; width: 40px; height: 40px; }
.sub-avatar > img:first-child { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: block; }
.sub-dot { position: absolute; right: -2px; bottom: -2px; width: 14px; height: 14px; border: 2px solid #191919; border-radius: 50%; background: #191919; }
.sub-name { flex: 1; min-width: 0; padding: 0 10px; border: 0; background: none; color: var(--text); text-align: left; font-weight: 700; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-name .username { margin: 0; }
.sub-desc { margin: 0; font-size: 12px; font-weight: 400; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-option { flex: none; width: 40px; height: 40px; border: 0; background: none; color: var(--text); font-size: 16px; text-align: center; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.sub-option:hover { color: #03add8; }
.sub-option.is-on { color: #6fcf4a; }
.sub-room { flex: none; width: 40px; }
.sub-room img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; display: block; }
.sub-text { flex: 1; min-width: 0; padding: 0 10px; }
.sub-text p { margin: 0; }
.bellips { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.console-item { align-items: flex-start; }
.console-main { flex: 1; min-width: 0; padding: 0 3px; }
.console-text { font-size: 13px; overflow-wrap: anywhere; }
.console-reason { margin-top: 3px; font-size: 11px; color: #03add8; overflow-wrap: anywhere; }
.console-date { flex: none; width: 90px; font-size: 11px; color: var(--text-muted); text-align: center; }
.room-extra { margin: 14px 0 0 0; }
.room-form .field { margin-bottom: 10px; }
.room-form label:not(.check) { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; color: var(--text-muted); }
.room-form .check { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
@media (max-width: 900px) {
  #open-admin-menu { display: block; }
  .admin-menu { position: fixed; z-index: 80; top: 50px; left: 0; bottom: 0; transform: translateX(-100%); transition: transform .18s ease; box-shadow: 0 0 20px rgba(0,0,0,.6); }
  .admin-menu.is-open { transform: none; }
  .admin-shade { position: fixed; z-index: 75; inset: 50px 0 0 0; background: rgba(0,0,0,.5); }
  .admin-shade:not([hidden]) { display: block; }
}
@media (max-width: 640px) {
  .sp-box { width: 98%; }
  .page-element { padding: 14px; }
}


/* ----- shared bits used by dialogs and tags ----- */
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { filter: brightness(1.1); }
.tag-warn { background: rgba(255,170,0,.18); color: #ffb938; }
.tag-bad { background: rgba(255,70,70,.18); color: #ff6b6b; }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.field-hint { display: block; margin-top: 4px; font-size: 12px; color: var(--text-muted); }
.mod-dialog .field { margin: 10px 0; }
.mod-dialog .field label { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; color: var(--text-muted); }
.mod-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px 0; }

/* ----- staff actions list, lock-out page, mute / warn ----- */
.actions-user { display: flex; align-items: center; gap: 10px; padding: 4px 4px 14px 4px; font-size: 17px; }
.action-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 8px; border: 0; border-radius: 5px; background: none; color: var(--text); font-weight: 600; text-align: left; cursor: pointer; }
.action-item:hover { background: var(--row-hover); }
.action-ico { flex: none; width: 28px; text-align: center; font-size: 17px; }
.tone-error { color: #ff6b6b; }
.tone-success { color: #6fcf4a; }
.tone-warn { color: #ffb938; }
.mod-text { height: auto; padding: 10px 14px; resize: vertical; min-height: 80px; font-family: inherit; }
.mod-buttons { display: flex; gap: 8px; margin-top: 14px; }
.mod-buttons .btn { flex: 1; }
.pf-notice { display: flex; align-items: center; gap: 8px; padding: 10px 15px; font-weight: 700; font-size: 14px; }
.pf-notice.is-bad { background: rgba(255,70,70,.18); color: #ff8a8a; }
.pf-notice.is-warn { background: rgba(255,170,0,.16); color: #ffb938; }
.out-page { max-width: 460px; }
.out-icon { width: 110px; height: 110px; margin-bottom: 8px; }
.out-timer { margin: 14px 0; font-size: 40px; font-weight: 800; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.out-reason { margin: 8px 0 18px 0; padding: 12px 14px; border-radius: 5px; background: rgba(255,255,255,.06); text-align: left; }
.out-reason p { margin: 4px 0 0 0; overflow-wrap: anywhere; }
.warn-box { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 10px 0 0 0; }
.warn-ico { width: 64px; height: 64px; }
.warn-title { margin: 0; font-weight: 800; font-size: 18px; }
.warn-text { margin: 0 0 12px 0; overflow-wrap: anywhere; }
.warn-box .btn { min-width: 140px; }
.input-table.is-muted, #chat-form.is-muted { opacity: .65; }
#chat-input:disabled { cursor: not-allowed; }

/* ----- profile alive: cover image, like pill; notification bell and menu ----- */
.pf-top { isolation: isolate; }
.pf-top::before { z-index: 1; }
.pf-top > * { z-index: 2; }
.pf-top > .pf-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: filter .2s; }
.pf-top.is-busy > .pf-cover-img { filter: brightness(.55); }
.pf-top > .pf-cover-spin { position: absolute; z-index: 3; opacity: 0; }
.pf-top.is-busy > .pf-cover-spin { opacity: 1; animation: cb-spin .8s linear infinite; }
.pill-like { border: 0; cursor: pointer; font: inherit; color: inherit; transition: background .15s, transform .1s; }
.pill-like:hover { background: rgba(255,255,255,.18); }
.pill-like:active { transform: scale(.94); }
.bell { position: relative; }
.bell-dot { position: absolute; top: 6px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 100px; background: #ff4d4d; color: #fff; font-size: 10px; font-weight: 800; line-height: 16px; text-align: center; }
.notify-menu { width: 340px; max-width: calc(100vw - 20px); padding: 0; }
.notify-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; font-weight: 700; border-bottom: 1px solid var(--row-line); }
.notify-clear { border: 0; background: none; color: var(--accent); font-weight: 600; cursor: pointer; }
.notify-list { max-height: min(60vh, 460px); overflow-y: auto; }
.notify-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--row-line); }
.notify-item:last-child { border-bottom: 0; }
.notify-item.is-click { cursor: pointer; }
.notify-item.is-click:hover { background: var(--row-hover); }
.notify-av { position: relative; flex: none; width: 42px; height: 42px; }
.notify-av > img:first-child { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.notify-ico { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; }
.notify-body { flex: 1; min-width: 0; }
.notify-body p { margin: 0; overflow-wrap: anywhere; }
.notify-name { font-weight: 700; }
.notify-text { color: var(--text-muted); font-size: 13px; }
.notify-time { color: var(--text-muted); font-size: 11px; margin-top: 2px !important; }
.notify-new { flex: none; width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: var(--accent); }
.notify-empty { margin: 0; padding: 30px 16px; text-align: center; color: var(--text-muted); }

/* ----- reports ----- */
.report-review .modal-title { margin-bottom: 4px; }
.report-who { display: flex; align-items: center; gap: 10px; width: 100%; margin: 12px 0 8px 0; padding: 6px; border: 0; border-radius: 5px; background: none; color: var(--text); text-align: left; cursor: pointer; }
.report-who:hover { background: var(--row-hover); }
.report-who > img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.report-names { display: flex; flex-direction: column; min-width: 0; }
.report-name { display: flex; align-items: center; gap: 4px; font-weight: 700; }
.report-rank { width: 16px; height: 16px; }
.report-text { margin: 4px 0 16px 0; padding: 12px 14px; border-radius: 5px; background: rgba(255,255,255,.05); overflow-wrap: anywhere; white-space: pre-wrap; }
.report-dialog .modal-title i { margin-right: 4px; }


/* the back button in the admin header */
.head-back { display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; }
.head-back:hover { text-decoration: none; }
.bpad15 { padding-bottom: 15px; }

/* main settings pictures, filter */
.asset-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.asset-box { flex: none; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: rgba(255,255,255,.06); }
.asset-logo { width: 220px; height: 90px; padding: 8px; }
.asset-logo img { max-width: 100%; max-height: 100%; }
.asset-fav { width: 72px; height: 72px; }
.asset-fav img { width: 48px; height: 48px; }
.asset-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.filter-buttons { display: flex; gap: 8px; }
.filter-list { margin-top: 14px; }
.filter-list .sub-name { cursor: default; }

/* edit profile list, switches, chat bar buttons, emoticons, pictures, room icon */
.pe-opts { padding: 8px 20px 20px 20px; }
.pe-opt { display: flex; align-items: center; gap: 4px; width: 100%; padding: 15px 8px; border: 0; border-bottom: 1px solid rgba(255,255,255,.04); background: none; color: var(--text); text-align: left; font-size: var(--fs-md); cursor: pointer; }
.pe-opt:hover { background: var(--row-hover); }
.pe-opt:last-child { border-bottom: 0; }
.pe-opt i { width: 34px; text-align: center; color: var(--text-muted); }
.pad-note { padding: 14px 8px; margin: 0; }
.sw-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.04); cursor: pointer; }
.sw-text { display: flex; flex-direction: column; min-width: 0; }
.sw { flex: none; width: 42px; height: 24px; appearance: none; -webkit-appearance: none; border-radius: 100px; background: #444; position: relative; cursor: pointer; transition: background .15s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.sw:checked { background: #03add8; }
.sw:checked::after { transform: translateX(18px); }
.input-wrap { position: relative; }
.in-btn { flex: none; width: 38px; height: 38px; margin-right: 4px; border: 0; border-radius: 50%; background: none; color: var(--text-muted); font-size: 19px; cursor: pointer; }
.in-btn:hover { background: var(--row-hover); color: var(--text); }
.in-btn[hidden] { display: none; }
.emo-panel { position: absolute; left: 5px; bottom: 56px; z-index: 40; width: min(360px, calc(100vw - 20px)); border-radius: 8px; background: var(--bg-menu); box-shadow: var(--shadow); overflow: hidden; }
.emo-panel[hidden] { display: none; }
.emo-tabs { display: flex; border-bottom: 1px solid rgba(255,255,255,.06); }
.emo-tab { flex: 1; padding: 8px; border: 0; background: none; cursor: pointer; }
.emo-tab.on { background: rgba(255,255,255,.07); }
.emo-tab img { width: 24px; height: 24px; }
.emo-grid { display: flex; flex-wrap: wrap; gap: 2px; max-height: 220px; overflow-y: auto; padding: 8px; }
.emo-item { width: 40px; height: 40px; padding: 4px; border: 0; border-radius: 6px; background: none; cursor: pointer; }
.emo-item.is-sticker { width: 64px; height: 64px; }
.emo-item:hover { background: rgba(255,255,255,.08); }
.emo-item img { width: 100%; height: 100%; object-fit: contain; }
.emo { width: 22px; height: 22px; vertical-align: middle; margin: 0 1px; }
.emo-sticker { width: 64px; height: 64px; }
.cl-pic { display: block; margin: 4px 0 2px 0; padding: 0; border: 0; border-radius: 8px; background: none; cursor: zoom-in; }
.cl-pic img { display: block; max-width: min(260px, 100%); max-height: 240px; border-radius: 8px; }
.pic-view { text-align: center; padding: 10px; }
.pic-view img { max-width: 100%; max-height: 80vh; border-radius: 6px; }
.ricon-wrap { position: relative; width: 96px; height: 96px; }
.ricon { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; display: block; background: #222; }
.ricon-tools { position: absolute; inset: auto 4px 4px auto; display: flex; gap: 4px; }
