:root {
  --yahoo-purple-dark: #0b2e6b;
  --yahoo-purple-mid: #0047ab;
  --yahoo-purple-light: #1e64c8;
  --yahoo-gold: #ff7a00;
  --xp-bg: #ece9d8;
  --xp-panel: #f5f3ea;
  --xp-border-light: #ffffff;
  --xp-border-dark: #808080;
  --xp-border-deep: #404040;
  --xp-selection: #0047ab;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 12px;
  color: #111111;
  background-color: var(--xp-bg);
}

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

[hidden] {
  display: none !important;
}

/* ================= SIGN-IN & REGISTRATION SCREEN ================= */
.login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 25%, #1a5fd0 0%, #003882 65%, #07193d 100%);
}

.login-card {
  width: 440px;
  max-width: 95vw;
  max-height: 94vh;
  overflow-y: auto;
  background: var(--xp-bg);
  border-top: 2px solid var(--xp-border-light);
  border-left: 2px solid var(--xp-border-light);
  border-right: 2px solid var(--xp-border-deep);
  border-bottom: 2px solid var(--xp-border-deep);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

.yahoo-purple-banner {
  background: linear-gradient(180deg, #1b63d4 0%, #003b8e 100%);
  color: #ffffff;
  padding: 10px 14px;
  border-bottom: 2px solid #ff7a00;
}

.yahoo-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.y-badge,
.y-badge-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-weight: 900;
  font-style: italic;
  background: linear-gradient(180deg, #ff9d3b 0%, #e65c00 100%);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  border: 1px solid #ffffff;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.45);
}

.y-badge {
  width: 38px;
  height: 38px;
  font-size: 17px;
  border-radius: 6px;
}

.y-badge-sm {
  width: 28px;
  height: 28px;
  font-size: 13px;
  border-radius: 4px;
  flex-shrink: 0;
}

.yahoo-title-stack h1 {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.2px;
}

.yahoo-subtitle {
  font-size: 10px;
  color: #ffd4b3;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #d8d4c2;
  border-bottom: 1px solid #808080;
}

.auth-tab {
  padding: 7px 6px;
  font-family: Tahoma, sans-serif;
  font-size: 11px;
  font-weight: bold;
  background: #d8d4c2;
  border: none;
  border-right: 1px solid #808080;
  cursor: pointer;
  color: #333;
}

.auth-tab.active {
  background: var(--xp-bg);
  color: #003b8e;
  box-shadow: inset 0 2px 0 #ff7a00;
}

.login-form {
  padding: 12px 16px 14px;
}

.saved-profiles-box {
  background: #ebf2fc;
  border: 1px solid #8eb0de;
  padding: 6px 8px;
  margin-bottom: 10px;
}

.saved-profile-controls {
  display: flex;
  gap: 5px;
  align-items: center;
}

.saved-profile-controls select,
.saved-profile-controls input {
  flex: 1;
  min-width: 0;
}

.label-with-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.security-question-banner {
  background: #fff4eb;
  border: 1px solid #e67300;
  color: #003b8e;
  font-weight: bold;
  padding: 6px 8px;
  font-size: 12px;
}

.forgot-step-box {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #aca899;
}

.prof-security-section {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #ccc8b8;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}

.form-row label {
  font-weight: bold;
  font-size: 11px;
  color: #222;
}

.field-hint {
  display: block;
  color: #5f6368;
  font-size: 10px;
}

.field-error-msg {
  display: none;
  color: #d93025;
  font-size: 10px;
  margin-top: 2px;
}

.form-row input,
.xp-input-sm {
  padding: 4px 6px;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 12px;
  background: #ffffff;
  border-top: 1px solid var(--xp-border-deep);
  border-left: 1px solid var(--xp-border-deep);
  border-right: 1px solid var(--xp-border-light);
  border-bottom: 1px solid var(--xp-border-light);
  outline: none;
}

/* Validation after interaction per modern-web-guidance (validate-input-after-interaction) */
.form-row input:user-invalid,
.form-row input.user-invalid-fallback {
  border-color: #d93025;
  background-color: #fce8e6;
}

.form-row input:user-invalid + .field-error-msg,
.form-row input.user-invalid-fallback + .field-error-msg {
  display: block;
}

.form-row input:user-valid {
  border-color: #188038;
}

.form-Row-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 8px 0 10px;
}

.xp-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  cursor: pointer;
}

.login-error {
  background: #fff0f0;
  border: 1px solid #cc0000;
  color: #990000;
  padding: 6px 8px;
  font-size: 11px;
  margin-bottom: 10px;
}

.login-actions {
  display: flex;
  justify-content: center;
  margin-top: 6px;
}

.login-footer-links {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid #ccc8b8;
  text-align: center;
  font-size: 11px;
  color: #444;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.link-btn {
  background: none;
  border: none;
  color: #0047ab;
  font-weight: bold;
  text-decoration: underline;
  cursor: pointer;
  font-size: 11px;
  padding: 0;
}

.link-btn:hover {
  color: #d95b00;
}

/* ================= CLASSIC CONTROLS ================= */
.xp-button {
  font-family: Tahoma, Arial, sans-serif;
  font-size: 11px;
  padding: 4px 11px;
  background: linear-gradient(180deg, #ffffff 0%, #ece9d8 85%, #d6d2c2 100%);
  color: #111;
  border: 1px solid #003c74;
  border-radius: 3px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 #fff;
}

.xp-button:hover {
  border-color: #e59700;
  box-shadow: inset 0 0 2px #ffc73c;
}

.xp-button:active {
  background: #d6d2c2;
}

.xp-button-primary {
  font-weight: bold;
  border: 1.5px solid #003c74;
  box-shadow: inset 0 0 0 1px #8ab3e8;
}

.xp-btn-sm {
  padding: 3px 7px;
  font-size: 11px;
}

.xp-select {
  font-family: Tahoma, Arial, sans-serif;
  font-size: 11px;
  padding: 2px 4px;
  background: #ffffff;
  border: 1px solid #7f9db9;
}

/* ================= MAIN WORKSPACE & MULTI-ROOM TAB BAR ================= */
.chat-workspace {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.xp-menubar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 8px;
  background: var(--xp-bg);
  border-bottom: 1px solid #aca899;
}

.xp-menubar-left,
.xp-menubar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.xp-menu-item {
  background: transparent;
  border: 1px solid transparent;
  padding: 2px 7px;
  font-family: Tahoma, sans-serif;
  font-size: 11px;
  cursor: pointer;
}

.xp-menu-item:hover {
  background: #316ac5;
  color: #ffffff;
}

.room-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 0;
  background: #d6d2c2;
  border-bottom: 2px solid #003b8e;
  gap: 8px;
}

.room-tabs-list {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  overflow-x: auto;
  flex: 1;
}

.room-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-family: Tahoma, sans-serif;
  font-size: 11px;
  font-weight: bold;
  background: #e4e1d3;
  color: #333;
  border: 1px solid #808080;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  cursor: pointer;
  white-space: nowrap;
}

.room-tab:hover {
  background: #f3f1e8;
}

.room-tab.active {
  background: linear-gradient(180deg, #1b63d4 0%, #003b8e 100%);
  color: #ffffff;
  border-color: #002861;
  box-shadow: inset 0 2px 0 #ff7a00;
}

.room-tab-unread {
  background: #ff6b00;
  color: #ffffff;
  font-size: 10px;
  padding: 0 5px;
  border-radius: 8px;
  font-weight: bold;
}

.room-tab-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 2px;
  font-size: 10px;
  line-height: 1;
  color: inherit;
  opacity: 0.8;
}

.room-tab-close:hover {
  background: #d9534f;
  color: #ffffff;
  opacity: 1;
}

.room-tabs-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-bottom: 3px;
}

/* ================= VIEW 1: HOME BUDDY LIST & ROOM SELECTOR ================= */
.home-hub-view {
  display: grid;
  grid-template-columns: 310px 1fr;
  flex: 1;
  min-height: 0;
  padding: 6px;
  gap: 6px;
}

.buddy-home-column {
  display: flex;
  flex-direction: column;
  background: var(--xp-panel);
  border: 1px solid #808080;
  min-height: 0;
}

.buddy-self-card {
  padding: 8px;
  background: linear-gradient(180deg, #eef5ff 0%, #d6e6ff 100%);
  border-bottom: 1px solid #84a9e0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.buddy-self-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.buddy-self-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.self-username-sub {
  font-size: 10px;
  color: #555;
}

.buddy-panel-header {
  font-weight: bold;
  font-size: 11px;
  padding: 5px 8px;
  background: linear-gradient(90deg, #003b8e 0%, #1b63d4 100%);
  color: #ffb366;
}

.buddy-Quick-pm-bar {
  display: flex;
  gap: 4px;
  padding: 6px;
  background: var(--xp-bg);
  border-top: 1px solid #aca899;
}

.buddy-Quick-pm-bar input {
  flex: 1;
  min-width: 0;
}

.room-selector-column {
  display: flex;
  flex-direction: column;
  background: var(--xp-panel);
  border: 1px solid #808080;
  min-height: 0;
}

.selector-split-grid {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 8px;
  padding: 8px;
  flex: 1;
  min-height: 0;
}

.selector-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: var(--xp-bg);
  border-top: 1px solid #aca899;
}

.selector-preview-text {
  font-weight: bold;
  color: #003b8e;
}

/* ================= VIEW 2: ACTIVE ROOM VIEW ================= */
.active-room-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.yahoo-room-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: linear-gradient(180deg, #1b63d4 0%, #003b8e 100%);
  color: #ffffff;
  border-bottom: 2px solid var(--yahoo-gold);
}

.room-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.room-title-group {
  min-width: 0;
}

.room-title-group h2 {
  margin: 0;
  font-size: 14px;
  color: #ffb366;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.room-title-group p {
  margin: 1px 0 0;
  font-size: 11px;
  color: #dbeaff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.room-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.status-selector-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
}

.workspace-split {
  display: grid;
  grid-template-columns: 1fr 255px;
  flex: 1;
  min-height: 0;
  padding: 4px;
  gap: 4px;
}

/* ================= CHAT COLUMN & TRANSCRIPT ================= */
.chat-main-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  gap: 3px;
}

.chat-transcript {
  flex: 1;
  background: #ffffff;
  border-top: 2px solid var(--xp-border-dark);
  border-left: 2px solid var(--xp-border-dark);
  border-right: 1px solid var(--xp-border-light);
  border-bottom: 1px solid var(--xp-border-light);
  padding: 8px 10px;
  overflow-y: auto;
  line-height: 1.45;
  user-select: text;
}

.chat-line {
  margin-bottom: 5px;
  word-wrap: break-word;
}

.chat-rich-body.chat-multi-paragraph {
  display: block;
  margin-top: 2px;
}

.chat-paragraph {
  margin: 0 0 6px 0;
  line-height: 1.45;
}

.chat-paragraph:last-child {
  margin-bottom: 0;
}

.chat-line-system {
  color: #666666;
  font-size: 11px;
}

.chat-line-join {
  color: #006600;
  font-size: 11px;
}

.chat-line-leave {
  color: #804000;
  font-size: 11px;
}

.chat-line-emote {
  color: #c65102;
  font-style: italic;
  font-weight: bold;
}

.chat-line-think {
  color: #005599;
  font-weight: bold;
}

.chat-line-roll {
  color: #b34700;
  font-weight: bold;
  background: #fff5eb;
  border-left: 3px solid #ff7a00;
  padding: 2px 6px;
}

.chat-sender {
  font-weight: bold;
  color: #003b8e;
  cursor: pointer;
}

.chat-sender.is-self {
  color: #d95b00;
}

.chat-sender:hover {
  text-decoration: underline;
}

.yahoo-smiley-inline {
  display: inline-block;
  font-size: 15px;
  vertical-align: middle;
  line-height: 1;
  margin: 0 1px;
}

/* ================= FORMATTING TOOLBAR & FLOATING MENUS ================= */
.formatting-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  background: var(--xp-panel);
  border: 1px solid #aca899;
  flex-wrap: wrap;
}

.toolbar-divider {
  width: 1px;
  height: 18px;
  background: #aca899;
  margin: 0 2px;
}

.xp-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: Tahoma, sans-serif;
  font-size: 11px;
  padding: 2px 7px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
}

.xp-tool-btn:hover {
  background: #ffffff;
  border-color: #7f9db9;
}

.xp-tool-btn[aria-pressed="true"] {
  background: #c1d2ee;
  border-color: #316ac5;
}

.color-swatch-inline {
  display: inline-block;
  width: 11px;
  height: 11px;
  background: #000080;
  border: 1px solid #333;
}

.emote-target-badge {
  font-size: 10px;
  color: #d95b00;
  font-weight: bold;
}

.dropdown-anchor {
  position: relative;
}

.xp-floating-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 5px);
  background: var(--xp-bg);
  border-top: 2px solid var(--xp-border-light);
  border-left: 2px solid var(--xp-border-light);
  border-right: 2px solid var(--xp-border-deep);
  border-bottom: 2px solid var(--xp-border-deep);
  padding: 8px 10px;
  box-shadow: 2px 4px 14px rgba(0, 0, 0, 0.38);
  z-index: 100;
  min-width: 250px;
}

.popover-title {
  font-weight: bold;
  color: #003b8e;
  border-bottom: 1px solid #aca899;
  padding-bottom: 4px;
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
}

.popover-title small {
  font-weight: normal;
  color: #555;
  font-size: 10px;
}

.color-effect-row,
.color-pickers-row,
.preset-fades {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 11px;
  white-space: nowrap;
}

.preset-fade-btn {
  font-size: 10px;
  padding: 2px 6px;
  cursor: pointer;
}

.smiley-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  width: 245px;
}

.smiley-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px;
  background: #fff;
  border: 1px solid #ccc;
  cursor: pointer;
  font-size: 12px;
}

.smiley-btn:hover {
  background: #e8f0fe;
  border-color: #316ac5;
}

.emotes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  width: 340px;
  max-height: 210px;
  overflow-y: auto;
}

.emote-chip-btn {
  text-align: left;
  padding: 3px 6px;
  background: #ffffff;
  border: 1px solid #c5c0b0;
  font-family: Tahoma, sans-serif;
  font-size: 11px;
  cursor: pointer;
}

.emote-chip-btn:hover {
  background: #e8f1ff;
  border-color: #0047ab;
  color: #003b8e;
  font-weight: bold;
}

.chat-input-row {
  display: flex;
  align-items: stretch;
  gap: 4px;
}

.chat-text-input {
  flex: 1;
  width: 100%;
  field-sizing: content;
  min-height: 44px;
  max-height: 110px;
  resize: vertical;
  overflow-y: auto;
  line-height: 1.35;
  padding: 5px 8px;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 12px;
  color: #000080;
  border-top: 2px solid var(--xp-border-dark);
  border-left: 2px solid var(--xp-border-dark);
  border-right: 1px solid var(--xp-border-light);
  border-bottom: 1px solid var(--xp-border-light);
}

/* ================= ROSTER & BUDDY LIST ================= */
.chat-sidebar {
  display: flex;
  flex-direction: column;
  background: var(--xp-panel);
  border: 1px solid #808080;
  min-height: 0;
}

.roster-hint {
  font-size: 10px;
  color: #555;
  padding: 3px 6px;
  background: #ece9d8;
  border-bottom: 1px solid #d4d0c8;
}

.roster-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  background: #ffffff;
  overflow-y: auto;
}

.roster-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
  cursor: pointer;
  border-bottom: 1px solid #f2f2f2;
  font-size: 11px;
}

.roster-item:hover {
  background: #eef4ff;
}

.roster-item.selected {
  background: var(--xp-selection);
  color: #ffffff;
}

.roster-user-left {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.roster-username {
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-action-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 4px;
  background: var(--xp-bg);
  border-top: 1px solid #aca899;
}

.buddy-add-bar {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--xp-bg);
  border-bottom: 1px solid #aca899;
}

.buddy-add-bar input {
  flex: 1;
  min-width: 0;
}

.buddy-groups-container {
  flex: 1;
  background: #ffffff;
  overflow-y: auto;
  padding: 4px;
}

.buddy-group-header {
  font-weight: bold;
  color: #003b8e;
  padding: 3px 4px;
  background: #e6f0ff;
  border-bottom: 1px solid #b6d0f7;
  font-size: 11px;
}

.buddy-entry {
  display: flex;
  flex-direction: column;
  padding: 4px 6px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}

.buddy-entry:hover {
  background: #eef4ff;
}

.buddy-entry-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.buddy-room-sub {
  font-size: 10px;
  color: #006600;
  margin-left: 18px;
}

/* ================= MODAL DIALOGS ================= */
dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(1px);
}

.xp-dialog {
  padding: 0;
  border-top: 2px solid var(--xp-border-light);
  border-left: 2px solid var(--xp-border-light);
  border-right: 2px solid var(--xp-border-deep);
  border-bottom: 2px solid var(--xp-border-deep);
  background: var(--xp-bg);
  color: #111;
  width: 430px;
  max-width: 94vw;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}

.xp-dialog-wide {
  width: 660px;
}

.xp-dialog-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  background: linear-gradient(90deg, #003b8e 0%, #1b63d4 100%);
  color: #ffffff;
  font-weight: bold;
  font-size: 12px;
  border-bottom: 2px solid #ff7a00;
}

.xp-dialog-close {
  background: #d9534f;
  color: #fff;
  border: 1px solid #fff;
  width: 18px;
  height: 18px;
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.xp-dialog-body {
  padding: 10px 12px;
}

.room-browser-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 8px;
  height: 310px;
}

.room-browser-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.browser-col-header {
  font-weight: bold;
  font-size: 11px;
  margin-bottom: 4px;
  color: #333;
}

.browser-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  background: #ffffff;
  border: 1px solid #7f9db9;
  overflow-y: auto;
}

.browser-list-item {
  padding: 5px 8px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.browser-list-item:hover {
  background: #eef4ff;
}

.browser-list-item.active {
  background: var(--xp-selection);
  color: #ffffff;
}

.xp-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-top: 1px solid #aca899;
  background: var(--xp-bg);
}

.footer-right-btns {
  display: flex;
  gap: 6px;
}

.profile-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ccc;
}

.profile-avatar-box {
  width: 42px;
  height: 42px;
  background: #fff;
  border: 1px solid #888;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.profile-card-header h3 {
  margin: 0;
  color: #003b8e;
}

.profile-status-tag {
  font-size: 10px;
  color: #006600;
}

.profile-card-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.profile-web-link-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  margin-top: 2px;
  flex-wrap: wrap;
}

.profile-web-link {
  color: #0047ab;
  font-weight: bold;
  text-decoration: underline;
  cursor: pointer;
  word-break: break-all;
}

.profile-web-link:hover {
  color: #e65c00;
}

.prof-bio-textarea {
  width: 100%;
  resize: vertical;
  min-height: 54px;
  max-height: 130px;
  padding: 5px 6px;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 11px;
  border-top: 2px solid var(--xp-border-dark);
  border-left: 2px solid var(--xp-border-dark);
  border-right: 1px solid var(--xp-border-light);
  border-bottom: 1px solid var(--xp-border-light);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* ================= DEDICATED NATIVE IM WINDOW (pm.html) ================= */
.pm-standalone-body {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: var(--xp-bg);
}

.pm-standalone-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 6px;
  gap: 4px;
}

.pm-standalone-transcript {
  flex: 1;
}

.pm-status-line {
  font-size: 10px;
  color: #555;
  min-height: 14px;
  padding: 0 4px;
}

.buzz-btn {
  background: linear-gradient(180deg, #ffea85 0%, #ff9900 100%);
  border: 1px solid #993300;
  color: #660000;
  font-weight: bold;
  font-size: 11px;
  padding: 3px 9px;
  cursor: pointer;
  border-radius: 3px;
}

@keyframes wrBuzzShake {
  0%, 100% { transform: translate(0, 0); }
  15% { transform: translate(-8px, -5px); }
  30% { transform: translate(8px, 5px); }
  45% { transform: translate(-6px, 4px); }
  60% { transform: translate(6px, -4px); }
  75% { transform: translate(-4px, 2px); }
  90% { transform: translate(4px, -2px); }
}

.web-buzz-shake {
  animation: wrBuzzShake 0.4s ease-in-out;
}

.web-pm-toast-banner {
  position: fixed;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #ff9d3b 0%, #e65c00 100%);
  color: #ffffff;
  font-weight: bold;
  font-size: 12px;
  padding: 7px 16px;
  border: 2px solid #ffffff;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  z-index: 9999;
}
