:root {
  color-scheme: light;
  --ink: #172138;
  --muted: #6f7a90;
  --line: #e4e8f0;
  --paper: #ffffff;
  --canvas: #f4f6fa;
  --blue: #3f63ed;
  --blue-dark: #2948c7;
  --blue-soft: #edf1ff;
  --violet: #7757e8;
  --success: #168c62;
  --success-soft: #e8f7f1;
  --danger: #c33d50;
  --danger-soft: #fff0f2;
  --shadow: 0 28px 70px rgba(21, 34, 72, .14);
  --small-shadow: 0 10px 28px rgba(28, 43, 83, .09);
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { color: var(--ink); background: var(--canvas); }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.auth-body { min-height: 100vh; background: #f7f8fc; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(390px, .86fr) 1.14fr; }
.auth-aside {
  position: relative; overflow: hidden; padding: clamp(48px, 7vw, 110px);
  display: flex; flex-direction: column; justify-content: center; color: white;
  background:
    radial-gradient(circle at 16% 20%, rgba(137, 174, 255, .36), transparent 26%),
    radial-gradient(circle at 82% 78%, rgba(179, 127, 255, .32), transparent 32%),
    linear-gradient(145deg, #1b2c65 0%, #2f51b4 52%, #644bc3 100%);
}
.auth-aside::before, .auth-aside::after {
  content: ""; position: absolute; border: 1px solid rgba(255,255,255,.16); border-radius: 50%;
}
.auth-aside::before { width: 420px; height: 420px; right: -250px; top: -130px; }
.auth-aside::after { width: 260px; height: 260px; left: -145px; bottom: -110px; }
.auth-aside-register { background: radial-gradient(circle at 20% 15%, rgba(89, 196, 255, .24), transparent 28%), linear-gradient(150deg, #14264f, #334daf 52%, #6a43a8); }
.brand-mark, .mini-brand, .mobile-brand span, .admin-brand > span {
  display: grid; place-items: center; color: white; font-weight: 800;
  background: linear-gradient(145deg, #7ba2ff, #6e4be5); box-shadow: 0 12px 30px rgba(20, 35, 93, .28);
}
.brand-mark { width: 62px; height: 62px; border-radius: 19px; font-size: 26px; margin-bottom: 68px; border: 1px solid rgba(255,255,255,.35); }
.eyebrow { margin: 0 0 12px; color: var(--blue); font-size: 11px; line-height: 1.2; letter-spacing: .18em; font-weight: 800; }
.auth-aside .eyebrow { color: #bbd1ff; }
.auth-aside h1 { position: relative; margin: 0; font-size: clamp(38px, 4vw, 64px); line-height: 1.16; letter-spacing: -.04em; }
.aside-copy { position: relative; margin: 28px 0 42px; max-width: 520px; color: rgba(255,255,255,.73); line-height: 1.85; font-size: 16px; }
.trust-row { position: relative; display: flex; align-items: center; gap: 11px; color: rgba(255,255,255,.82); font-size: 13px; }
.trust-row span { width: 8px; height: 8px; border-radius: 50%; background: #6ff2c7; box-shadow: 0 0 0 6px rgba(111,242,199,.12); }
.auth-panel { display: grid; place-items: center; padding: 48px 7vw; }
.auth-card { width: min(440px, 100%); }
.auth-card-wide { width: min(560px, 100%); }
.auth-card h2 { margin: 0; font-size: 38px; letter-spacing: -.04em; }
.muted { color: var(--muted); line-height: 1.65; }
.auth-card > .muted { margin: 12px 0 28px; }
.mobile-brand { display: none; align-items: center; gap: 10px; margin-bottom: 38px; font-weight: 760; }
.mobile-brand span { width: 38px; height: 38px; border-radius: 12px; }
.stack-form { display: grid; gap: 18px; }
.stack-form label, .compact-form label, .blacklist-add label {
  display: grid; gap: 8px; color: #35405a; font-size: 13px; font-weight: 680;
}
input, textarea {
  width: 100%; border: 1px solid #dce1eb; color: var(--ink); background: white;
  border-radius: 12px; outline: none; transition: border-color .18s, box-shadow .18s, background .18s;
}
input { height: 48px; padding: 0 14px; }
textarea { resize: none; padding: 12px 14px; }
input:focus, textarea:focus { border-color: #7890ed; box-shadow: 0 0 0 4px rgba(63,99,237,.1); }
input::placeholder, textarea::placeholder { color: #a4acbc; }
.form-grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.primary-button, .secondary-button, .ghost-button, .admin-primary, .admin-secondary, .admin-danger, .admin-danger-outline, .admin-ghost {
  min-height: 46px; border-radius: 12px; padding: 0 18px; border: 1px solid transparent; font-weight: 750; transition: transform .15s, box-shadow .15s, background .15s;
}
.primary-button { color: white; background: linear-gradient(135deg, var(--blue), var(--violet)); box-shadow: 0 12px 24px rgba(63,99,237,.22); margin-top: 4px; }
.primary-button:hover, .admin-primary:hover { transform: translateY(-1px); box-shadow: 0 15px 30px rgba(63,99,237,.27); }
.secondary-button { color: var(--blue); background: var(--blue-soft); border-color: #d9e0ff; }
.secondary-button:hover { background: #e2e8ff; text-decoration: none; }
.ghost-button { color: #657087; background: transparent; border-color: var(--line); }
.auth-switch { margin: 27px 0 0; color: var(--muted); text-align: center; font-size: 14px; }
.flash-stack { display: grid; gap: 8px; margin: 0 0 18px; }
.flash { padding: 12px 14px; border-radius: 11px; font-size: 13px; line-height: 1.5; border: 1px solid transparent; }
.flash-error { color: #a52f42; background: var(--danger-soft); border-color: #ffd4da; }
.flash-success { color: #0c7650; background: var(--success-soft); border-color: #c7edde; }

/* Frontend chat */
.chat-body { height: 100vh; overflow: hidden; background: #edf1f7; }
.chat-app { display: grid; grid-template-columns: 324px 1fr; height: 100vh; background: white; }
.chat-sidebar { min-width: 0; display: flex; flex-direction: column; background: #f7f8fb; border-right: 1px solid var(--line); z-index: 5; }
.sidebar-brand { height: 82px; display: flex; align-items: center; gap: 12px; padding: 0 22px; border-bottom: 1px solid var(--line); }
.mini-brand { width: 40px; height: 40px; border-radius: 13px; }
.sidebar-brand strong { display: block; font-size: 17px; }
.sidebar-brand small { display: block; margin-top: 2px; color: #8a93a5; font-size: 10px; letter-spacing: .12em; }
.user-search { margin: 19px 17px 11px; position: relative; display: block; }
.user-search span { position: absolute; left: 13px; top: 9px; color: #8790a1; font-size: 21px; pointer-events: none; }
.user-search input { height: 42px; padding-left: 39px; border: 0; background: #e9edf4; border-radius: 11px; }
.user-search input:focus { background: white; box-shadow: 0 0 0 3px rgba(63,99,237,.12); }
.sidebar-caption { padding: 11px 21px 8px; display: flex; justify-content: space-between; color: #929bad; font-size: 11px; font-weight: 750; letter-spacing: .08em; }
.user-list { flex: 1; overflow-y: auto; padding: 3px 10px 15px; }
.user-item { width: 100%; border: 0; background: transparent; border-radius: 13px; padding: 11px 12px; display: flex; align-items: center; gap: 11px; text-align: left; color: var(--ink); }
.user-item:hover { background: #edf0f6; }
.user-item.active { background: white; box-shadow: var(--small-shadow); }
.avatar { flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #3f56a8; background: linear-gradient(145deg, #e1e8ff, #efe9ff); font-weight: 800; }
.user-item .avatar, .current-avatar, .peer-avatar { width: 42px; height: 42px; }
.user-item-copy { min-width: 0; flex: 1; }
.user-item-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.user-item-copy small { display: block; color: #949cac; margin-top: 3px; font-size: 11px; }
.empty-users { padding: 34px 18px; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.7; }
.sidebar-profile { height: 76px; padding: 0 17px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; background: white; }
.current-avatar { width: 38px; height: 38px; }
.profile-name { flex: 1; min-width: 0; }
.profile-name strong, .profile-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-name strong { font-size: 13px; }.profile-name small { margin-top: 2px; color: #18a16e; font-size: 10px; }
.icon-button, .mobile-sidebar-button, .dialog-close, .composer-tool { border: 0; background: transparent; color: #6f798b; }
.icon-button { width: 36px; height: 36px; border-radius: 10px; font-size: 17px; }
.icon-button:hover { background: #f0f2f7; }
.chat-main { position: relative; min-width: 0; display: flex; flex-direction: column; height: 100vh; background: white; }
.chat-topbar { flex: 0 0 82px; padding: 0 25px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.95); }
.conversation-person { min-width: 0; display: flex; align-items: center; gap: 12px; }
.conversation-person strong, .conversation-person small { display: block; }
.conversation-person strong { font-size: 15px; }.conversation-person small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.topbar-actions form { margin: 0; }
.compact { min-height: 38px; border-radius: 10px; padding: 0 14px; font-size: 12px; }
.mobile-sidebar-button { display: none; font-size: 20px; }
.chat-main > .flash-stack { position: absolute; z-index: 6; width: min(520px, calc(100% - 40px)); top: 92px; left: 50%; transform: translateX(-50%); }
.empty-conversation { flex: 1; display: grid; place-content: center; justify-items: center; text-align: center; padding: 30px; background: radial-gradient(circle at 50% 43%, #f5f7ff 0, white 37%); }
.empty-orbit { width: 94px; height: 94px; display: grid; place-items: center; border: 1px solid #dfe5fb; border-radius: 50%; box-shadow: inset 0 0 0 15px #f8f9ff; color: var(--blue); font-size: 27px; }
.empty-conversation h2 { margin: 24px 0 7px; font-size: 21px; }.empty-conversation p { color: var(--muted); font-size: 13px; }
.message-view { flex: 1; overflow-y: auto; padding: 28px max(24px, 6vw); background: linear-gradient(180deg, #fbfcfe, white 18%); }
.message-row { display: flex; margin: 7px 0; }
.message-row.mine { justify-content: flex-end; }
.message-bubble { max-width: min(620px, 74%); }
.message-content { padding: 11px 14px; border-radius: 6px 17px 17px 17px; background: #f0f2f7; color: #263047; font-size: 14px; line-height: 1.62; white-space: pre-wrap; overflow-wrap: anywhere; }
.mine .message-content { color: white; background: linear-gradient(135deg, #466aef, #7257df); border-radius: 17px 6px 17px 17px; box-shadow: 0 8px 18px rgba(68,94,220,.18); }
.message-meta { margin: 4px 5px 0; color: #a0a7b4; font-size: 9px; }.mine .message-meta { text-align: right; }
.message-image { display: block; max-width: min(380px, 100%); max-height: 380px; object-fit: contain; border-radius: 15px; background: #eef1f6; box-shadow: var(--small-shadow); }
.composer { position: relative; flex: 0 0 auto; min-height: 80px; padding: 15px 25px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: end; background: white; }
.composer-tool { width: 42px; height: 42px; border-radius: 12px; color: #5f6b82; background: #f0f2f7; font-size: 22px; }
.composer textarea { min-height: 42px; max-height: 130px; background: #f7f8fb; border-color: transparent; }
.send-button { height: 42px; border: 0; border-radius: 12px; padding: 0 20px; color: white; background: var(--blue); font-weight: 760; }
.send-button:disabled, .composer-tool:disabled { cursor: not-allowed; opacity: .5; }
.composer-status { position: absolute; left: 78px; bottom: 2px; color: var(--danger); font-size: 10px; }
.hidden { display: none !important; }
.security-dialog { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 22px; box-shadow: 0 30px 90px rgba(11,24,63,.32); overflow: auto; }
.security-dialog::backdrop { background: rgba(16,25,51,.48); backdrop-filter: blur(4px); }
.dialog-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 24px 26px 18px; background: white; border-bottom: 1px solid var(--line); }
.dialog-head h2 { margin: 0; font-size: 25px; }.dialog-head .eyebrow { margin-bottom: 7px; }
.dialog-close { width: 38px; height: 38px; border-radius: 50%; background: #f1f3f7; font-size: 24px; }
.security-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding: 20px; background: #f6f7fa; }
.settings-card { align-content: start; padding: 21px; border: 1px solid var(--line); background: white; border-radius: 16px; }
.settings-card h3 { margin: 0 0 5px; }.settings-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.mobile-backdrop { display: none; }

/* Generic status pages */
.status-page { min-height: 100vh; display: grid; place-items: center; padding: 25px; background: radial-gradient(circle at 50% 10%, #edf1ff, #f7f8fb 48%); }
.status-card { width: min(480px, 100%); padding: 48px; text-align: center; background: white; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.status-card h1 { margin: 18px 0 10px; font-size: 30px; }.status-card p { color: var(--muted); line-height: 1.7; }
.status-symbol { width: 70px; height: 70px; display: grid; place-items: center; margin: 0 auto; border-radius: 22px; color: var(--blue); background: var(--blue-soft); font-size: 32px; }
.status-symbol.warning { color: var(--danger); background: var(--danger-soft); }
.technical-time { font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; }
.status-code { color: #ccd2df; font-size: 62px; font-weight: 850; letter-spacing: -.06em; }
.link-button { display: inline-grid; place-items: center; margin-top: 12px; }

/* Admin */
.admin-body { min-height: 100vh; background: #f3f5f9; color: #1d2638; }
.admin-login-body { min-height: 100vh; background: #121a2d; }
.admin-login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 18% 10%, rgba(68,101,212,.34), transparent 35%), radial-gradient(circle at 88% 83%, rgba(108,71,175,.24), transparent 31%); }
.admin-login-card { width: min(420px, 100%); padding: 40px; border-radius: 20px; background: #fff; box-shadow: 0 32px 80px rgba(0,0,0,.34); }
.admin-lock { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 28px; color: white; background: #25345e; border-radius: 15px; font-size: 23px; }
.admin-login-card h1 { margin: 0; font-size: 32px; }.admin-login-card .muted { margin: 9px 0 22px; }
.admin-primary { color: white; background: #2d4fc7; box-shadow: 0 10px 20px rgba(45,79,199,.18); }
.admin-secondary { color: #2947ad; background: #eef1fc; border-color: #d8def5; }
.admin-danger { color: white; background: var(--danger); }
.admin-danger-outline { color: var(--danger); background: white; border-color: #f0bdc5; }
.admin-ghost { min-height: 36px; color: #58647b; background: white; border-color: #dce1ea; }
.admin-topbar { height: 72px; padding: 0 max(24px, calc((100vw - 1240px) / 2)); display: flex; align-items: center; justify-content: space-between; background: white; border-bottom: 1px solid #e2e6ed; }
.admin-brand { display: flex; align-items: center; gap: 11px; }.admin-brand > span { width: 38px; height: 38px; border-radius: 11px; }
.admin-brand strong, .admin-brand small { display: block; }.admin-brand small { margin-top: 2px; color: #929aab; font-size: 9px; letter-spacing: .12em; }
.admin-account { display: flex; align-items: center; gap: 16px; color: #687287; font-size: 12px; }.admin-account form { margin: 0; }
.admin-container { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 42px 0 70px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 25px; }.page-heading h1 { margin: 0; font-size: 34px; letter-spacing: -.035em; }.page-heading > p { color: var(--muted); font-size: 13px; }
.admin-flashes { margin-bottom: 18px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat-grid article { padding: 20px; border: 1px solid #e1e5ed; border-radius: 16px; background: white; box-shadow: 0 5px 15px rgba(34,48,84,.025); }
.stat-grid span, .stat-grid small { display: block; color: #7d879b; font-size: 11px; }.stat-grid strong { display: block; margin: 10px 0 7px; font-size: 30px; letter-spacing: -.04em; }
.admin-grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.admin-card { padding: 24px; border: 1px solid #e0e5ed; border-radius: 17px; background: white; box-shadow: 0 7px 24px rgba(32,43,76,.035); }
.admin-card h2 { margin: 0; font-size: 20px; }.card-heading { display: flex; align-items: start; justify-content: space-between; gap: 14px; }.card-heading .eyebrow { margin-bottom: 8px; }
.status-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; font-size: 10px; font-weight: 800; white-space: nowrap; }.status-pill.on { color: #137451; background: #e5f6ef; }.status-pill.off { color: #a13c4a; background: #fcecef; }
.lock-badge { padding: 5px 8px; border-radius: 6px; color: #6a57ad; background: #f0ecfc; font: 700 9px ui-monospace, monospace; }
.card-copy { margin: 13px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.inline-actions { display: flex; gap: 10px; }.inline-actions button { flex: 1; }
.compact-form { gap: 12px; }.compact-form input { height: 42px; }.grid-full { grid-column: 1 / -1; }
.user-management { margin-bottom: 18px; padding: 0; overflow: hidden; }.user-management > .card-heading { padding: 24px; }
.admin-search { display: flex; gap: 7px; }.admin-search input { width: 220px; height: 38px; }.admin-search button { padding: 0 14px; color: white; background: #344763; border: 0; border-radius: 10px; font-weight: 700; }
.table-wrap { overflow-x: auto; }table { width: 100%; border-collapse: collapse; font-size: 12px; }th { padding: 12px 16px; color: #8690a3; background: #f8f9fb; border-top: 1px solid #e8ebf0; border-bottom: 1px solid #e8ebf0; text-align: left; font-size: 10px; letter-spacing: .04em; white-space: nowrap; }td { padding: 14px 16px; border-bottom: 1px solid #eef0f4; vertical-align: middle; }tbody tr:last-child td { border-bottom: 0; }td strong, td small { display: block; }td small { margin-top: 4px; color: #939cad; font-size: 9px; }code { padding: 3px 6px; color: #33436a; background: #f1f3f7; border-radius: 5px; font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; white-space: nowrap; }.table-link { font-weight: 750; font-size: 11px; white-space: nowrap; }.empty-table { padding: 34px; text-align: center; color: var(--muted); }
.blacklist-card { margin-bottom: 18px; }.blacklist-add { display: grid; grid-template-columns: 1fr 1.5fr auto; gap: 10px; align-items: end; padding: 17px; background: #f7f8fa; border-radius: 13px; }.blacklist-add input { height: 42px; }.blacklist-add button { height: 42px; }
.blacklist-list { margin-top: 15px; border: 1px solid #e7e9ee; border-radius: 12px; overflow: hidden; }.blacklist-item { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; border-bottom: 1px solid #eceef2; }.blacklist-item:last-child { border-bottom: 0; }.blacklist-item > div span { display: block; margin-top: 6px; color: #8b94a4; font-size: 10px; }.blacklist-item form { margin: 0; }.admin-danger-text { border: 0; color: var(--danger); background: transparent; font-size: 11px; font-weight: 750; }.empty-list { padding: 24px; text-align: center; color: var(--muted); font-size: 12px; }
.back-link { color: #43516b; font-size: 12px; font-weight: 750; }.detail-container { padding-top: 28px; }.user-hero { display: flex; align-items: center; gap: 17px; padding: 26px; margin-bottom: 18px; color: white; border-radius: 18px; background: linear-gradient(135deg, #26375e, #3a5293); box-shadow: 0 14px 35px rgba(34,53,105,.18); }.large-avatar { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; color: #334878; background: #eef2ff; font-size: 24px; font-weight: 850; }.user-hero h1 { margin: 0 0 8px; }.user-hero .eyebrow { color: #b9c8f4; margin-bottom: 5px; }.user-hero .status-pill.on { background: rgba(91,233,179,.16); color: #83efc8; }.hero-metrics { margin-left: auto; display: flex; gap: 30px; }.hero-metrics div { text-align: center; }.hero-metrics strong, .hero-metrics span { display: block; }.hero-metrics strong { font-size: 24px; }.hero-metrics span { margin-top: 5px; color: #bfc9e1; font-size: 9px; letter-spacing: .08em; }.detail-grid { align-items: stretch; }.detail-list { margin: 18px 0 0; }.detail-list div { display: grid; grid-template-columns: 130px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid #edf0f4; }.detail-list div:last-child { border-bottom: 0; }.detail-list dt { color: #8790a1; font-size: 11px; }.detail-list dd { margin: 0; text-align: right; font-size: 12px; overflow-wrap: anywhere; }.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding: 15px; border: 1px solid #f2cbd1; border-radius: 12px; background: #fff8f9; }.danger-zone strong, .danger-zone span { display: block; }.danger-zone strong { color: #a72f42; font-size: 12px; }.danger-zone span { margin-top: 4px; color: #9b6a72; font-size: 10px; }.danger-zone button { min-height: 38px; flex: 0 0 auto; }.deleted-notice { margin-top: 18px; padding: 18px; color: #8b4652; background: #fff1f3; border-radius: 12px; font-size: 12px; line-height: 1.65; }

@media (max-width: 920px) {
  .auth-shell { grid-template-columns: 1fr; }.auth-aside { display: none; }.auth-panel { min-height: 100vh; padding: 36px 24px; }.mobile-brand { display: flex; }
  .chat-app { grid-template-columns: 280px 1fr; }.topbar-actions .secondary-button { display: none; }
  .stat-grid { grid-template-columns: 1fr 1fr; }.admin-grid-two { grid-template-columns: 1fr; }.blacklist-add { grid-template-columns: 1fr 1fr; }.blacklist-add button { grid-column: 1 / -1; }.hero-metrics { gap: 16px; }
}

@media (max-width: 680px) {
  .form-grid-two, .security-grid { grid-template-columns: 1fr; }.auth-card h2 { font-size: 32px; }
  .chat-app { display: block; }.chat-sidebar { position: fixed; inset: 0 auto 0 0; width: min(320px, 86vw); transform: translateX(-105%); transition: transform .22s ease; box-shadow: 20px 0 45px rgba(20,30,55,.2); }.chat-app.sidebar-open .chat-sidebar { transform: translateX(0); }.mobile-backdrop { position: fixed; inset: 0; z-index: 4; background: rgba(17,27,51,.4); }.chat-app.sidebar-open .mobile-backdrop { display: block; }.mobile-sidebar-button { display: block; margin-right: 6px; }.chat-topbar { padding: 0 13px; }.chat-main { height: 100vh; }.topbar-actions .ghost-button { padding: 0 10px; }.conversation-person { flex: 1; }.peer-avatar { width: 38px; height: 38px; }.message-view { padding: 20px 13px; }.message-bubble { max-width: 86%; }.composer { padding: 11px; grid-template-columns: 40px 1fr auto; }.send-button { padding: 0 14px; }.composer-status { left: 62px; }.security-dialog { max-height: calc(100vh - 18px); }
  .admin-topbar { padding: 0 16px; }.admin-brand small, .admin-account > span { display: none; }.admin-container { width: min(100% - 24px, 1240px); padding-top: 25px; }.page-heading { align-items: start; }.page-heading > p { display: none; }.stat-grid { grid-template-columns: 1fr 1fr; gap: 9px; }.stat-grid article { padding: 15px; }.responsive-heading { align-items: stretch; flex-direction: column; }.admin-search input { width: 100%; }.admin-search { width: 100%; }.blacklist-add { grid-template-columns: 1fr; }.blacklist-add button { grid-column: auto; }.admin-card { padding: 18px; }.user-management { padding: 0; }.user-management > .card-heading { padding: 18px; }.user-hero { align-items: flex-start; flex-wrap: wrap; }.hero-metrics { flex: 1 0 100%; justify-content: space-around; margin: 10px 0 0; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.14); }.detail-list div { grid-template-columns: 1fr; }.detail-list dd { text-align: left; }.danger-zone { align-items: stretch; flex-direction: column; }.admin-login-card { padding: 30px 24px; }
}

@media (max-width: 410px) {
  .stat-grid { grid-template-columns: 1fr; }.topbar-actions .ghost-button { font-size: 0; }.topbar-actions .ghost-button::after { content: "退出"; font-size: 12px; }.status-card { padding: 38px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

