/* ==========================================================================
   RetroChat — Fullscreen Modular Multi-Era & Mix-and-Match Stylesheet
   Independent Axes:
   - html[data-look="icq|irc|wlm|skype|telegram|discord"]
   - html[data-layout="icq|irc|wlm|skype|telegram|discord"]
   - html[data-font="icq|irc|wlm|skype"]
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-mono: 'Consolas', 'Courier New', monospace;
}

/* ==========================================================================
   FONT AXIS: html[data-font="..."]
   ========================================================================== */
html[data-font="aim"] {
  --font-main: 'Tahoma', 'MS Sans Serif', sans-serif;
  --font-chat-msg: 'Times New Roman', Times, Georgia, serif;
}
html[data-font="icq"] {
  --font-main: 'Tahoma', 'MS Sans Serif', 'Geneva', sans-serif;
}
html[data-font="irc"] {
  --font-main: 'Consolas', 'Lucida Console', 'Courier New', monospace;
}
html[data-font="wlm"] {
  --font-main: 'Segoe UI', 'Trebuchet MS', Tahoma, sans-serif;
}
html[data-font="skype"],
html[data-font="telegram"],
html[data-font="discord"] {
  --font-main: 'Tahoma', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================================================
   LOOK & SKIN AXIS: html[data-look="..."]
   ========================================================================== */

/* 0. AOL Instant Messenger 5.9 (2004 1:1 Replica — WinXP Silver/Blue + Classic Grey Bevels) */
html[data-look="aim"] {
  --shell-bg: #ece9d8;
  --statusbar-bg: linear-gradient(180deg, #dce6f4 0%, #b5c7de 50%, #9eb6d4 100%);
  --statusbar-text: #1c2e4a;
  --statusbar-border: 1px solid #7a95b8;

  --chat-bg: #ffffff;
  --chat-text: #000000;
  --chat-border: 2px inset #b8b4a6;

  --msg-own-bg: #ffffff;
  --msg-own-border: transparent;
  --msg-other-bg: #ffffff;
  --msg-other-border: transparent;

  --toolbar-bg: #ece9d8;
  --input-bg: #ffffff;
  --input-text: #000000;
  --input-border: 2px inset #b8b4a6;

  --btn-bg: linear-gradient(180deg, #ffffff 0%, #e3dfd1 100%);
  --btn-text: #000000;
  --btn-border: 1px solid #7f9db9;
  --btn-radius: 3px;

  --side-bg: #ece9d8;
  --card-bg: #f4f2e8;
  --card-border: 1px solid #aca899;

  --footer-bg: #ece9d8;
  --footer-text: #333333;
}

/* 1. WLM / MSN 2007 (Default) */
:root,
html[data-look="wlm"] {
  --shell-bg: #eef6fb;
  --statusbar-bg: linear-gradient(180deg, #52b0e8 0%, #1d76bc 48%, #125ea2 50%, #2d91d6 100%);
  --statusbar-text: #ffffff;
  --statusbar-border: 1px solid #0e4b82;

  --chat-bg: #ffffff;
  --chat-text: #1c2833;
  --chat-border: 1px solid #a5cbe3;

  --msg-own-bg: #e3f4fc;
  --msg-own-border: #b3dff5;
  --msg-other-bg: #f6f9fb;
  --msg-other-border: #dce7ef;

  --toolbar-bg: linear-gradient(180deg, #f3f9fd 0%, #dfeff9 100%);
  --input-bg: #ffffff;
  --input-text: #111111;
  --input-border: 1px solid #7fb5d6;

  --btn-bg: linear-gradient(180deg, #5cc0f7 0%, #1e88d3 100%);
  --btn-text: #ffffff;
  --btn-border: 1px solid #13649e;
  --btn-radius: 5px;

  --side-bg: #e2f1fb;
  --card-bg: rgba(255, 255, 255, 0.86);
  --card-border: 1px solid #b7d8ed;

  --footer-bg: #d2eaf8;
  --footer-text: #2a5579;
}

/* 2. ICQ 99a / Windows 98 */
html[data-look="icq"] {
  --shell-bg: #c0c0c0;
  --statusbar-bg: linear-gradient(90deg, #000080 0%, #1084d0 100%);
  --statusbar-text: #ffffff;
  --statusbar-border: 2px outset #ffffff;

  --chat-bg: #ffffff;
  --chat-text: #000000;
  --chat-border: 2px inset #808080;

  --msg-own-bg: #e8f4e8;
  --msg-own-border: #808080;
  --msg-other-bg: #ffffe1;
  --msg-other-border: #808080;

  --toolbar-bg: #c0c0c0;
  --input-bg: #ffffff;
  --input-text: #000000;
  --input-border: 2px inset #808080;

  --btn-bg: #c0c0c0;
  --btn-text: #000000;
  --btn-border: 2px outset #ffffff;
  --btn-radius: 0px;

  --side-bg: #c0c0c0;
  --card-bg: #dfdfdf;
  --card-border: 2px inset #ffffff;

  --footer-bg: #c0c0c0;
  --footer-text: #000000;
}

/* 3. mIRC / CRT Terminal */
html[data-look="irc"] {
  --shell-bg: #0c140c;
  --statusbar-bg: #102213;
  --statusbar-text: #33ff66;
  --statusbar-border: 1px solid #22b455;

  --chat-bg: #050a06;
  --chat-text: #33ff66;
  --chat-border: 1px solid #1f5c2e;

  --msg-own-bg: rgba(51, 255, 102, 0.1);
  --msg-own-border: #227739;
  --msg-other-bg: rgba(51, 255, 102, 0.04);
  --msg-other-border: #174223;

  --toolbar-bg: #0c1a0e;
  --input-bg: #040804;
  --input-text: #33ff66;
  --input-border: 1px solid #28cc52;

  --btn-bg: #153b1e;
  --btn-text: #33ff66;
  --btn-border: 1px solid #33ff66;
  --btn-radius: 0px;

  --side-bg: #081109;
  --card-bg: #0b180d;
  --card-border: 1px solid #1c5228;

  --footer-bg: #09130a;
  --footer-text: #22b455;
}

html[data-look="irc"] .chat-messages {
  background-image: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.22),
    rgba(0, 0, 0, 0.22) 1px,
    transparent 1px,
    transparent 3px
  );
}

/* 4. Skype™ BETA 4.0 (2008) — Authentic Silver/Ice-Blue & Royal Selection Style */
html[data-look="skype"] {
  --shell-bg: #eef4fa;
  --statusbar-bg: linear-gradient(180deg, #b8d8f8 0%, #7cb2e8 48%, #5899db 50%, #8ec2f2 100%);
  --statusbar-text: #0b2e59;
  --statusbar-border: 1px solid #4a84c2;

  --chat-bg: #ffffff;
  --chat-text: #1c2833;
  --chat-border: 1px solid #9abce0;

  --msg-own-bg: #e3f2fd;
  --msg-own-border: #90caf9;
  --msg-other-bg: #f4f7fa;
  --msg-other-border: #cfdbe6;

  --toolbar-bg: linear-gradient(180deg, #f7fbff 0%, #ddebf8 100%);
  --input-bg: #ffffff;
  --input-text: #1c2b33;
  --input-border: 1px solid #7aa7d6;

  --btn-bg: linear-gradient(180deg, #7ed957 0%, #3ca618 100%);
  --btn-text: #ffffff;
  --btn-border: 1px solid #2b7a10;
  --btn-radius: 14px;

  --side-bg: linear-gradient(180deg, #e3eef9 0%, #cfdff0 100%);
  --card-bg: #ffffff;
  --card-border: 1px solid #9abce0;

  --footer-bg: linear-gradient(180deg, #e9eff5 0%, #cfdbe8 100%);
  --footer-text: #1c3d63;
}

/* Skype 2008 Royal Blue Active Contact Selection Highlight */
html[data-look="skype"] .channel-list li.active {
  background: linear-gradient(180deg, #3b8ef3 0%, #1967d2 100%);
  color: #ffffff;
  border: 1px solid #1251a8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* Skype 2008 Stacked Video Stage (Top Remote Feed / Bottom Centered Local Feed + White Bottom Bar) */
html[data-look="skype"] .media-stage {
  background: #1c1d1f;
  border: 1px solid #7aa7d6;
  padding: 0;
  gap: 0;
  overflow: hidden;
}

html[data-look="skype"] .media-stage-header {
  order: 2;
  background: linear-gradient(180deg, #ffffff 0%, #e4ecf5 100%);
  color: #1c2833;
  border-top: 1px solid #9abce0;
  padding: 8px 14px;
}

html[data-look="skype"] .media-ctrl-btn {
  background: linear-gradient(180deg, #42b8f6 0%, #0095da 100%);
  color: #ffffff;
  border: 1px solid #0077b3;
  border-radius: 16px;
  padding: 5px 12px;
}

html[data-look="skype"] .media-ctrl-btn.danger {
  background: linear-gradient(180deg, #ff5f52 0%, #d32f2f 100%);
  border-color: #9a0007;
  border-radius: 16px;
}

html[data-look="skype"] .video-grid {
  order: 1;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 150px;
  gap: 6px;
  padding: 8px;
  background: #1f2022;
}

html[data-look="skype"] .local-tile {
  width: 240px;
  justify-self: center;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

/* 5. Telegram Desktop */
html[data-look="telegram"] {
  --shell-bg: #17212b;
  --statusbar-bg: #242f3d;
  --statusbar-text: #f5f5f5;
  --statusbar-border: 1px solid #101921;

  --chat-bg: #0e1621;
  --chat-text: #f5f5f5;
  --chat-border: 1px solid #101921;

  --msg-own-bg: #2b5278;
  --msg-own-border: #2b5278;
  --msg-other-bg: #182533;
  --msg-other-border: #182533;

  --toolbar-bg: #17212b;
  --input-bg: #242f3d;
  --input-text: #ffffff;
  --input-border: 1px solid #2f3e50;

  --btn-bg: #5288c1;
  --btn-text: #ffffff;
  --btn-border: 1px solid #5288c1;
  --btn-radius: 8px;

  --side-bg: #17212b;
  --card-bg: #202b36;
  --card-border: 1px solid #283645;

  --footer-bg: #131c24;
  --footer-text: #768c9e;
}

/* 6. Discord Modern */
html[data-look="discord"] {
  --shell-bg: #313338;
  --statusbar-bg: #1e1f22;
  --statusbar-text: #f2f3f5;
  --statusbar-border: 1px solid #111214;

  --chat-bg: #313338;
  --chat-text: #dbdee1;
  --chat-border: 1px solid #26272b;

  --msg-own-bg: #383a40;
  --msg-own-border: #5865f2;
  --msg-other-bg: #2b2d31;
  --msg-other-border: #232428;

  --toolbar-bg: #2b2d31;
  --input-bg: #383a40;
  --input-text: #f2f3f5;
  --input-border: 1px solid #1e1f22;

  --btn-bg: #5865f2;
  --btn-text: #ffffff;
  --btn-border: 1px solid #4752c4;
  --btn-radius: 6px;

  --side-bg: #2b2d31;
  --card-bg: #232428;
  --card-border: 1px solid #1e1f22;

  --footer-bg: #1e1f22;
  --footer-text: #949ba4;
}

/* ==========================================================================
   MESSAGE LAYOUT AXIS: html[data-layout="..."]
   ========================================================================== */

.msg-item {
  padding: 9px 12px;
  background: var(--msg-other-bg);
  border: 1px solid var(--msg-other-border);
  word-wrap: break-word;
  position: relative;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  transition: all 0.15s ease;
}

.msg-pfp {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(128, 128, 128, 0.35);
}

.msg-content {
  flex: 1;
  min-width: 0;
}

/* Layout: AIM 5.9 (1:1 Serif inline log: ScreenName: message, red/blue sender names) */
html[data-layout="aim"] .chat-messages {
  gap: 4px;
  font-family: var(--font-chat-msg, 'Times New Roman', Times, serif);
  font-size: 1.05rem;
}
html[data-layout="aim"] .msg-item {
  max-width: 100%;
  width: 100%;
  padding: 2px 4px;
  border: none !important;
  border-radius: 0;
  background: transparent !important;
  align-items: baseline;
}
html[data-layout="aim"] .msg-pfp,
html[data-layout="aim"] .msg-meta,
html[data-layout="aim"] .msg-brand-icon {
  display: none;
}
html[data-layout="aim"] .msg-content {
  display: inline;
}
html[data-layout="aim"] .msg-header {
  display: inline;
  margin-right: 5px;
  font-size: 1.04rem;
}
html[data-layout="aim"] .msg-item.other .msg-sender {
  color: #0000cc;
  font-weight: 700;
}
html[data-layout="aim"] .msg-item.own .msg-sender {
  color: #cc0000;
  font-weight: 700;
}
html[data-layout="aim"] .msg-body {
  display: inline;
  font-size: 1.04rem;
  font-family: var(--font-chat-msg, 'Times New Roman', Times, serif);
}

/* Layout: ICQ (Boxed Win98 Panels) */
html[data-layout="icq"] .msg-item {
  max-width: 95%;
  border-radius: 0px;
  border: 2px groove #d4d0c8;
  align-self: stretch;
}
html[data-layout="icq"] .msg-item.own {
  background: var(--msg-own-bg);
}

/* Layout: IRC (Single-line compact terminal log: [16:40] <Nick> message) */
html[data-layout="irc"] .chat-messages {
  gap: 3px;
}
html[data-layout="irc"] .msg-item {
  max-width: 100%;
  width: 100%;
  padding: 3px 6px;
  border: none;
  border-bottom: 1px dashed rgba(128, 128, 128, 0.18);
  border-radius: 0;
  background: transparent !important;
  align-items: baseline;
}
html[data-layout="irc"] .msg-pfp {
  display: none;
}
html[data-layout="irc"] .msg-content {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
html[data-layout="irc"] .msg-header {
  margin-bottom: 0;
  flex-shrink: 0;
}

/* Layout: WLM / MSN ("Nick says:" Header + indented text) */
html[data-layout="wlm"] .msg-item {
  max-width: 85%;
  border-radius: 6px;
  align-self: flex-start;
}
html[data-layout="wlm"] .msg-item.own {
  align-self: flex-end;
  background: var(--msg-own-bg);
  border-color: var(--msg-own-border);
}
html[data-layout="wlm"] .msg-body {
  padding-left: 8px;
  border-left: 2px solid rgba(128, 128, 128, 0.25);
}

/* Layout: Skype (Rounded speech bubbles) */
html[data-layout="skype"] .msg-item {
  max-width: 78%;
  border-radius: 16px 16px 16px 4px;
  align-self: flex-start;
}
html[data-layout="skype"] .msg-item.own {
  align-self: flex-end;
  border-radius: 16px 16px 4px 16px;
  background: var(--msg-own-bg);
  border-color: var(--msg-own-border);
}
html[data-layout="skype"] .msg-pfp {
  border-radius: 50%;
}

/* Layout: Telegram (Cloud bubbles left/right) */
html[data-layout="telegram"] .msg-item {
  max-width: 75%;
  border-radius: 14px 14px 14px 2px;
  align-self: flex-start;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}
html[data-layout="telegram"] .msg-item.own {
  align-self: flex-end;
  border-radius: 14px 14px 2px 14px;
  background: var(--msg-own-bg);
  border-color: var(--msg-own-border);
}
html[data-layout="telegram"] .msg-pfp {
  border-radius: 50%;
}

/* Layout: Discord (Full-width feed rows) */
html[data-layout="discord"] .msg-item {
  max-width: 100%;
  width: 100%;
  border-radius: 6px;
  align-self: stretch;
}
html[data-layout="discord"] .msg-item.own {
  background: var(--msg-own-bg);
  border-color: var(--msg-own-border);
}
html[data-layout="discord"] .msg-pfp {
  border-radius: 50%;
}

/* ==========================================================================
   FULLSCREEN Core Shell & UI Components
   ========================================================================== */

body {
  font-family: var(--font-main);
  background: var(--shell-bg);
  color: var(--chat-text);
  height: 100dvh;
  width: 100vw;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.app-shell {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  background: var(--shell-bg);
  border: none;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: background 0.2s ease;
}

@keyframes nudge-shake {
  0%, 100% { transform: translate(0, 0); }
  10%, 30%, 50%, 70%, 90% { transform: translate(-6px, -3px); }
  20%, 40%, 60%, 80% { transform: translate(6px, 3px); }
}

.app-shell.nudging {
  animation: nudge-shake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Top Status / Header Bar */
.statusbar {
  background: var(--statusbar-bg);
  color: var(--statusbar-text);
  border-bottom: var(--statusbar-border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.avatar-frame {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--card-bg);
  border: 2px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.pfp-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.presence-dot {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #f59e0b;
  border: 2px solid #ffffff;
}

.presence-dot.online { background: #22c55e; }
.presence-dot.offline { background: #ef4444; }

.user-name-row {
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 7px;
}

.era-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.era-logo-wrap svg {
  width: 19px;
  height: 19px;
  display: block;
}

.status-badge {
  font-weight: 400;
  font-size: 0.8rem;
  opacity: 0.88;
}

.custom-mix-badge {
  font-size: 0.72rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 1px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.user-personal-msg {
  font-size: 0.8rem;
  opacity: 0.88;
  font-style: italic;
  margin-top: 2px;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.era-select {
  background: rgba(0, 0, 0, 0.28);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 5px;
  padding: 6px 10px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.era-select option {
  background: #1e242b;
  color: #ffffff;
}

.era-action-btn {
  background: rgba(255, 255, 255, 0.18);
  color: var(--statusbar-text);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--btn-radius);
  padding: 6px 11px;
  font-family: inherit;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.era-action-btn:hover,
.era-action-btn.active {
  background: rgba(255, 255, 255, 0.32);
}

/* ==========================================================================
   Mix & Match Customizer Drawer
   ========================================================================== */
.mixer-drawer {
  background: var(--toolbar-bg);
  color: var(--chat-text);
  border-bottom: var(--chat-border);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mixer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.86rem;
}

.mixer-sub {
  opacity: 0.8;
  font-size: 0.8rem;
  margin-left: 6px;
}

.mixer-header-actions {
  display: flex;
  gap: 6px;
}

.mixer-btn-sm {
  background: var(--card-bg);
  color: var(--chat-text);
  border: var(--card-border);
  border-radius: 4px;
  padding: 4px 10px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.mixer-btn-sm:hover {
  filter: brightness(1.08);
}

.mixer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.mixer-item {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: 6px;
  padding: 7px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mixer-label {
  font-size: 0.74rem;
  font-weight: 700;
  opacity: 0.88;
}

.mixer-row {
  display: flex;
  gap: 5px;
}

.mixer-select {
  width: 100%;
  background: var(--input-bg);
  color: var(--input-text);
  border: var(--input-border);
  border-radius: 4px;
  padding: 5px 7px;
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.mixer-test-btn {
  background: var(--btn-bg);
  color: var(--btn-text);
  border: var(--btn-border);
  border-radius: 4px;
  padding: 0 9px;
  cursor: pointer;
  font-size: 0.76rem;
}

/* Main Workspace & Multi-Layout Engine (html[data-view="..."]) */
.workspace {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 12px;
  padding: 12px 16px;
  min-height: 0;
}

.left-pane {
  display: none;
  background: var(--side-bg);
  border: var(--chat-border);
  border-radius: 6px;
  padding: 12px;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

/* View 0: AIM 5.9 1:1 Replica (Left Instant Message Split + Right 265px Sign-On & Error Stack) */
html[data-view="aim-1to1"] .workspace {
  grid-template-columns: 1fr 275px;
  gap: 8px;
  padding: 8px;
}
html[data-view="aim-1to1"] .left-pane {
  display: none;
}
html[data-view="aim-1to1"] .side-pane {
  display: flex;
  padding: 0;
  background: transparent;
  border: none;
  gap: 8px;
}

/* Hide AIM-only widgets when not in AIM look */
.aim-menubar,
.aim-format-strip,
.aim-signon-window,
.aim-error-window,
.aim-sys-row {
  display: none;
}

html[data-look="aim"] .aim-menubar {
  display: flex;
  flex-direction: column;
  background: #ece9d8;
  border: 1px solid #9eb6d4;
}

.aim-title-strip {
  background: linear-gradient(180deg, #dce6f4 0%, #b4c8e4 100%);
  color: #1e3250;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 8px;
  border-bottom: 1px solid #8ba4c7;
}

.aim-menu-items {
  display: flex;
  gap: 14px;
  padding: 3px 8px;
  font-size: 0.78rem;
  background: #ece9d8;
  border-bottom: 1px solid #d4d0c8;
}

html[data-look="aim"] .aim-format-strip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-right: 8px;
  border-right: 1px solid #aca899;
}

.aim-fmt-btn {
  font-family: 'Times New Roman', serif;
  font-weight: bold;
  font-size: 0.86rem;
  padding: 1px 4px;
  cursor: pointer;
}
.aim-fmt-btn.fg-blue { color: #0000cc; }
.aim-fmt-btn.bg-blue { background: #0000cc; color: #ffffff; }
.aim-fmt-btn.link-style { color: #0000cc; text-decoration: underline; font-family: Tahoma, sans-serif; font-size: 0.76rem; }
.aim-fmt-sep {
  width: 1px;
  height: 15px;
  background: #aca899;
}

html[data-look="aim"] .aim-sys-row {
  display: block;
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.02rem;
  line-height: 1.32;
  color: #000000;
  padding: 2px 4px;
}
.aim-sys-sender {
  color: #000080;
  font-weight: 700;
}
.aim-link {
  color: #0000ee;
  text-decoration: underline;
  cursor: pointer;
}
.aim-sys-boxed {
  border: 1px solid #b84a39;
  padding: 4px 6px !important;
  margin-top: 2px;
}

/* AIM 5.9 Bottom Compose Split Pane */
html[data-look="aim"] .chat-input-area {
  min-height: 120px;
  align-items: stretch;
}
html[data-look="aim"] .message-input {
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.05rem;
}

/* 1:1 AIM 5.9 Right Sign-On Window & Error Box */
html[data-look="aim"] .aim-signon-window,
html[data-look="aim"] .aim-error-window {
  display: flex;
  flex-direction: column;
  background: #ece9d8;
  border: 2px outset #ffffff;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  color: #000000;
}

html[data-look="aim"] #side-pfp-card {
  display: none;
}

.aim-win-titlebar {
  background: linear-gradient(180deg, #dce6f4 0%, #b4c8e4 100%);
  color: #1e3250;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 4px 8px;
  border-bottom: 1px solid #8ba4c7;
}

.aim-signon-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: Tahoma, sans-serif;
  font-size: 0.76rem;
}

.aim-blue-poster {
  background: radial-gradient(circle at 60% 35%, #0066cc 0%, #004080 65%, #002b59 100%);
  border: 2px inset #aca899;
  height: 145px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 12px 8px 8px 8px;
  color: #ffffff;
}

.aim-running-man-art svg {
  width: 86px;
  height: 86px;
  filter: drop-shadow(3px 4px 3px rgba(0, 0, 0, 0.55));
}

.aim-poster-caption {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.aim-form-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.aim-screenname-label {
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.aim-red-key {
  color: #b30000;
  font-weight: 900;
  font-family: monospace;
}

.aim-screenname-select,
.aim-pw-input {
  width: 100%;
  padding: 3px 5px;
  border: 2px inset #aca899;
  background: #ffffff;
  font-family: Tahoma, sans-serif;
  font-size: 0.76rem;
}

.aim-pw-label {
  font-weight: 700;
}

.aim-checkbox-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  padding: 2px 0;
}

.aim-bottom-icons-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 4px;
  border-top: 1px solid #d4d0c8;
}

.aim-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: Tahoma, sans-serif;
  font-size: 0.72rem;
  color: #000000;
}
.aim-icon-btn:hover {
  text-decoration: underline;
}

.aim-ico-glyph {
  font-size: 1.25rem;
  font-weight: bold;
  color: #d4a017;
}
.aim-ico-glyph.green {
  color: #1f8b24;
}

.aim-version-text {
  text-align: center;
  font-size: 0.68rem;
  color: #333333;
}

/* AIM Error Window */
.aim-error-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.75rem;
}

.aim-error-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.aim-red-x-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #d91e18;
  color: #ffffff;
  font-weight: bold;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #8a110d;
}

.aim-error-msg-box {
  border: 1px solid #b84a39;
  background: #f8f6f0;
  padding: 5px 7px;
  line-height: 1.3;
}

.aim-error-actions {
  display: flex;
  justify-content: center;
}

.aim-ok-btn {
  min-width: 68px;
  padding: 3px 14px;
  background: linear-gradient(180deg, #ffffff 0%, #e1ded2 100%);
  border: 1px solid #003c74;
  border-radius: 3px;
  font-family: Tahoma, sans-serif;
  font-size: 0.75rem;
  cursor: pointer;
}

/* Skype 2008 1:1 Left Sidebar Replica Enhancements */
.skype2008-win-header,
.skype2008-profile-panel,
.skype-menu-strip,
.skype-bottom-dock {
  display: none;
}

html[data-look="skype"] .skype2008-win-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #9ec8f2 0%, #6ba5e3 100%);
  color: #0b2647;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 0.78rem;
  border: 1px solid #4a84c2;
}

.skype2008-balance {
  background: #e3f2fd;
  border: 1px solid #5899db;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.7rem;
  color: #0d47a1;
}

html[data-look="skype"] .skype-menu-strip {
  display: flex;
}

html[data-look="skype"] .skype2008-profile-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: linear-gradient(180deg, #d8e9fa 0%, #c1dcf6 100%);
  border: 1px solid #8eb8e5;
  border-radius: 4px;
  padding: 8px;
}

.skype2008-user-line {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.84rem;
}

.skype2008-online-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #52c41a;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: bold;
}

.skype2008-mood-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.skype2008-avatar {
  width: 52px;
  height: 52px;
  border-radius: 4px;
  border: 2px solid #ffffff;
  object-fit: cover;
  flex-shrink: 0;
}

.skype2008-mood-bubble {
  flex: 1;
  background: #ffffff;
  border: 1px solid #9abce0;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 0.73rem;
  color: #546e7a;
  cursor: pointer;
}

.skype-link {
  color: #0277bd;
  text-decoration: underline;
}

.skype2008-personalize-row {
  display: flex;
  justify-content: flex-end;
}

.skype2008-personalize-btn,
.skype2008-new-btn {
  background: linear-gradient(180deg, #ffffff 0%, #e1edf8 100%);
  border: 1px solid #7aa7d6;
  border-radius: 11px;
  padding: 2px 10px;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  color: #1c3d63;
  cursor: pointer;
}

.skype2008-promo-bar {
  font-size: 0.7rem;
  color: #0d47a1;
  text-decoration: underline;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  padding-top: 4px;
}

.skype2008-list-box {
  flex: 1;
  background: #ffffff;
  border: 1px solid #9abce0;
  border-radius: 4px;
  padding: 4px;
  overflow-y: auto;
  min-height: 150px;
}

html[data-look="skype"] .skype-bottom-dock {
  display: flex;
}

.skype2008-bottom-buttons {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.skype2008-bottom-item {
  background: linear-gradient(180deg, #ffffff 0%, #e3ecf5 100%);
  border: 1px solid #9abce0;
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.skype2008-bottom-item:hover {
  filter: brightness(1.04);
}

.theme-preset-top-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: 6px;
  padding: 10px;
}

.theme-quick-btns {
  display: flex;
  gap: 6px;
}

/* View 1: Skype 2008 Dual-Pane (Left Contacts/Conversations Pane + Right Call/Chat Pane) */
html[data-view="skype-2008"] .workspace {
  grid-template-columns: 300px 1fr;
}
html[data-view="skype-2008"] .left-pane {
  display: flex;
}
html[data-view="skype-2008"] .side-pane {
  display: none;
}

/* Skype 2008 Sidebar Widgets */
.skype-menu-strip {
  display: flex;
  gap: 9px;
  font-size: 0.72rem;
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.65);
  border: var(--card-border);
  border-radius: 4px;
  color: var(--chat-text);
  flex-wrap: wrap;
}

.skype-menu-strip span {
  cursor: pointer;
}
.skype-menu-strip span:hover {
  text-decoration: underline;
}

.skype-left-search {
  display: flex;
  gap: 6px;
  align-items: center;
}

.skype-search-input {
  flex: 1;
  padding: 5px 8px;
  font-size: 0.76rem;
  border-radius: 12px;
  border: var(--input-border);
  background: var(--input-bg);
  color: var(--input-text);
  font-family: inherit;
}

.skype-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.skype-tab {
  padding: 5px 8px;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  background: var(--card-bg);
  color: var(--chat-text);
  border: var(--card-border);
  border-radius: 5px 5px 0 0;
  cursor: pointer;
  opacity: 0.78;
}

.skype-tab.active {
  opacity: 1;
  border-bottom: 2px solid #1967d2;
}

.skype-bottom-dock {
  margin-top: auto;
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: 5px;
  padding: 8px 10px;
  font-size: 0.74rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skype-people-online {
  font-size: 0.72rem;
  opacity: 0.78;
  border-bottom: 1px solid rgba(128, 128, 128, 0.2);
  padding-bottom: 4px;
}

.skype-dock-links {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
}

/* View 2: MSN Classic Split (Default: Chat + Right Display Pics) */
html[data-view="msn-split"] .workspace {
  grid-template-columns: 1fr 260px;
}

/* View 2: Discord / Skype 3-Column (Left Channels + Center Chat + Right Buddies) */
html[data-view="discord-3col"] .workspace {
  grid-template-columns: 210px 1fr 250px;
}
html[data-view="discord-3col"] .left-pane {
  display: flex;
}

/* View 3: ICQ Compact Dock (Left Buddy/PFP Dock + Wide Chat) */
html[data-view="icq-compact"] .workspace {
  grid-template-columns: 250px 1fr;
}
html[data-view="icq-compact"] .side-pane {
  order: -1;
}

/* View 4: mIRC Fullscreen Zen (100% Chat Only) */
html[data-view="irc-zen"] .workspace {
  grid-template-columns: 1fr;
}
html[data-view="irc-zen"] .side-pane,
html[data-view="irc-zen"] .left-pane {
  display: none;
}

/* View 5: Stream Theater Mode (Stacked Video / Wide Stage + Compact Right Chat/Side) */
html[data-view="theater"] .workspace {
  grid-template-columns: 1fr 240px;
}
html[data-view="theater"] .media-stage {
  min-height: 54vh;
}

.channel-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.channel-list li {
  padding: 6px 8px;
  border-radius: 5px;
  font-size: 0.8rem;
  cursor: pointer;
  opacity: 0.88;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.channel-list li.active,
.channel-list li:hover {
  background: rgba(128, 128, 128, 0.22);
  font-weight: 700;
  opacity: 1;
}

.room-badge {
  font-size: 0.66rem;
  padding: 1px 6px;
  border-radius: 8px;
  background: rgba(128, 128, 128, 0.25);
  font-weight: 600;
}

.room-unread {
  background: #ef4444;
  color: #ffffff;
}

/* Custom SVG Icons */
.ui-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.ui-icon-sm {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.msg-brand-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-right: 4px;
}

.msg-brand-icon svg {
  width: 14px;
  height: 14px;
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}

.card-header-row h4 {
  margin-bottom: 0 !important;
}

.mini-icon-btn {
  background: var(--btn-bg);
  color: var(--btn-text);
  border: var(--btn-border);
  border-radius: 4px;
  padding: 2px 7px;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* Active Room Top Bar */
.active-room-bar {
  background: var(--toolbar-bg);
  border: var(--chat-border);
  border-radius: 6px;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.active-room-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
}

.room-members-tag {
  font-size: 0.75rem;
  opacity: 0.78;
  background: rgba(128, 128, 128, 0.15);
  padding: 2px 8px;
  border-radius: 10px;
}

/* Friend List Actions & Quick Chips */
.friend-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.friend-mini-btn {
  background: rgba(128, 128, 128, 0.2);
  color: inherit;
  border: 1px solid rgba(128, 128, 128, 0.35);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
}

.friend-mini-btn:hover {
  filter: brightness(1.15);
}

.quick-friend-chips-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.friend-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.friend-chip {
  background: var(--card-bg);
  color: var(--chat-text);
  border: var(--card-border);
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}

.friend-chip:hover {
  filter: brightness(1.1);
}

/* ==========================================================================
   1080p 60fps Call & Screen Stream Stage
   ========================================================================== */
.media-stage {
  background: #0b0e14;
  color: #f2f3f5;
  border: 1px solid #262b36;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 290px;
  max-height: 58vh;
}

.media-stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.media-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
}

.live-pill {
  background: #ef4444;
  color: #ffffff;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.72rem;
}

.hd-pill {
  background: rgba(88, 101, 242, 0.25);
  border: 1px solid #5865f2;
  color: #a5b4fc;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.72rem;
}

.media-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.media-ctrl-btn {
  background: #232730;
  color: #ffffff;
  border: 1px solid #3a404d;
  border-radius: 5px;
  padding: 5px 10px;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}

.media-ctrl-btn:hover {
  background: #313744;
}

.media-ctrl-btn.danger {
  background: #dc2626;
  border-color: #ef4444;
}

.video-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 10px;
  min-height: 220px;
}

.video-tile {
  position: relative;
  background: #05070a;
  border: 1px solid #1e232d;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-tile video {
  width: 100%;
  height: 100%;
  max-height: 46vh;
  object-fit: contain;
  background: #000000;
}

.video-label {
  position: absolute;
  bottom: 6px;
  left: 8px;
  background: rgba(0, 0, 0, 0.68);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
}

/* Avatar Edit Overlay & PFP Picker Modal */
.avatar-edit-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.user-profile:hover .avatar-edit-overlay {
  opacity: 1;
}

.change-pfp-inline-btn {
  background: var(--btn-bg);
  color: var(--btn-text);
  border: var(--btn-border);
  border-radius: 4px;
  padding: 3px 10px;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}

.pfp-picker-section {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: 6px;
  padding: 10px;
}

.pfp-modal-preview {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid rgba(128, 128, 128, 0.4);
  flex-shrink: 0;
}

.pfp-picker-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label-title {
  font-size: 0.8rem;
  font-weight: 700;
}

.pfp-btn-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-upload-pfp {
  background: var(--btn-bg);
  color: var(--btn-text);
  border: var(--btn-border);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}

.pfp-presets {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.pfp-preset-btn {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  border: var(--card-border);
  background: var(--input-bg);
  cursor: pointer;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pfp-preset-btn:hover {
  transform: scale(1.08);
}

.chat-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 10px;
}

.chat-messages {
  flex: 1;
  background: var(--chat-bg);
  color: var(--chat-text);
  border: var(--chat-border);
  border-radius: 6px;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.system-msg {
  align-self: center;
  text-align: center;
  font-size: 0.81rem;
  opacity: 0.85;
  padding: 6px 14px;
  border-radius: 12px;
  background: rgba(128, 128, 128, 0.14);
}

/* Live Console Drawer */
.console-drawer {
  background: #0a0e12;
  color: #33ff66;
  border: 1px solid #1f5c2e;
  border-radius: 6px;
  height: 150px;
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
  overflow: hidden;
}

.console-header {
  background: #122216;
  color: #88ffaa;
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1f5c2e;
}

.console-clear-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #88ffaa;
  border: 1px solid #28cc52;
  border-radius: 3px;
  padding: 1px 6px;
  font-family: inherit;
  font-size: 0.68rem;
  cursor: pointer;
}

.console-logs {
  flex: 1;
  padding: 6px 10px;
  overflow-y: auto;
  font-size: 0.75rem;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.console-line {
  white-space: pre-wrap;
  word-break: break-all;
}

.console-line.out { color: #5cc0f7; }
.console-line.in  { color: #33ff66; }
.console-line.sys { color: #f59e0b; }

/* Sender Era Theme Accent Bar */
.msg-item[data-msg-theme="icq"] { border-left: 4px solid #39b54a; }
.msg-item[data-msg-theme="irc"] { border-left: 4px solid #33ff66; }
.msg-item[data-msg-theme="wlm"] { border-left: 4px solid #0078d7; }
.msg-item[data-msg-theme="skype"] { border-left: 4px solid #00aff0; }
.msg-item[data-msg-theme="telegram"] { border-left: 4px solid #2aabee; }
.msg-item[data-msg-theme="discord"] { border-left: 4px solid #5865f2; }

.msg-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 3px;
  font-size: 0.78rem;
}

.msg-sender {
  font-weight: 700;
}

.msg-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0.72;
  font-size: 0.7rem;
}

.msg-era-pill {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(128, 128, 128, 0.18);
  text-transform: uppercase;
  font-size: 0.64rem;
  font-weight: 600;
}

.msg-body {
  font-size: 0.94rem;
  line-height: 1.44;
  white-space: pre-wrap;
}

/* Toolbar */
.chat-toolbar {
  background: var(--toolbar-bg);
  border: var(--chat-border);
  border-radius: 6px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-emojis {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.emoji-btn {
  background: var(--card-bg);
  color: var(--chat-text);
  border: var(--card-border);
  border-radius: 4px;
  padding: 3px 7px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  cursor: pointer;
}

.emoji-btn:hover {
  filter: brightness(1.1);
}

.theme-tag-indicator {
  font-size: 0.75rem;
  opacity: 0.85;
}

/* Input Area */
.chat-input-area {
  display: flex;
  gap: 8px;
}

.message-input {
  flex: 1;
  background: var(--input-bg);
  color: var(--input-text);
  border: var(--input-border);
  border-radius: var(--btn-radius);
  padding: 11px 14px;
  font-family: inherit;
  font-size: 0.96rem;
  outline: none;
}

.send-btn {
  background: var(--btn-bg);
  color: var(--btn-text);
  border: var(--btn-border);
  border-radius: var(--btn-radius);
  padding: 0 24px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
}

.send-btn:active {
  transform: translateY(1px);
}

/* Side Pane */
.side-pane {
  background: var(--side-bg);
  border: var(--chat-border);
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.display-pic-box {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.display-pic-frame {
  position: relative;
  width: 116px;
  height: 116px;
  border-radius: 10px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.85);
  border: var(--card-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.display-pfp-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
  display: block;
}

.display-era-corner {
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--card-bg);
  border: var(--card-border);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.display-era-corner svg {
  width: 18px;
  height: 18px;
}

.display-pic-caption {
  font-size: 0.82rem;
  font-weight: 700;
}

.info-card {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.8rem;
}

.info-card h4 {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  opacity: 0.85;
}

.mix-summary-list,
.participant-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mix-summary-list li,
.participant-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.78rem;
}

.era-lore {
  line-height: 1.4;
  opacity: 0.85;
}

/* Footer */
.footerbar {
  background: var(--footer-bg);
  color: var(--footer-text);
  border-top: var(--chat-border);
  padding: 6px 16px;
  font-size: 0.75rem;
  display: flex;
  justify-content: space-between;
}

/* ==========================================================================
   FULLSCREEN LOGIN & ACCOUNT REGISTRATION SCREEN
   ========================================================================== */
.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: radial-gradient(circle at 50% 35%, #1e4d8c 0%, #0d2342 70%, #06101f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* Fullscreen Banned Account Screen & Appeal Portal */
.ban-screen {
  position: fixed;
  inset: 0;
  z-index: 300;
  background:
    radial-gradient(circle at 50% 35%, rgba(127, 29, 29, 0.35) 0%, rgba(10, 4, 4, 0.78) 85%),
    url('icons/ban-bg.png') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ban-card {
  width: 100%;
  max-width: 510px;
  max-height: 94dvh;
  background: rgba(20, 14, 14, 0.88);
  backdrop-filter: blur(5px);
  color: #f5f5f4;
  border: 2px solid #ef4444;
  border-radius: 10px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.88), 0 0 38px rgba(239, 68, 68, 0.45);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.ban-card.shake-impact {
  animation: banCardImpactShake 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) 0.22s both;
}

/* Ban Hammer Falling Onto PFP Animation Stage */
.ban-hammer-stage {
  position: relative;
  height: 128px;
  background: radial-gradient(circle at 50% 75%, rgba(239, 68, 68, 0.28) 0%, rgba(0, 0, 0, 0.55) 75%);
  border: 1px solid rgba(252, 165, 165, 0.35);
  border-radius: 8px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 14px;
  overflow: hidden;
}

.ban-pfp-target-wrap {
  position: relative;
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ban-target-pfp {
  width: 74px;
  height: 74px;
  border-radius: 10px;
  object-fit: cover;
  border: 3px solid #ef4444;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7);
  transform-origin: bottom center;
}

.ban-hammer-sprite {
  position: absolute;
  top: 4px;
  left: calc(50% + 6px);
  width: 92px;
  height: 92px;
  z-index: 4;
  pointer-events: none;
  transform-origin: 70% 88%;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.85));
}

.ban-impact-ring {
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 84px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid #facc15;
  transform: translate(-50%, 0) scale(0.2);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}

.ban-pfp-stamp {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translate(-50%, 0) rotate(-14deg) scale(0);
  background: rgba(220, 38, 38, 0.94);
  color: #fef08a;
  border: 2px solid #fef08a;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.8);
  z-index: 5;
  pointer-events: none;
}

.ban-hammer-stage.animate-slam .ban-hammer-sprite {
  animation: hammerFallSlam 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.ban-hammer-stage.animate-slam .ban-target-pfp {
  animation: pfpSquishImpact 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.ban-hammer-stage.animate-slam .ban-impact-ring {
  animation: impactShockwave 0.7s ease-out 0.25s forwards;
}

.ban-hammer-stage.animate-slam .ban-pfp-stamp {
  animation: stampSlam 0.55s cubic-bezier(0.18, 0.89, 0.32, 1.28) 0.3s forwards;
}

@keyframes hammerFallSlam {
  0% {
    transform: translate(35px, -65px) rotate(68deg) scale(1.15);
  }
  28% {
    transform: translate(-38px, -2px) rotate(-62deg) scale(1.05);
  }
  42% {
    transform: translate(-24px, -18px) rotate(-38deg) scale(1);
  }
  58% {
    transform: translate(-34px, 0px) rotate(-58deg) scale(1);
  }
  100% {
    transform: translate(-28px, -6px) rotate(-48deg) scale(1);
  }
}

@keyframes pfpSquishImpact {
  0%, 24% {
    transform: scaleX(1) scaleY(1);
    filter: brightness(1);
  }
  30% {
    transform: scaleX(1.42) scaleY(0.45);
    filter: brightness(1.8) sepia(1) hue-rotate(-40deg) saturate(4);
  }
  45% {
    transform: scaleX(0.92) scaleY(1.08);
    filter: grayscale(0.4);
  }
  60% {
    transform: scaleX(1.24) scaleY(0.68);
    filter: grayscale(0.65) contrast(1.2);
  }
  100% {
    transform: scaleX(1.16) scaleY(0.76);
    filter: grayscale(0.65) contrast(1.15);
  }
}

@keyframes impactShockwave {
  0% {
    transform: translate(-50%, 0) scale(0.3);
    opacity: 1;
    border-color: #fef08a;
  }
  100% {
    transform: translate(-50%, 0) scale(2.4);
    opacity: 0;
    border-color: #ef4444;
  }
}

@keyframes stampSlam {
  0% {
    transform: translate(-50%, 0) rotate(-14deg) scale(2.6);
    opacity: 0;
  }
  70% {
    transform: translate(-50%, 0) rotate(-14deg) scale(0.92);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, 0) rotate(-14deg) scale(1);
    opacity: 1;
  }
}

@keyframes banCardImpactShake {
  0%, 100% { transform: translate(0, 0); }
  15% { transform: translate(-10px, 8px) rotate(-1.2deg); }
  30% { transform: translate(10px, -8px) rotate(1.2deg); }
  45% { transform: translate(-7px, 5px) rotate(-0.8deg); }
  60% { transform: translate(6px, -4px) rotate(0.6deg); }
  75% { transform: translate(-3px, 2px); }
}

.ban-header {
  background: linear-gradient(135deg, #991b1b 0%, #dc2626 50%, #7f1d1d 100%);
  color: #ffffff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 2px solid #fca5a5;
}

.ban-shield-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: #dc2626;
  font-size: 1.65rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.ban-header h2 {
  font-size: 1.08rem;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.ban-subtitle {
  font-size: 0.76rem;
  opacity: 0.92;
}

.ban-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ban-info-box {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: 7px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ban-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.84rem;
}

.ban-reason-text {
  color: #fca5a5;
  text-align: right;
}

.ban-appeal-link-row {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(252, 165, 165, 0.4);
  border-radius: 7px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.81rem;
}

.ban-appeal-link {
  color: #fde047;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.ban-appeal-link:hover {
  color: #fef08a;
}

.ban-appeal-website-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  margin-top: 4px;
  border-radius: 6px;
  background: linear-gradient(180deg, #facc15 0%, #ca8a04 100%);
  color: #1c1917;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid #fef08a;
  box-shadow: 0 4px 14px rgba(250, 204, 21, 0.35);
  transition: transform 0.1s ease, filter 0.15s ease;
}

.ban-appeal-website-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.ban-appeal-form {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(253, 224, 71, 0.45);
  border-radius: 7px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ban-footer-actions {
  display: flex;
  justify-content: center;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ban-footer-actions .btn-secondary {
  color: #e7e5e4;
  border-color: rgba(255, 255, 255, 0.3);
}

.auth-card {
  width: 100%;
  max-width: 480px;
  max-height: 94dvh;
  background: var(--shell-bg);
  color: var(--chat-text);
  border: var(--chat-border);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.65);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.auth-header {
  background: var(--statusbar-bg);
  color: var(--statusbar-text);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: var(--statusbar-border);
}

.auth-header-text {
  flex: 1;
  min-width: 0;
}

.auth-conn-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  color: #fde68a;
  white-space: nowrap;
}

.auth-conn-pill.online {
  background: rgba(22, 163, 74, 0.28);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.45);
}

.auth-logo-badge {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-logo-badge svg {
  width: 40px;
  height: 40px;
}

.auth-header h2 {
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.auth-subtitle {
  font-size: 0.76rem;
  opacity: 0.86;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--toolbar-bg);
  border-bottom: var(--chat-border);
}

.auth-tab {
  padding: 10px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  background: transparent;
  color: var(--chat-text);
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  opacity: 0.72;
}

.auth-tab.active {
  opacity: 1;
  border-bottom-color: #1967d2;
  background: rgba(255, 255, 255, 0.25);
}

.auth-error-banner {
  margin: 12px 16px 0 16px;
  padding: 8px 10px;
  border-radius: 5px;
  background: rgba(220, 38, 38, 0.14);
  border: 1px solid #dc2626;
  color: #dc2626;
  font-size: 0.79rem;
  font-weight: 600;
}

.auth-success-banner {
  margin: 12px 16px 0 16px;
  padding: 8px 10px;
  border-radius: 5px;
  background: rgba(22, 163, 74, 0.16);
  border: 1px solid #16a34a;
  color: #15803d;
  font-size: 0.79rem;
  font-weight: 600;
}

.reg-pfp-picker {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reg-pfp-preview {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(128, 128, 128, 0.4);
}

.auth-server-details {
  padding: 8px 16px 12px 16px;
  border-top: 1px solid rgba(128, 128, 128, 0.2);
  font-size: 0.74rem;
  opacity: 0.85;
}

.auth-server-details summary {
  cursor: pointer;
  font-weight: 600;
}

.auth-form {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.username-check-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.username-check-row .field-input {
  flex: 1;
}

.name-avail-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 4px;
  background: rgba(128, 128, 128, 0.2);
  white-space: nowrap;
}

.name-avail-badge.ok {
  background: rgba(34, 197, 94, 0.2);
  color: #16a34a;
  border: 1px solid #22c55e;
}

.name-avail-badge.taken {
  background: rgba(239, 68, 68, 0.2);
  color: #dc2626;
  border: 1px solid #ef4444;
}

.field-hint {
  font-size: 0.71rem;
  opacity: 0.75;
  font-weight: 400;
}

.auth-submit-btn {
  width: 100%;
  padding: 10px;
  font-size: 0.9rem;
  margin-top: 4px;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
}

.modal-dialog {
  width: 100%;
  max-width: 440px;
  background: var(--shell-bg);
  color: var(--chat-text);
  border: var(--chat-border);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.modal-dialog-lg {
  max-width: 580px;
}

/* Settings Center Multi-Tab Navigation */
.settings-tabs-nav {
  display: flex;
  background: var(--toolbar-bg);
  border-bottom: var(--chat-border);
  padding: 6px 10px 0 10px;
  gap: 6px;
}

.settings-tab-btn {
  flex: 1;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--chat-text);
  background: var(--card-bg);
  border: var(--card-border);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  opacity: 0.72;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.admin-tab-btn {
  background: linear-gradient(180deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e !important;
  border-color: #f59e0b !important;
}

/* Founder / Rebooter Special Perms Styling */
.rebooter-command-bar {
  background: linear-gradient(90deg, #78350f 0%, #b45309 50%, #92400e 100%);
  color: #ffffff;
  border-bottom: 1px solid #f59e0b;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.rebooter-pill-btn {
  background: linear-gradient(180deg, #fde68a 0%, #f59e0b 100%);
  color: #451a03;
  border: 1px solid #ffffff;
  border-radius: 5px;
  padding: 4px 9px;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.rebooter-reports-btn {
  background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff;
  border: 1px solid #fecaca;
  border-radius: 5px;
  padding: 4px 9px;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.report-trigger-btn {
  color: #dc2626 !important;
  border-color: rgba(220, 38, 38, 0.45) !important;
}

.msg-mod-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
}

.msg-action-btn {
  font-family: inherit;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  cursor: pointer;
  border: 1px solid rgba(128, 128, 128, 0.45);
  background: rgba(128, 128, 128, 0.12);
  color: var(--chat-text);
}

.msg-action-btn:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: #ef4444;
  color: #dc2626;
}

.msg-action-btn.ban-btn {
  background: #dc2626;
  color: #ffffff;
  border-color: #991b1b;
}

.msg-action-btn.ban-btn:hover {
  background: #b91c1c;
  color: #ffffff;
}

.report-card-msg {
  align-self: stretch;
  background: var(--card-bg);
  color: var(--chat-text);
  border: 2px solid #ef4444;
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
}

.report-card-msg.resolved {
  border-color: #16a34a;
  opacity: 0.82;
}

.report-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  border-bottom: 1px solid rgba(128, 128, 128, 0.25);
  padding-bottom: 4px;
}

.report-status-pill {
  font-size: 0.68rem;
  padding: 1px 7px;
  border-radius: 10px;
  background: #dc2626;
  color: #ffffff;
}

.report-card-msg.resolved .report-status-pill {
  background: #16a34a;
}

.report-evidence-box {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.08);
  border-left: 3px solid #f59e0b;
  border-radius: 3px;
}

.report-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 4px;
}

.rebooter-quick-announce {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 170px;
}

.rebooter-mini-input {
  flex: 1;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #fcd34d;
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.74rem;
}

.rebooter-mini-input::placeholder {
  color: rgba(254, 243, 199, 0.75);
}

.rebooter-mini-select,
.rebooter-mini-btn {
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(253, 230, 138, 0.7);
  background: rgba(0, 0, 0, 0.3);
  color: #fef3c7;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.rebooter-mini-btn:hover {
  background: rgba(245, 158, 11, 0.45);
  color: #ffffff;
}

.founder-crown-badge {
  background: linear-gradient(90deg, #f59e0b 0%, #eab308 50%, #d97706 100%);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 10px;
  letter-spacing: 0.03em;
  box-shadow: 0 1px 4px rgba(245, 158, 11, 0.45);
}

.msg-founder-tag {
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-size: 0.63rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 5px;
  letter-spacing: 0.03em;
}

.admin-hero-banner {
  background: linear-gradient(135deg, #78350f 0%, #b45309 50%, #d97706 100%);
  color: #ffffff;
  padding: 10px 12px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.8rem;
}

.admin-announce-msg {
  align-self: stretch;
  text-align: center;
  background: linear-gradient(90deg, #b45309 0%, #d97706 50%, #b45309 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #fde68a;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.auth-switch-footer {
  text-align: center;
  font-size: 0.78rem;
  padding-top: 6px;
  border-top: 1px solid rgba(128, 128, 128, 0.2);
}

.settings-tab-btn:hover {
  opacity: 0.92;
}

.settings-tab-btn.active {
  opacity: 1;
  background: var(--shell-bg);
  border-top: 3px solid #1e88d3;
}

.settings-tab-pane {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.settings-danger-zone {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(128, 128, 128, 0.3);
}

.presence-dot.busy { background: #ef4444; }
.presence-dot.away { background: #f59e0b; }

.modal-header {
  background: var(--statusbar-bg);
  color: var(--statusbar-text);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.3rem;
  cursor: pointer;
}

.modal-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field-label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.83rem;
  font-weight: 600;
}

.field-input {
  padding: 8px 10px;
  background: var(--input-bg);
  color: var(--input-text);
  border: var(--input-border);
  border-radius: 4px;
  font-family: inherit;
}

.field-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.81rem;
  cursor: pointer;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.btn-primary, .btn-secondary {
  padding: 8px 14px;
  border-radius: var(--btn-radius);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-text);
  border: var(--btn-border);
}

.btn-secondary {
  background: transparent;
  color: var(--chat-text);
  border: var(--chat-border);
}

.hidden {
  display: none !important;
}

.rebooter-unban-btn {
  background: linear-gradient(180deg, #22c55e, #15803d);
  color: #ffffff;
  border: 1px solid #14532d;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.rebooter-unban-btn:hover {
  filter: brightness(1.1);
}

.msg-action-btn.unban-btn {
  background: #16a34a;
  color: #ffffff;
  border-color: #15803d;
}

.msg-action-btn.unban-btn:hover {
  background: #15803d;
}

.banned-users-dm-box {
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.45);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.banned-users-dm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 800;
}

.banned-users-dm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Website Maintenance Screen */
.maintenance-screen {
  position: fixed;
  inset: 0;
  z-index: 310;
  background: radial-gradient(circle at 50% 35%, #422006 0%, #1c1917 65%, #09090b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.maintenance-card {
  width: 100%;
  max-width: 500px;
  background: rgba(24, 24, 27, 0.94);
  color: #f4f4f5;
  border: 2px solid #f59e0b;
  border-radius: 10px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 35px rgba(245, 158, 11, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.maintenance-header {
  background: linear-gradient(135deg, #92400e 0%, #d97706 50%, #78350f 100%);
  color: #ffffff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 2px solid #fcd34d;
}

.maintenance-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fef3c7;
  color: #b45309;
  font-size: 1.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Voice Call Stage (Side-by-Side Circular PFPs on Pure Black Background + Green Speaking Ring) */
.voice-avatar-stage {
  background: #000000;
  min-height: 220px;
  padding: 28px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  border-radius: 6px;
}

.voice-participant-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.voice-pfp-circle {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  padding: 3px;
  background: transparent;
  transition: box-shadow 0.12s ease, transform 0.12s ease;
}

.voice-pfp-circle img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #18181b;
}

/* Green Circle Speaking Ring around PFP when person speaks */
.voice-pfp-circle.speaking {
  box-shadow: 0 0 0 4px #23a55a, 0 0 18px rgba(35, 165, 90, 0.85);
  transform: scale(1.03);
}

.voice-mute-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #dc2626;
  color: #ffffff;
  border: 2px solid #000000;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.voice-participant-name {
  color: #e4e4e7;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.call-volume-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.call-vol-label {
  font-size: 0.72rem;
  color: #ffffff;
  min-width: 48px;
}

.call-volume-slider {
  width: 72px;
  height: 4px;
  accent-color: #23a55a;
  cursor: pointer;
}

.media-ctrl-btn.muted-active {
  background: #dc2626 !important;
  color: #ffffff !important;
  border-color: #991b1b !important;
}

.room-right-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.room-delete-btn {
  background: rgba(220, 38, 38, 0.15);
  color: #ef4444;
  border: 1px solid rgba(220, 38, 38, 0.4);
  border-radius: 3px;
  padding: 0 5px;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.room-delete-btn:hover {
  background: #dc2626;
  color: #ffffff;
}

.incoming-call-banner {
  position: fixed;
  inset: 0;
  z-index: 9800;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeInCallPopup 0.2s ease-out;
}

@keyframes fadeInCallPopup {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.incoming-call-popup-card {
  width: 100%;
  max-width: 360px;
  background: radial-gradient(circle at top, #0f172a 0%, #020617 100%);
  color: #ffffff;
  border: 2px solid #22c55e;
  border-radius: 18px;
  padding: 26px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.75), 0 0 32px rgba(34, 197, 94, 0.35);
}

.incoming-call-badge-pill {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.5);
}

.incoming-call-pfp-wrap {
  width: 108px;
  height: 108px;
  margin: 8px 0 4px;
}

.incoming-call-pfp {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.incoming-call-caller-name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #f8fafc;
}

.incoming-call-subtext {
  font-size: 0.84rem;
  color: #94a3b8;
  margin-bottom: 6px;
}

.incoming-call-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}

.incoming-call-btn {
  flex: 1;
  min-width: 96px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: transform 0.14s ease, filter 0.14s ease;
}

.incoming-call-btn:hover {
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.1);
}

.incoming-call-btn.answer-voice {
  background: linear-gradient(180deg, #22c55e, #15803d);
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.45);
}

.incoming-call-btn.answer-video {
  background: linear-gradient(180deg, #3b82f6, #1d4ed8);
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.45);
}

.incoming-call-btn.decline {
  background: linear-gradient(180deg, #ef4444, #b91c1c);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.45);
}

.friend-req-row {
  background: rgba(250, 204, 21, 0.14);
  border: 1px solid rgba(250, 204, 21, 0.45);
  border-radius: 4px;
  padding: 4px 6px !important;
  margin-bottom: 4px;
}

.mini-icon-btn.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #1d4ed8;
  font-weight: 700;
}

/* Animated Typing Bubble */
.typing-indicator-bubble {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 10px;
  padding: 5px 12px;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.88);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 0.76rem;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
  align-self: flex-start;
  animation: typingBubbleIn 0.18s ease-out;
}

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

.typing-bubble-pfp {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #38bdf8;
}

.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.typing-dots .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #38bdf8;
  animation: typingDotBounce 1.2s infinite ease-in-out;
}

.typing-dots .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots .dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingDotBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
  40% { transform: translateY(-4px); opacity: 1; }
}

/* Bouncy Calling Effect while ringing / waiting for peer to pick up */
.voice-pfp-circle.calling-ringing {
  border-color: #f59e0b;
  animation: callingBounce 0.85s infinite cubic-bezier(0.28, 0.84, 0.42, 1),
             callingRingPulse 1.3s infinite ease-in-out;
}

@keyframes callingBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-14px) scale(1.06); }
  75% { transform: translateY(-4px) scale(1.02); }
}

@keyframes callingRingPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.8), 0 0 18px rgba(245, 158, 11, 0.55);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(245, 158, 11, 0), 0 0 28px rgba(56, 189, 248, 0.65);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0), 0 0 18px rgba(245, 158, 11, 0.55);
  }
}

.call-device-select {
  max-width: 128px;
  font-size: 0.7rem;
  padding: 3px 6px;
  border-radius: 4px;
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid #475569;
  cursor: pointer;
}

/* @Ping / Mention Badges & Autocomplete Popup */
.mention-pill {
  display: inline-block;
  padding: 1px 6px;
  margin: 0 1px;
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.18);
  color: #2563eb;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.mention-pill.mention-me {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.28), rgba(234, 179, 8, 0.22));
  color: #b45309;
  border-color: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.35);
}

.msg-item.mentioned-me {
  background: rgba(245, 158, 11, 0.12) !important;
  border-left: 4px solid #f59e0b !important;
  padding-left: 8px;
  border-radius: 4px;
}

.mention-autocomplete-popup {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 6px 10px;
  background: var(--shell-bg, #f8fafc);
  border-top: 1px solid rgba(59, 130, 246, 0.35);
  border-bottom: 1px solid rgba(59, 130, 246, 0.35);
  max-height: 120px;
  overflow-y: auto;
  align-items: center;
}

.mention-suggestion-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.1);
  color: inherit;
  cursor: pointer;
}

.mention-suggestion-btn:hover {
  background: #2563eb;
  color: #ffffff;
}

@media (max-width: 760px) {
  .workspace { grid-template-columns: 1fr; padding: 8px; }
  .side-pane { display: none; }
  .action-label, .btn-mixer-label { display: none; }
}
