:root{
  color-scheme:dark;
  --bg:#06101d;
  --panel:#0b1728;
  --panel-2:#101f34;
  --panel-3:#152842;
  --line:#27415f;
  --text:#eff7ff;
  --muted:#94a8c0;
  --primary:#14b8a6;
  --primary-2:#0f766e;
  --accent:#7c3aed;
  --danger:#ef4444;
  --warning:#f59e0b;
  --success:#22c55e;
  --shadow:0 24px 80px rgba(0,0,0,.45);
  --radius:18px;
  --safe-bottom:env(safe-area-inset-bottom,0px);
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;font:15px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}
button,input,select,textarea{font:inherit}
button,a{touch-action:manipulation}
a{color:#67e8f9}
[hidden]{display:none!important}
.brand-mark{display:grid;place-items:center;width:50px;height:50px;border-radius:16px;background:linear-gradient(135deg,var(--primary),var(--accent));box-shadow:0 12px 30px rgba(20,184,166,.22);font-weight:950;color:white}
.brand-mark.compact{width:38px;height:38px;border-radius:12px;font-size:16px}
.eyebrow{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#79d8d0;font-weight:900}
.button{border:0;border-radius:13px;min-height:46px;padding:11px 16px;font-weight:850;cursor:pointer;text-decoration:none;display:inline-grid;place-items:center}
.button-primary{background:linear-gradient(135deg,var(--primary),var(--primary-2));color:#fff;box-shadow:0 10px 30px rgba(20,184,166,.2)}
.notice{padding:12px 14px;border-radius:13px;margin:0 0 15px;border:1px solid}
.notice-error{background:#3c1219;border-color:#8b2635;color:#fecdd3}
.notice-success{background:#0b3521;border-color:#166534;color:#bbf7d0}
.notice-warning{background:#402d0a;border-color:#92400e;color:#fde68a}

/* Authentication */
.auth-page{min-height:100%;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at 20% 0,#153759 0,#07111f 42%,#040a12 100%)}
.auth-shell{width:min(650px,100%)}
.auth-brand{display:flex;align-items:center;gap:14px;text-decoration:none;color:var(--text);margin:0 auto 22px;width:max-content}
.auth-brand strong{display:block;font-size:22px}.auth-brand small{display:block;color:var(--muted)}
.auth-card{background:linear-gradient(180deg,#101f34,#0a1424);border:1px solid var(--line);border-radius:24px;padding:clamp(20px,5vw,38px);box-shadow:var(--shadow)}
.auth-heading{margin-bottom:23px}.auth-heading h1{font-size:clamp(28px,6vw,42px);line-height:1.1;margin:5px 0}.auth-heading p{margin:0;color:var(--muted)}
.stack-form{display:grid;gap:15px}.stack-form label{display:grid;gap:7px;font-weight:760}.stack-form input{width:100%;min-height:50px;border-radius:13px;border:1px solid #36506d;background:#06111f;color:var(--text);padding:12px 14px;outline:none}.stack-form input:focus{border-color:#2dd4bf;box-shadow:0 0 0 3px rgba(45,212,191,.14)}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.auth-switch{text-align:center;color:var(--muted);margin:20px 0 0}.auth-switch-form{display:block}.auth-link-button{border:0;background:transparent;color:#67e8f9;padding:0;font:inherit;text-decoration:underline;cursor:pointer}

/* Chat shell */
.chat-page{height:var(--chat-viewport-height,100dvh);overflow:hidden;background:#07131f}
/* v0.7.6.21.4: the software keyboard already owns the bottom safe area. */
.chat-page.chat-keyboard-open{--safe-bottom:0px}
.chat-app{height:100%;min-width:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr;position:relative;isolation:isolate}
.chat-header{height:62px;display:flex;align-items:center;gap:10px;padding:8px 10px;background:linear-gradient(180deg,#0b1e31,#081524);border-bottom:1px solid #28415e;box-shadow:0 5px 20px #0006;z-index:30}
.icon-button,.avatar-button,.online-button{border:0;background:#14263b;color:var(--text);min-width:44px;height:44px;border-radius:13px;display:grid;place-items:center;cursor:pointer}
.icon-button{font-size:23px}.avatar-button{border-radius:50%;background:linear-gradient(135deg,var(--accent),#4f46e5);font-weight:900}
.chat-brand{display:none;align-items:center;gap:9px}.chat-brand strong,.chat-brand small{display:block}.chat-brand small{color:var(--muted);font-size:12px}
.room-heading{min-width:0;flex:1}.room-heading strong,.room-heading span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.room-heading strong{font-size:17px}.room-heading span{color:var(--muted);font-size:12px}
.online-button{display:flex;gap:6px;padding:0 12px;font-weight:850;white-space:nowrap}.presence-dot{width:9px;height:9px;border-radius:50%;background:#34d399;box-shadow:0 0 0 4px rgba(52,211,153,.12)}.online-label{display:none}
.chat-main{position:relative;min-width:0;min-height:0;display:grid;grid-template-rows:auto auto 1fr auto;background:linear-gradient(180deg,#0a1a2a 0,#07131f 100%)}
.room-topic{display:flex;align-items:center;gap:10px;padding:10px 13px;background:#0c2136;border-bottom:1px solid #28445f}.room-topic>span{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:#173c4a;color:#5eead4;font-weight:950}.room-topic strong,.room-topic small{display:block}.room-topic small{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:76vw}
.chat-notice{margin:9px 10px 0;border:1px solid #7c5c19;background:#392b0d;color:#fde68a;border-radius:12px;padding:10px 12px;display:flex;gap:6px;flex-direction:column;z-index:5}.chat-notice.error{border-color:#8b2635;background:#3b121a;color:#fecdd3}.chat-notice.success{border-color:#166534;background:#0b3521;color:#bbf7d0}
.message-list{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:10px 10px 18px;scrollbar-color:#33526d transparent;scrollbar-width:thin}
.message{display:grid;grid-template-columns:38px 1fr;gap:9px;padding:8px 7px;border-radius:14px;animation:message-in .14s ease-out}.message+.message{margin-top:2px}.message:hover{background:rgba(255,255,255,.025)}
@keyframes message-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.message-avatar{width:38px;height:38px;border-radius:13px;background:linear-gradient(135deg,#155e75,#7c3aed);display:grid;place-items:center;font-weight:950;color:#fff;overflow:hidden}.message-avatar img{width:100%;height:100%;object-fit:cover}
.message-head{display:flex;align-items:baseline;gap:7px;min-width:0}.message-name{font-weight:900;color:#f8fafc}.message-role{font-size:10px;padding:2px 6px;border-radius:999px;background:#223b57;color:#b7d8f3;text-transform:uppercase;letter-spacing:.05em}.message-time{margin-left:auto;color:#71869e;font-size:11px;white-space:nowrap}.message-body{white-space:pre-wrap;overflow-wrap:anywhere;color:#dbeafe;margin-top:1px}
.message-system,.message-moderation{grid-template-columns:30px 1fr;margin:5px 0;border:1px solid}.message-system{background:#0d2b2b;border-color:#195653}.message-moderation{background:#2c1a12;border-color:#713f12}.message-system .message-avatar,.message-moderation .message-avatar{width:30px;height:30px;border-radius:10px;font-size:14px}.message-system .message-avatar{background:#0f766e}.message-moderation .message-avatar{background:#c2410c}.message-system .message-name{color:#99f6e4}.message-moderation .message-name{color:#fdba74}
.new-messages-button{position:absolute;right:16px;bottom:92px;z-index:10;border:0;border-radius:999px;padding:9px 13px;background:#5b21b6;color:white;font-weight:850;box-shadow:0 13px 30px #0007;cursor:pointer}
.composer{padding:9px 10px calc(9px + var(--safe-bottom));background:linear-gradient(180deg,#091625,#06111e);border-top:1px solid #28415d}.composer-row{display:flex;gap:8px;align-items:flex-end}.composer textarea{resize:none;max-height:140px;min-height:48px;flex:1;border:1px solid #36516e;background:#0c1b2e;color:var(--text);border-radius:15px;padding:12px 13px;outline:none;font-size:16px;line-height:1.35}.composer textarea:focus{border-color:#2dd4bf;box-shadow:0 0 0 3px rgba(45,212,191,.11)}.send-button{height:48px;min-width:52px;border:0;border-radius:15px;background:linear-gradient(135deg,var(--primary),var(--accent));color:#fff;font-weight:900;cursor:pointer}.send-button span{display:none}.send-button b{font-size:19px}.send-button:disabled{filter:grayscale(.65);opacity:.55;cursor:not-allowed}.composer-meta{display:flex;justify-content:space-between;gap:10px;color:#70849b;font-size:10px;padding:5px 4px 0}.composer-meta span:first-child{display:none}

/* Drawers */
.drawer{position:fixed;top:0;bottom:0;width:min(88vw,380px);background:linear-gradient(180deg,#0e1d31,#07111f);z-index:80;box-shadow:var(--shadow);transition:transform .22s ease;overflow-y:auto;padding-bottom:var(--safe-bottom)}.drawer-left{left:0;transform:translateX(-105%);border-right:1px solid #304c69}.drawer-right{right:0;transform:translateX(105%);border-left:1px solid #304c69}.drawer.open{transform:translateX(0)}.drawer-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px;background:#0c1a2cdd;backdrop-filter:blur(14px);border-bottom:1px solid #27415e}.drawer-head h2{font-size:20px;margin:2px 0 0}.drawer-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.58);z-index:70;backdrop-filter:blur(2px)}
.room-list,.online-list,.account-links{padding:12px}.room-card,.user-card,.account-links>a,.locale-row,.danger-link{display:flex;align-items:center;gap:11px;min-height:55px;padding:10px 12px;border-radius:14px;color:var(--text);text-decoration:none;border:1px solid transparent;background:#0d1c2f;margin-bottom:8px}.room-card.active{background:#123d46;border-color:#1d6e68}.room-card:hover,.account-links>a:hover{border-color:#36536f}.room-icon{width:35px;height:35px;border-radius:11px;background:#18304a;display:grid;place-items:center;color:#67e8f9;font-weight:950}.room-card>span:nth-child(2){flex:1;min-width:0}.room-card strong,.room-card small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.room-card small{color:var(--muted);font-size:11px}.room-count{min-width:30px;text-align:center;padding:3px 7px;border-radius:999px;background:#213a54;color:#dbeafe;font-weight:800}
.user-card{position:relative}.user-avatar{width:39px;height:39px;border-radius:13px;background:linear-gradient(135deg,#155e75,#7c3aed);display:grid;place-items:center;font-weight:950}.user-card>span:nth-child(2){min-width:0;flex:1}.user-card strong,.user-card small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-card small{color:var(--muted)}.user-online-dot{width:10px;height:10px;border-radius:50%;background:#34d399}.skeleton-card{height:60px;border-radius:14px;background:linear-gradient(90deg,#0c1b2d,#172b43,#0c1b2d);background-size:200% 100%;animation:skeleton 1s infinite}.skeleton-card+.skeleton-card{margin-top:8px}@keyframes skeleton{to{background-position:-200% 0}}
.account-card{display:grid;justify-items:center;gap:6px;padding:28px 16px;border-bottom:1px solid #27415e}.account-avatar{width:82px;height:82px;border-radius:25px;background:linear-gradient(135deg,var(--accent),#0f766e);display:grid;place-items:center;font-size:30px;font-weight:950}.account-card>strong{font-size:22px}.account-card>span{color:var(--muted)}.role-pill{display:inline-flex!important;padding:5px 10px;border-radius:999px;background:#1e3450;color:#dbeafe!important;font-size:11px;font-weight:900}.role-webmaster{background:#4c1d95!important;color:#e9d5ff!important}.role-superadmin{background:#7f1d1d!important;color:#fecaca!important}.locale-row{justify-content:space-between}.locale-row select{background:#14283f;color:white;border:1px solid #36506d;border-radius:10px;padding:8px}.danger-link{width:100%;justify-content:center;border-color:#7f1d1d;background:#35131a;color:#fecaca;font-weight:900;cursor:pointer}

@media(min-width:760px){
  .chat-header{height:70px;padding:9px 14px}.chat-brand{display:flex}.room-heading{padding-left:10px;border-left:1px solid #2b4662}.online-label{display:inline}.message-list{padding:16px 18px 24px}.composer{padding-left:18px;padding-right:18px}.composer-meta span:first-child{display:inline}.send-button{min-width:100px}.send-button span{display:inline}.send-button b{display:none}.room-topic{padding-left:18px}.chat-notice{margin-left:18px;margin-right:18px}.message{grid-template-columns:42px 1fr;padding:9px 10px}.message-avatar{width:42px;height:42px}
}
@media(min-width:1180px){
  /* v0.7.5.7: modern desktop uses one full-width chat canvas. */
  .chat-app{grid-template-columns:minmax(0,1fr);grid-template-rows:70px minmax(0,1fr)}
  .chat-header{grid-column:1;grid-row:1}
  .chat-main{grid-column:1;grid-row:2;min-width:0}

  /* Rooms, members, community tools and account controls stay off-canvas until requested. */
  .drawer[data-drawer="rooms"],
  .drawer[data-drawer="room-tools"]{position:fixed!important;top:70px;bottom:0;left:0;right:auto;width:min(390px,32vw);transform:translateX(-105%)!important;box-shadow:var(--shadow);z-index:80;display:block!important;overflow-y:auto;border-right:1px solid #304c69;border-left:0}
  .drawer[data-drawer="online"],
  .drawer[data-drawer="account"]{position:fixed!important;top:70px;bottom:0;right:0;left:auto;width:min(390px,32vw);transform:translateX(105%)!important;box-shadow:var(--shadow);z-index:80;display:block!important;overflow-y:auto;border-left:1px solid #304c69;border-right:0}
  .drawer[data-drawer="rooms"].open,
  .drawer[data-drawer="room-tools"].open,
  .drawer[data-drawer="online"].open,
  .drawer[data-drawer="account"].open{transform:translateX(0)!important}
  .drawer[data-drawer] .drawer-head .icon-button{display:grid}

  .room-tools-button,.chat-header [data-open-drawer="online"],.entertainment-menu-button,.avatar-button{display:grid!important}
  .drawer-backdrop{top:70px}
  .drawer-backdrop:not([hidden]){display:block!important}
  .drawer-backdrop[hidden]{display:none!important}

  .message-list{padding-left:clamp(22px,3vw,46px);padding-right:clamp(22px,3vw,46px)}
  .composer{padding-left:clamp(22px,3vw,46px);padding-right:clamp(22px,3vw,46px)}
  .room-topic{padding-left:clamp(22px,3vw,46px);padding-right:clamp(22px,3vw,46px)}
}
@media(max-width:560px){.form-grid{grid-template-columns:1fr}.auth-page{padding:10px}.auth-card{padding:20px}.composer-meta{display:none}.room-topic small{max-width:66vw}}
.desktop-chat-actions{display:none;align-items:center;gap:6px}.desktop-chat-actions a,.desktop-chat-actions button{width:40px;height:40px;border-radius:12px;border:1px solid #29445f;background:#10243a;color:#e8f3ff;display:grid;place-items:center;text-decoration:none;cursor:pointer}.desktop-chat-actions form{margin:0}.desktop-chat-actions a:hover,.desktop-chat-actions button:hover{background:#17344c;border-color:#486986}
@media(min-width:1180px){.desktop-chat-actions{display:none!important}.entertainment-menu-button,.avatar-button{display:grid}}

/* Social notification counters */
.desktop-chat-actions a{position:relative}
.chat-nav-badge{position:absolute;right:-5px;top:-6px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#ff5267;color:#fff;font:800 10px/18px Inter,ui-sans-serif,system-ui,sans-serif;text-align:center;box-shadow:0 2px 8px #0007}
.account-count{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;margin-right:5px;border-radius:999px;background:#ff5267;color:#fff;font-size:10px;line-height:20px}

/* Registration validation and username recovery */
.stack-form label.has-error>input{border-color:#ef6676;box-shadow:0 0 0 3px rgba(239,68,68,.12)}
.field-help,.field-error{font-size:12px;font-weight:650;line-height:1.35}
.field-help{color:var(--muted)}
.field-error{color:#fda4af}
.error-list{margin:7px 0 0;padding-left:20px}
.error-list li+li{margin-top:3px}
.username-suggestions{display:grid;gap:9px;padding:13px 14px;border:1px solid #3b6682;border-radius:14px;background:#0b2236}
.username-suggestions>strong{color:#cffafe}
.username-suggestions>div{display:flex;flex-wrap:wrap;gap:8px}
.username-suggestions button{border:1px solid #3c718e;border-radius:999px;background:#11334a;color:#a5f3fc;padding:8px 11px;font-weight:850;cursor:pointer}
.username-suggestions button:hover,.username-suggestions button:focus-visible{background:#15516a;border-color:#67e8f9;outline:none}
.username-suggestions small,.password-privacy-note{color:var(--muted);font-size:12px;margin:0}

/* Mobile chat navigation */
.chat-bottom-nav{display:none}
@media(max-width:1179px){
  .chat-app{grid-template-rows:auto minmax(0,1fr) auto}
  .chat-bottom-nav{display:grid;grid-column:1/-1;grid-row:3;grid-template-columns:repeat(5,1fr);min-height:62px;padding-bottom:var(--safe-bottom);background:rgba(6,17,30,.98);border-top:1px solid #28415d;z-index:35}
  .chat-bottom-nav a{position:relative;display:grid;place-items:center;align-content:center;min-width:0;color:#8fa5bb;text-decoration:none;font-size:10px}
  .chat-bottom-nav a i{font-style:normal;font-size:19px;line-height:1.1}.chat-bottom-nav a span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.chat-bottom-nav a.active{color:#5eead4}
  .chat-bottom-nav b{position:absolute;top:5px;left:calc(50% + 8px);min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#ff5267;color:white;font:800 10px/18px system-ui;text-align:center}
}

/* Admin communication shortcut badges share the base app rules when present. */
.admin-communication-link{position:relative}
.admin-communication-link>b{position:absolute;top:-6px;right:-6px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#ff5267;color:#fff;font-size:10px;line-height:18px;text-align:center}

/* Password policy controls */
.password-form-grid{align-items:start}
.password-input-shell{position:relative;display:block;font-weight:400}
.password-input-shell input{padding-right:72px}
.password-visibility{position:absolute;right:7px;top:50%;transform:translateY(-50%);min-width:54px;min-height:36px;padding:6px 9px;border:1px solid #36506d;border-radius:10px;background:#10243a;color:#dbeafe;font-size:12px;font-weight:850;cursor:pointer}
.password-visibility:hover,.password-visibility:focus-visible{border-color:#5eead4;background:#17344c;outline:none}
.has-error .password-input-shell input{border-color:#ef6676;box-shadow:0 0 0 3px rgba(239,68,68,.12)}
.password-requirements{display:grid;grid-template-columns:1fr 1fr;gap:5px 12px;margin:2px 0 0;padding:0;list-style:none;color:var(--muted);font-size:12px;font-weight:650}
.password-requirements li:not(.policy-note)::before{content:'○';display:inline-block;width:17px;color:#71869e;font-weight:950}
.password-requirements li.is-met{color:#86efac}.password-requirements li.is-met::before{content:'✓';color:#22c55e}
.password-requirements li.is-unmet{color:#fda4af}.password-requirements li.is-unmet::before{content:'×';color:#ef4444}
.password-requirements .policy-note{grid-column:1/-1;margin-top:3px;color:var(--muted);font-weight:600;line-height:1.35}
.password-match{color:var(--muted);font-size:12px;font-weight:650}.password-match.is-met{color:#86efac}.password-match.is-unmet{color:#fda4af}
@media(max-width:560px){.password-requirements{grid-template-columns:1fr}}

/* v0.7.3 account registration and recovery */
.auth-card-wide{width:min(760px,100%)}
.verification-choice{border:1px solid var(--shell-line,var(--line));border-radius:14px;padding:14px;display:grid;gap:9px}
.verification-choice legend{font-weight:800;padding:0 6px}
.verification-choice>label{display:flex;align-items:center;gap:9px;padding:8px 10px;border-radius:10px;background:rgba(255,255,255,.035)}
.verification-choice>label.is-unavailable{opacity:.55}
.verification-choice input{width:auto}
.caps-lock-warning{display:block;color:#ffcc66;font-weight:700;margin-top:7px}
.caps-lock-warning[hidden]{display:none}
.password-requirements [data-password-rule]::before{content:'○';display:inline-block;width:1.25em}
.password-requirements [data-password-rule].is-met::before{content:'✓'}
.password-requirements [data-password-rule].is-unmet::before{content:'×'}
button[aria-busy="true"]{cursor:wait;opacity:.75}
@media(max-width:620px){.auth-card-wide{padding:18px}.verification-choice>label{min-height:46px}}
.account-trust-panel details{margin-top:16px}.trust-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.trust-grid article{display:grid;gap:5px;padding:14px;border:1px solid var(--shell-line,var(--line));border-radius:12px;background:rgba(255,255,255,.03)}.trust-grid small{color:var(--muted)}.verification-actions{display:grid;gap:12px;margin-top:16px}.verification-actions .inline-form{align-items:end}.verification-phone-form label,.verification-code-form label{min-width:190px}.vip-level-list{display:grid;gap:6px}.security-history-list{display:grid;gap:10px}.security-history-list article{display:flex;justify-content:space-between;gap:16px;padding:12px;border-bottom:1px solid var(--shell-line,var(--line))}.security-history-list article div{display:grid;gap:4px}.security-history-list time{white-space:nowrap;color:var(--muted)}
@media(max-width:760px){.trust-grid{grid-template-columns:1fr}.verification-actions .inline-form{align-items:stretch}.security-history-list article{display:grid}.security-history-list time{white-space:normal}}
.user-online-dot.online{background:#34d399;box-shadow:0 0 0 4px rgba(52,211,153,.12)}.user-online-dot.away{background:#fbbf24;box-shadow:0 0 0 4px rgba(251,191,36,.1)}.user-online-dot.offline{background:#64748b;box-shadow:none}.user-card.presence-offline{opacity:.68}.user-card.presence-away{opacity:.9}

/* v0.7.3 profile trust, staff actions and account details */
.profile-trust-card{display:grid;gap:14px;margin-top:16px;padding:16px;border:1px solid var(--shell-line,var(--line));border-radius:16px;background:rgba(255,255,255,.035)}
.profile-trust-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.vip-chip,.verified-chip,.presence-chip{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:5px 10px;border:1px solid var(--shell-line,var(--line));border-radius:999px;font-size:12px;font-weight:850;line-height:1}
.vip-chip{background:rgba(251,191,36,.12);border-color:rgba(251,191,36,.38);color:#fde68a}
.verified-chip{background:rgba(45,212,191,.11);border-color:rgba(45,212,191,.35);color:#99f6e4}
.presence-chip.online{background:rgba(52,211,153,.11);border-color:rgba(52,211,153,.36);color:#86efac}
.presence-chip.away{background:rgba(251,191,36,.1);border-color:rgba(251,191,36,.34);color:#fde68a}
.presence-chip.offline{background:rgba(100,116,139,.14);border-color:rgba(148,163,184,.25);color:#cbd5e1}
.profile-action-note{margin:0;color:var(--muted);font-size:13px;line-height:1.5}
.profile-more-info{margin-top:18px;border:1px solid var(--shell-line,var(--line));border-radius:16px;background:rgba(255,255,255,.025);overflow:hidden}
.profile-more-info>summary{cursor:pointer;padding:15px 16px;font-weight:850;list-style:none}
.profile-more-info>summary::-webkit-details-marker{display:none}
.profile-more-info>summary::after{content:'＋';float:right;color:#7dd3fc}
.profile-more-info[open]>summary::after{content:'−'}
.profile-more-info[open]>summary{border-bottom:1px solid var(--shell-line,var(--line))}
.profile-info-list{display:grid;grid-template-columns:minmax(140px,.75fr) minmax(0,1.6fr);margin:0;padding:8px 16px 16px}
.profile-info-list dt,.profile-info-list dd{margin:0;padding:9px 0;border-bottom:1px solid rgba(148,163,184,.12);overflow-wrap:anywhere}
.profile-info-list dt{color:var(--muted);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.profile-info-list dd{font-weight:650}
.staff-profile-controls{display:grid;gap:14px;margin-top:18px;padding:16px;border:1px solid rgba(96,165,250,.32);border-radius:16px;background:rgba(30,64,175,.08)}
.staff-profile-controls>header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
.staff-profile-controls h3{margin:0}
.moderation-state-row{display:flex;flex-wrap:wrap;gap:8px;color:var(--muted);font-size:12px}
.moderation-state-row span{padding:5px 9px;border:1px solid var(--shell-line,var(--line));border-radius:999px;background:rgba(255,255,255,.035)}
.staff-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.staff-action-card{display:grid;align-content:start;gap:10px;margin:0;padding:13px;border:1px solid var(--shell-line,var(--line));border-radius:13px;background:rgba(4,16,29,.42)}
.staff-action-card h4{margin:0;font-size:14px}
.staff-action-card label{display:grid;gap:6px;font-size:12px;font-weight:750;color:var(--muted)}
.staff-action-card input,.staff-action-card textarea,.staff-action-card select{width:100%}
.account-delete-panel{margin-top:16px;padding:16px;border:1px solid rgba(239,68,68,.42);border-radius:16px;background:rgba(127,29,29,.13)}
.account-delete-panel summary{cursor:pointer;color:#fecaca;font-weight:900}
.account-delete-panel form{display:grid;gap:10px;margin-top:13px}
.account-delete-panel p{margin:0;color:#fecaca;font-size:13px;line-height:1.45}
@media(max-width:720px){
  .staff-action-grid{grid-template-columns:1fr}
  .profile-info-list{grid-template-columns:1fr}
  .profile-info-list dt{padding-bottom:2px;border-bottom:0}
  .profile-info-list dd{padding-top:2px}
  .staff-profile-controls,.profile-trust-card,.account-delete-panel{padding:13px}
}

/* v0.7.5.2 room tools, account badge and entertainment navigation */
.avatar-button{position:relative}
.avatar-notice{position:absolute;right:-4px;top:-5px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#ff5267;color:#fff;font:800 10px/18px system-ui;text-align:center;box-shadow:0 2px 8px #0007}
.room-tools-button{flex:0 0 auto}
.room-tool-list{display:grid;gap:8px;padding:12px}
.room-tool-list :is(button,a){display:flex;align-items:center;gap:12px;width:100%;min-height:62px;border:1px solid transparent;border-radius:15px;background:#0d1c2f;color:var(--text);text-align:left;text-decoration:none;padding:10px 12px;cursor:pointer}
.room-tool-list :is(button,a):hover,.room-tool-list :is(button,a):focus-visible{border-color:#36536f;background:#11243a}
.room-tool-list i{display:grid;place-items:center;flex:0 0 auto;width:40px;height:40px;border-radius:13px;background:#18304a;color:#67e8f9;font-style:normal}.room-tool-list i svg{width:22px;height:22px}
.room-tool-list span{min-width:0;flex:1}.room-tool-list strong,.room-tool-list small{display:block}.room-tool-list small{color:var(--muted);font-weight:500}.room-tool-list b{font-size:22px;color:var(--muted)}
@media(max-width:560px){.chat-header{gap:7px}.online-button{min-width:44px;padding:0 9px}.room-tools-button{min-width:42px;width:42px}.avatar-button{min-width:42px;width:42px}.room-heading strong{font-size:16px}}
@media(min-width:1180px){.room-tools-button{display:grid}.drawer[data-drawer="room-tools"]{display:block!important}}
@media(max-width:1179px){
  .chat-bottom-nav a,.chat-bottom-nav button{position:relative;display:grid;place-items:center;align-content:center;min-width:0;border:0;background:transparent;color:#8fa5bb;text-decoration:none;font-size:10px;cursor:pointer}
  .chat-bottom-nav a i,.chat-bottom-nav button i{font-style:normal;font-size:19px;line-height:1.1}
  .chat-bottom-nav a i svg,.chat-bottom-nav button i svg{width:22px;height:22px}
  .chat-bottom-nav a span,.chat-bottom-nav button span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
  .chat-bottom-nav a.active,.chat-bottom-nav button.active{color:#5eead4}
  .chat-bottom-public-button{position:relative}
  .chat-bottom-public-button .public-video-icon{display:grid;place-items:center;width:34px;height:30px;border-radius:9px;background:#ff2b2b;color:#fff;box-shadow:0 5px 14px rgba(255,43,43,.28)}
  .chat-bottom-public-button .public-video-icon svg{width:23px;height:23px;stroke-width:2.2}
  .chat-bottom-public-button:hover .public-video-icon,.chat-bottom-public-button:focus-visible .public-video-icon{background:#e81919;transform:translateY(-1px)}
  .chat-bottom-public-button .public-call-live-dot{top:6px;left:calc(50% + 10px);right:auto}
}


/* v0.7.5.3 locked navigation: community left, entertainment right */
.room-menu-button{order:-10;flex:0 0 auto}
.entertainment-menu-button{flex:0 0 auto}
.community-drawer{left:0;right:auto}
@media(max-width:1179px){
  .chat-header .chat-brand{display:none}
  .chat-header .room-heading{order:-5}
  .chat-header .online-button{order:0}
  .chat-header .entertainment-menu-button{order:5}
  .chat-header .avatar-button{order:6}
}
@media(min-width:1180px){
  .chat-header .chat-brand{display:none}
  .room-tools-button{display:grid}
  .entertainment-menu-button{display:grid}
  .avatar-button{display:grid}
  .desktop-chat-actions{display:none!important}
}

@media(max-width:760px){.chat-bottom-nav{grid-template-columns:repeat(5,minmax(0,1fr))}}

/* v0.7.6.21.17 transferred-account password gate */
.legacy-password-card{max-width:620px}.legacy-account-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;margin:14px 0;border:1px solid var(--line);border-radius:14px;background:var(--panel-2)}.legacy-account-summary span{color:var(--muted);font-size:.9rem}
