:root {
  color-scheme: dark;
  --bg: #070f19;
  --panel: #101f30;
  --line: #29465e;
  --text: #e0edf8;
  --muted: #95b0c8;
  --cyan: #50d0ff;
  --blue: #1687ce;
  --font: "Segoe UI", Tahoma, sans-serif;
}
.moderation-dialog {
  width: min(620px, calc(100vw - 24px));
  max-height: calc(100vh - 36px);
  padding: 0;
}
.moderation-body {
  padding: 14px;
  overflow-y: auto;
  max-height: calc(100vh - 90px);
}
.moderation-body form {
  display: grid;
  gap: 8px;
}
.moderation-body section > label {
  display: block;
  margin-top: 10px;
}
.moderation-body input:not([type="checkbox"]),
.moderation-body textarea,
.moderation-body select {
  width: 100%;
  min-width: 0;
}
.moderation-body select[size] {
  height: 130px;
}
.moderation-body option {
  background: var(--panel);
  color: var(--text);
  padding: 5px;
}
.moderation-actions,
.moderation-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}
.moderation-actions button,
.moderation-tabs button {
  flex: 1 1 90px;
}
.moderation-detail {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}
#im-actions {
  flex-wrap: wrap;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  display: flow-root;
  margin: 0;
  background:
    radial-gradient(ellipse at 50% 4%, #123554 0, transparent 60%), var(--bg);
  color: var(--text);
  font: 13px var(--font);
  min-height: 100vh;
}
.desktop-glow {
  position: fixed;
  inset: 9px;
  border: 1px solid #173043;
  pointer-events: none;
  z-index: -1;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  color: #dcefff;
  background: linear-gradient(#294d6b, #18334e);
  border: 1px solid #406681;
  border-radius: 4px;
  padding: 7px 12px;
  box-shadow:
    inset 0 1px #ffffff15,
    0 1px 2px #0004;
}
button:hover {
  filter: brightness(1.2);
  border-color: #60b4e4;
}
button:active {
  box-shadow: inset 0 2px 5px #0005;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
input,
textarea {
  color: var(--text);
  background: #091726;
  border: 1px solid #365671;
  border-radius: 3px;
  padding: 11px 12px;
  box-shadow: inset 1px 2px 4px #0005;
}
label {
  display: block;
  margin: 14px 0 7px;
  color: #bcd2e5;
  font-size: 12px;
}
input {
  width: 100%;
}
.muted {
  color: var(--muted);
  line-height: 1.6;
}
.small {
  font-size: 11px;
}
.primary {
  background: linear-gradient(
    #3db7ec 0%,
    #157dc1 48%,
    #1069a9 49%,
    #1e8bcc 100%
  );
  border-color: #52b9e9;
  color: white;
  font-weight: 600;
  box-shadow:
    inset 0 1px #c3edff85,
    0 2px 5px #0004;
  text-shadow: 0 1px #003158;
}
.wide {
  width: 100%;
  padding: 11px;
}
.xp-window {
  border: 1px solid #326c9a;
  border-radius: 9px 9px 5px 5px;
  overflow: hidden;
  box-shadow:
    0 18px 55px #0005,
    0 0 0 1px #07111b,
    inset 0 0 0 1px #91cfff12;
  background: var(--panel);
}
.titlebar {
  height: 33px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 11px;
  background: linear-gradient(
    #4e9ed4 0,
    #286ea5 12%,
    #174d80 48%,
    #103c69 49%,
    #1f6097 100%
  );
  border-bottom: 1px solid #071727;
  box-shadow: inset 0 1px #a3d9ff80;
  color: #f1f7ff;
  font-size: 12px;
  font-weight: 600;
  text-shadow: 1px 1px #0a294b;
}
.titlebar > span:last-child {
  color: #b6e5ff;
}
.statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 28px;
  padding: 6px 10px;
  background: linear-gradient(#142c42, #102437);
  border-top: 1px solid #2e4d66;
  font-size: 10px;
  color: #93b2ca;
}
.led {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #65e5ae;
  border: 1px solid #9fffd2;
  border-radius: 50%;
  box-shadow: 0 0 6px #40c69d55;
  margin-right: 5px;
}
.led.offline {
  background: #5b7188;
  border-color: #8b9aab;
  box-shadow: none;
}
.login-window {
  width: 430px;
  margin: clamp(16px, 3vh, 32px) auto;
}
.login-content {
  padding: 25px 38px 18px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 10%, #12466a55, transparent 55%);
}
.login-logo {
  margin: 0 auto 15px;
  width: 96px;
  height: 96px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 3px 12px #109cda30);
}
.title-brand {
  display: flex;
  align-items: center;
  gap: 7px;
}
.title-brand img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.header-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.footer-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.empty-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 14px;
}
.buddy-footer {
  align-items: center;
}
.eyebrow {
  font-size: 8px;
  letter-spacing: 2px;
  color: #87bcde;
  margin-top: 20px;
}
h1 {
  font:
    36px Georgia,
    serif;
  margin: 12px 0 0;
  color: #f0f8ff;
  letter-spacing: -1px;
}
h1 span {
  display: block;
  font: 12px var(--font);
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #70bceb;
  margin: 6px 0 22px;
}
.login-intro {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 27px;
}
.tabs {
  display: flex;
  border-bottom: 1px solid #395d79;
  gap: 4px;
}
.tabs button {
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  box-shadow: inset 0 1px #ffffff18;
  background: #11263b;
  color: #96afc6;
  padding: 9px 18px;
}
.tabs .selected {
  background: linear-gradient(#315b7d, #203e59);
  color: #eaf6ff;
  border-top: 2px solid #5dc9ff;
}
#auth-form {
  text-align: left;
}
.error {
  color: #ffb2bb;
  line-height: 1.5;
  min-height: 17px;
  font-size: 12px;
}
.login-content .error {
  margin: 10px 0;
}
#account-note {
  margin: 18px 0 0;
}
.workspace {
  max-width: 1440px;
  margin: 0 auto;
  padding: 26px 32px 12px;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.app-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  gap: 16px;
}
.wordmark {
  display: flex;
  gap: 9px;
  align-items: center;
  color: #6cd5ff;
  font-size: 25px;
}
.wordmark strong {
  font:
    27px Georgia,
    serif;
  color: #eff8ff;
}
.wordmark > span {
  font: 10px var(--font);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #7fa6c5;
  border-left: 1px solid #36556c;
  padding-left: 12px;
  margin-left: 4px;
}
.heading-actions {
  display: flex;
  gap: 18px;
  align-items: center;
}
.local-badge {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #88b4ce;
}
.small-button {
  font-size: 11px;
  padding: 7px 10px;
}
.panels {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  flex: 1;
  min-height: 0;
}
.buddy-panel,
.chat-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.profile {
  display: flex;
  gap: 11px;
  padding: 20px 15px;
  align-items: center;
  background: linear-gradient(#1d3850, #152c40);
  border-bottom: 1px solid #2c4a62;
}
.avatar {
  width: 39px;
  height: 39px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #32729a, #16344d);
  border: 1px solid #6596b6;
  border-radius: 8px;
  color: #b5ecff;
  font:
    22px Georgia,
    serif;
  box-shadow:
    inset 0 1px #c6efff40,
    0 2px 3px #0004;
}
.avatar.large {
  width: 45px;
  height: 45px;
}
.profile strong {
  display: block;
  max-width: 117px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
}
.online-label {
  display: block;
  font-size: 11px;
  color: #95c9b9;
  margin-top: 6px;
}
.quiet {
  background: none;
  box-shadow: none;
  border: 0;
  font-size: 10px;
  color: #9bb5c9;
  padding: 5px;
  margin-left: auto;
  white-space: nowrap;
}
.buddy-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px;
  border-bottom: 1px solid #254057;
}
.buddy-toolbar button {
  font-size: 11px;
  padding: 6px 9px;
}
#buddy-count {
  font-size: 10px;
  color: #91b0c8;
}
.sidebar-scroll {
  overflow: auto;
  flex: 1;
  padding: 5px 9px 16px;
}
.section-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.4px;
  color: #84abc9;
  padding: 16px 7px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.contact,
.room {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 9px;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  border-radius: 4px;
  text-align: left;
  margin-bottom: 3px;
}
.contact.active,
.room.active {
  background: linear-gradient(#214763, #173951);
  border: 1px solid #3c6c8b;
  box-shadow: inset 0 1px #90d9ff15;
}
.contact .avatar {
  height: 28px;
  width: 28px;
  font:
    15px Georgia,
    serif;
  border-radius: 5px;
}
.contact-info {
  flex: 1;
  min-width: 0;
}
.contact-info strong {
  font-size: 12px;
  font-weight: 500;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.contact-info small {
  font-size: 10px;
  color: #8eacc2;
  display: block;
  margin-top: 3px;
}
.contact-info small {
  display: none;
}
.contact,
.room {
  min-height: 28px;
  padding: 3px 7px;
  margin-bottom: 1px;
  gap: 7px;
  border-radius: 3px;
}
.contact .avatar {
  width: 19px;
  height: 19px;
  font-size: 11px;
  border-radius: 3px;
}
.contact-info strong,
.room > span:last-child {
  font-size: 12px;
}
.buddy-row {
  display: flex;
  align-items: center;
  gap: 2px;
}
.buddy-row .contact {
  flex: 1;
  min-width: 0;
}
.move-buddy {
  padding: 0;
  width: 21px;
  height: 25px;
  flex-shrink: 0;
  background: none;
  border-color: transparent;
  box-shadow: none;
  color: #8caec8;
}
.move-buddy:hover,
.move-buddy:focus-visible {
  border-color: #3c6c8b;
  background: #1b3c56;
}
.category-heading {
  width: 100%;
  display: block;
  padding: 5px 7px;
  margin: 6px 0 3px;
  text-align: left;
  background: linear-gradient(#274962, #1a344b);
  border: 1px solid #355a76;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.category-empty {
  font-size: 10px;
  line-height: 1.5;
  color: #88a6bf;
  padding: 4px 8px;
  margin: 0;
}
#presence-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
#presence-controls .status-light {
  width: 16px;
  height: 16px;
  min-width: 16px;
  border-radius: 50%;
  padding: 0;
  border: 1px solid #183246;
  box-shadow:
    inset 0 1px 2px #fff9,
    0 1px 2px #0009;
}
.status-light.dnd {
  background: radial-gradient(circle at 35% 25%, #ffc4c4, #df4a51 55%, #921b32);
}
.status-light.away {
  background: radial-gradient(circle at 35% 25%, #fff7bc, #e7b944 55%, #936719);
}
.status-light.available {
  background: radial-gradient(circle at 35% 25%, #c8ffe8, #57ca91 55%, #1b8056);
}
#presence-controls .status-light[aria-pressed="true"] {
  outline: 1px solid #c7e7ff;
  outline-offset: 3px;
}
.led.away {
  background: #e7bc4b;
  border-color: #ffe99c;
  box-shadow: 0 0 5px #e7bc4b44;
}
.led.dnd {
  background: #e65a65;
  border-color: #ffb0b5;
  box-shadow: 0 0 5px #e65a6544;
}
.buddy-toolbar {
  padding: 9px 12px;
}
.buddy-actions {
  justify-content: center;
  gap: 8px;
  padding: 6px 12px;
}
.remember-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  font-size: 11px;
}
.remember-label input {
  width: auto;
  box-shadow: none;
}
.remember-label span {
  color: var(--muted);
}
.buddy-person {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}
.avatar img,
.profile-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
#my-avatar {
  cursor: pointer;
  overflow: hidden;
}
#my-profile {
  display: block;
  margin-top: 3px;
  padding: 0;
  font-size: 10px;
  color: #78cff7;
}
.profile-dialog {
  width: min(510px, calc(100vw - 24px));
}
.profile-card {
  padding: 16px;
}
.profile-banner {
  width: 100%;
  aspect-ratio: 3/1;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 12px;
}
.profile-picture {
  width: 90px;
  height: 90px;
  border-radius: 7px;
  background: #21455e;
  display: grid;
  place-items: center;
  font-size: 32px;
  margin-bottom: 9px;
  overflow: hidden;
}
.profile-bio {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 12px 0;
  max-height: 260px;
  overflow: auto;
}
#profile-bio-input {
  width: 100%;
  resize: vertical;
}
.photo-actions,
.profile-format {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.photo-actions button,
.upload-button,
.profile-format button,
.profile-format select {
  font-size: 11px;
  padding: 5px 7px;
}
.upload-button {
  cursor: pointer;
  border: 1px solid #406681;
  border-radius: 4px;
  background: #21455e;
  margin: 0;
}
.profile-format {
  margin: 8px 0;
}
.profile-format label {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-size: 10px;
}
.profile-format input[type="color"] {
  width: 28px;
  height: 28px;
  padding: 2px;
}
.profile-format input[type="checkbox"] {
  width: auto;
}
.profile-format select {
  width: auto;
  min-width: 0;
  max-width: 160px;
}
.profile-format button[aria-pressed="true"] {
  background: #176e9e;
  border-color: #72d3ff;
}
#profile-draft-media {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}
.draft-avatar {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 5px;
}
.draft-banner {
  width: 180px;
  max-width: 65%;
  aspect-ratio: 3/1;
  object-fit: cover;
}
.crop-dialog {
  width: min(410px, calc(100vw - 20px));
  max-height: 90vh;
  overflow: auto;
}
.crop-content {
  padding: 15px;
}
#crop-canvas {
  width: 100%;
  height: auto;
  display: block;
  cursor: move;
  touch-action: none;
  border: 1px solid #71c8ef;
}
#crop-zoom {
  width: 100%;
  padding: 0;
  box-shadow: none;
}
.im-person {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  background: #132e44;
  border-bottom: 1px solid #2c4a62;
}
.im-person .avatar {
  width: 44px;
  height: 44px;
}
.im-person button {
  padding: 3px 0;
  background: none;
  border: 0;
  box-shadow: none;
  color: #83d5ff;
  font-size: 11px;
}
.buddy-actions > button {
  flex: 1;
  min-width: 0;
  text-align: center;
}
.room-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  background: #112c42;
  border-bottom: 1px solid #34546d;
  padding: 7px 12px;
}
.room-info-actions {
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  gap: 7px;
  justify-content: flex-end;
}
.room-info-actions button,
.room-admin-actions button {
  font-size: 11px;
  padding: 4px 9px;
}
.room-topic {
  display: flex;
  gap: 8px;
  margin: 0;
  min-width: 0;
  flex: 1;
  align-items: baseline;
  font-size: 12px;
}
.room-admin-actions {
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
  padding: 0 10px 10px;
}
.room-topic strong {
  white-space: nowrap;
  color: #72c8f3;
}
#room-topic-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 65px;
  overflow: auto;
}
.room-rules-text {
  padding: 18px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 60vh;
  overflow: auto;
  line-height: 1.6;
}
#room-editor textarea {
  width: 100%;
  resize: vertical;
}
#room-delete-confirm {
  margin-top: 15px;
  padding: 10px;
  border: 1px solid #986f77;
  background: #392536;
}
#presence-notice {
  padding: 9px 15px;
  border-bottom: 1px solid #37516a;
  background: #162c40;
  color: #bcd3e5;
  font-size: 11px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 125px;
  overflow: auto;
  flex-shrink: 0;
}
#away-message {
  width: 100%;
  resize: vertical;
  min-height: 100px;
  max-height: 250px;
}
select {
  width: 100%;
  background: #0c2033;
  color: #dceeff;
  border: 1px solid #3c617b;
  padding: 9px;
  border-radius: 3px;
  font: inherit;
}
.dialog-buttons {
  display: flex;
  gap: 8px;
}
.room-symbol {
  width: 21px;
  height: 21px;
  object-fit: contain;
  flex-shrink: 0;
}

#conversation-bar {
  display: flex;
  align-items: center;
  gap: 7px;
}
.room-title-icon {
  width: 21px;
  height: 21px;
  object-fit: contain;
}
.room > span:last-child {
  font-size: 12px;
}
.rooms-label button {
  font-size: 15px;
  padding: 0 6px;
}
.empty-buddies {
  font-size: 11px;
  line-height: 1.7;
  color: #849db4;
  margin: 0;
  padding: 7px 9px 15px;
}
.request {
  padding: 9px;
  background: #142e44;
  border: 1px solid #294b66;
  border-radius: 4px;
  margin: 5px 0;
  font-size: 11px;
}
.request strong {
  display: block;
  overflow-wrap: anywhere;
}
.request small {
  color: var(--muted);
  display: block;
  margin: 5px 0;
}
.request button {
  font-size: 10px;
  padding: 4px 8px;
  margin-right: 4px;
}
.buddy-footer {
  padding: 14px 13px;
  border-top: 1px solid #274359;
  font-size: 10px;
  color: #7698b4;
  display: flex;
  justify-content: space-between;
  gap: 5px;
}
.buddy-footer span {
  color: #4dcaff;
}

.messages {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 24px;
  background:
    radial-gradient(ellipse at 85% 0, #0d253755, transparent 70%), #0b1724;
  scrollbar-color: #2e526d #0b1724;
}
.empty-chat {
  height: 100%;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #88a6bf;
}
.empty-chat .empty-star {
  font-size: 40px;
  color: #3e9cc7;
  text-shadow: 0 0 30px #1abaff45;
  margin-bottom: 14px;
}
.empty-chat h3 {
  font:
    23px Georgia,
    serif;
  font-weight: normal;
  color: #c1d8eb;
  margin: 0 0 10px;
}
.empty-chat p {
  font-size: 12px;
  max-width: 280px;
  line-height: 1.8;
  margin: 0;
}
.message {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.message .avatar {
  width: 31px;
  height: 31px;
  font-size: 16px;
  border-radius: 5px;
}
.message-main {
  max-width: 85%;
  min-width: 0;
}
.message-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  margin-bottom: 6px;
}
.message-meta strong {
  color: #97d7f7;
  font-weight: 600;
}
.message-meta time {
  font-size: 9px;
  color: #7890a6;
}
.message-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.65;
  background: #152b3e;
  border: 1px solid #254256;
  border-radius: 0 8px 8px 8px;
  padding: 10px 13px;
  color: #d5e6f3;
}
.message.mine .message-meta strong {
  color: #66cfff;
}
.history-note {
  text-align: center;
  color: #839eb4;
  font-size: 10px;
  margin: 0 0 20px;
}
.composer {
  position: relative;
  margin: 0 15px 14px;
  background: #10263a;
  border: 1px solid #385c78;
  border-radius: 4px;
  box-shadow: inset 0 1px #0008;
}
.emoticon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  object-fit: contain;
}
#emoji {
  display: flex;
  align-items: center;
}
#emoticon-picker {
  position: absolute;
  bottom: calc(100% + 7px);
  left: 0;
  z-index: 5;
  width: 254px;
  padding: 12px;
  border: 1px solid #5882a0;
  border-radius: 6px;
  background: linear-gradient(#244763, #132b40);
  box-shadow:
    0 5px 22px #0008,
    inset 0 1px #d4f1ff33;
}
#emoticon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.emoticon-choice {
  display: grid;
  place-items: center;
  height: 43px;
  padding: 4px;
}
.emoticon-choice img {
  width: 30px;
  height: 30px;
}
#emoticon-picker p {
  font-size: 10px;
  color: #abc5d9;
  margin: 11px 0 0;
  text-align: center;
}
.composer-tools {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  border-bottom: 1px solid #294962;
  gap: 12px;
  background: linear-gradient(#203c54, #18334b);
  font-size: 10px;
  color: #adc4d8;
}
.composer-tools button {
  padding: 0 5px;
  font-size: 18px;
  border: 0;
  background: none;
  box-shadow: none;
  color: #ffe3a0;
}
.composer-hint {
  margin-left: auto;
  font-size: 9px;
  color: #88a5be;
}
.compose-row {
  display: flex;
  padding: 9px;
  gap: 10px;
}
.compose-row textarea {
  resize: none;
  flex: 1;
  min-width: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 4px;
  font-size: 12px;
  line-height: 1.6;
}
.compose-row button {
  align-self: flex-end;
  min-width: 84px;
  height: 35px;
  font-size: 12px;
}
.compose-row button span {
  margin-left: 8px;
}
.chat-error {
  min-height: 0;
  margin: 0;
  padding: 7px 17px;
  font-size: 11px;
}
.chat-error:empty {
  padding: 7px;
}
.desktop-footer {
  display: flex;
  justify-content: space-between;
  padding: 14px 1px 2px;
  font-size: 8px;
  letter-spacing: 1.8px;
  color: #5d809c;
}
dialog {
  color: var(--text);
  width: 390px;
  padding: 0;
}
dialog::backdrop {
  background: #020b15b8;
  backdrop-filter: blur(3px);
}
dialog form {
  padding: 10px 25px 25px;
}
dialog .titlebar button {
  background: linear-gradient(#dc967c, #a84436);
  color: white;
  border: 1px solid #e6aa91;
  padding: 0;
  width: 22px;
  height: 22px;
  font-size: 19px;
}
dialog .titlebar .dialog-close-icon {
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 0;
  flex-shrink: 0;
}
.dialog-close-icon svg {
  display: block;
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  pointer-events: none;
}
.profile-hero {
  position: relative;
  min-height: 190px;
  background: linear-gradient(135deg, #153b59, #0a1b2b);
  border-radius: 6px;
  overflow: hidden;
}
.profile-hero .profile-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  aspect-ratio: auto;
}
.profile-identity {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  padding: 68px 20px 20px;
  background: linear-gradient(transparent, #071322dc);
  min-height: 190px;
}
.profile-identity .profile-picture {
  flex-shrink: 0;
  margin: 0;
  width: 90px;
  height: 90px;
}
#profile-name {
  font-size: 26px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  padding-bottom: 5px;
  min-width: 0;
}
.profile-picture[data-border] {
  position: relative;
  overflow: visible;
  padding: 0;
  border: 0;
  background: #21455e;
  box-sizing: border-box;
}
.profile-picture[data-border]::after {
  content: "";
  position: absolute;
  inset: calc(-1 * var(--avatar-width, 2px));
  border: var(--avatar-width, 2px) solid var(--avatar-border);
  border-radius: inherit;
  pointer-events: none;
}
.profile-picture[data-border="none"]::after {
  display: none;
}
.profile-picture[data-border="none"] {
  padding: 0;
  background: #21455e;
}
.profile-picture[data-border="double"] {
  padding: 0;
  border: 0;
}
.profile-picture[data-border="double"]::after {
  box-shadow:
    0 0 0 1px #102437,
    0 0 0 calc(var(--avatar-width, 2px) + 1px) var(--avatar-border);
}
.profile-picture[data-border="glow"] {
  box-shadow: 0 0 12px var(--avatar-border);
}
.profile-picture[data-border="gradient"] {
  background: #21455e;
}
.profile-picture[data-border="gradient"]::after {
  border: 0;
  padding: var(--avatar-width, 2px);
  background: linear-gradient(135deg, var(--avatar-border), var(--avatar-end));
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
}
.profile-picture img {
  border-radius: 4px;
  min-width: 0;
  min-height: 0;
}
.styled-name {
  position: relative;
  display: inline-block;
  isolation: isolate;
  font-weight: inherit;
  line-height: inherit;
}
.styled-name .name-ink {
  position: relative;
  z-index: 1;
}
.styled-name.has-glow::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: var(--name-glow);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  filter: blur(3px);
  opacity: 0.95;
  pointer-events: none;
}
.compact-name {
  font-size: inherit;
  max-width: 100%;
}
.compact-name.has-glow::before {
  filter: blur(1.5px);
  opacity: 0.7;
}
/* Dark surfaces need a stronger colored core plus a soft outer halo.
   Keep the sharp name above both layers and leave light themes unchanged. */
body[data-theme-tone="dark"] .styled-name.has-glow::before {
  filter: blur(2px) brightness(1.5);
  opacity: 1;
}
body[data-theme-tone="dark"] .styled-name.has-glow::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--name-glow);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  filter: blur(4px) brightness(1.5);
  opacity: 0.85;
  pointer-events: none;
}
body[data-theme-tone="dark"] .compact-name.has-glow::before {
  filter: blur(0.8px) brightness(1.5);
}
body[data-theme-tone="dark"] .compact-name.has-glow::after {
  filter: blur(2px) brightness(1.5);
}
.appearance-controls {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #345b77;
  border-radius: 5px;
}
.appearance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}
.appearance-grid label {
  margin: 0;
}
.appearance-grid select {
  width: 100%;
  min-width: 0;
  height: 32px;
  padding: 5px 8px;
}
.appearance-grid input[type="color"] {
  width: 100%;
  height: 32px;
  padding: 2px;
}
.appearance-example {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: #10283a;
  border-radius: 4px;
  margin: 10px 0;
  font-size: 24px;
}
.appearance-example .profile-picture {
  width: 60px;
  height: 60px;
  margin: 0;
  flex-shrink: 0;
}
body[data-view="profile"] {
  height: 100vh;
  overflow: auto;
  background: #101f30;
}
body[data-view="profile"] #profile-dialog,
body[data-view="profile"] #profile-editor {
  outline: none;
  position: static;
  margin: 0;
  width: 100%;
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  background: #101f30;
}
body[data-view="profile"] #profile-dialog > .titlebar,
body[data-view="profile"] #profile-editor > .titlebar {
  display: none;
}
body[data-view="profile"] .profile-card {
  padding: 20px;
}
body[data-view="profile"] .profile-hero,
body[data-view="profile"] .profile-identity {
  min-height: 220px;
}
body[data-view="profile"] .profile-identity {
  padding-top: 100px;
}
body[data-view="profile"] #profile-editor form {
  padding: 16px 24px 24px;
}
body[data-view="profile"] .profile-bio {
  max-height: none;
}
#toast {
  position: fixed;
  bottom: 45px;
  left: 50%;
  transform: translateX(-50%);
  background: #204861;
  border: 1px solid #5992b4;
  box-shadow: 0 5px 20px #0006;
  border-radius: 6px;
  padding: 12px 22px;
  color: #e2f4ff;
  z-index: 10;
  font-size: 12px;
}
@media (max-width: 950px) {
  .workspace {
    padding: 20px 20px 10px;
  }
  .panels {
    grid-template-columns: 245px 1fr;
    gap: 12px;
  }
  .composer-hint {
    display: none;
  }
  .profile {
    padding: 16px 10px;
  }

  .wordmark > span {
    display: none;
  }
}
@media (max-width: 650px) {
  .workspace {
    height: auto;
    min-height: 100vh;
    padding: 15px;
  }
  .panels {
    display: flex;
    flex-direction: column;
  }
  .buddy-panel {
    max-height: 320px;
  }
  .sidebar-scroll {
    max-height: 160px;
    min-height: 80px;
  }
  .chat-panel {
    height: 600px;
  }
  .heading-actions .local-badge {
    display: none;
  }
  .login-window {
    width: calc(100% - 40px);
  }
  .login-content {
    padding: 22px;
  }
}
/* The desktop always uses independent AIM-style windows. */
body[data-view] .workspace {
  height: calc(100vh - 36px);
  max-width: none;
  min-height: 0;
  padding: 0;
}
body[data-view] .panels {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-height: 0;
}
body[data-view] .desktop-footer,
body[data-view] .local-badge,
body[data-view] .test-window {
  display: none;
}
body[data-view] .app-heading {
  display: none;
}
body[data-view] .wordmark {
  gap: 5px;
}
body[data-view] .wordmark strong {
  font-size: 22px;
}
body[data-view] .header-logo {
  width: 30px;
  height: 30px;
}
body[data-view] .wordmark > span {
  display: none;
}
body[data-view] .heading-actions {
  gap: 0;
}
body[data-view] .small-button {
  padding: 5px 7px;
  font-size: 10px;
}
body[data-view] dialog {
  width: min(390px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
}
body[data-view] dialog form {
  padding: 10px 16px 18px;
}
body[data-view="buddy"] .chat-panel {
  display: none;
}
body[data-view="buddy"] .buddy-panel {
  flex: 1;
  max-height: none;
  min-height: 0;
}
body[data-view="buddy"] .sidebar-scroll {
  max-height: none;
  min-height: 0;
}
body[data-view="buddy"] .buddy-footer {
  display: none;
}
body[data-view="buddy"] .login-window {
  width: 100%;
  height: calc(100vh - 36px);
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
body[data-view="buddy"] .login-content {
  padding: 18px 24px;
  flex: 1;
}
body[data-view="chat"] .buddy-panel,
body[data-view="chat"] .app-heading {
  display: none;
}
body[data-view="chat"] .chat-panel {
  flex: 1;
  height: auto;
  min-height: 0;
}
body[data-view="chat"] .messages {
  padding: 15px;
}
body[data-view="chat"] .composer {
  margin: 0 10px 10px;
}
body[data-view="chat"] .statusbar {
  font-size: 9px;
}
body[data-view="chat"] .statusbar > span:last-child {
  display: none;
}
/* Custom desktop chrome; the caption is draggable and controls remain clickable. */
body[data-view] {
  padding-top: 34px;
  border: 1px solid #315a78;
  overflow: hidden;
}
body[data-view] .workspace {
  height: calc(100vh - 36px);
}
body[data-view] .desktop-glow,
body[data-view] .login-window > .titlebar,
body[data-view] .buddy-panel > .titlebar,
body[data-view] .chat-panel > .titlebar {
  display: none;
}
body[data-view] .login-window,
body[data-view] .buddy-panel,
body[data-view] .chat-panel {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
#window-chrome {
  position: fixed;
  top: 1px;
  left: 1px;
  right: 1px;
  height: 33px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  background: linear-gradient(
    #4e9ed4 0,
    #286ea5 12%,
    #174d80 48%,
    #103c69 49%,
    #1f6097 100%
  );
  border-bottom: 1px solid #365f7c;
  box-shadow: inset 0 1px #a8dfff22;
  -webkit-app-region: drag;
  user-select: none;
  z-index: 20;
}
#window-caption {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: #bad7eb;
}
#window-menu {
  -webkit-app-region: no-drag;
  display: grid;
  place-items: center;
  width: 22px;
  height: 24px;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: none;
}
#window-menu img {
  width: 19px;
  height: 19px;
  object-fit: contain;
}
.window-controls {
  display: flex;
  align-items: center;
  gap: 7px;
  -webkit-app-region: no-drag;
}
.window-circle {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid #48728c;
  border-radius: 50%;
  background: linear-gradient(#27475e, #162f44);
  box-shadow:
    inset 0 1px #b1d5ed25,
    0 1px 2px #0005;
  color: #acc9dd;
  font:
    18px/1 "Segoe UI",
    sans-serif;
  -webkit-app-region: no-drag;
}
.window-circle:hover,
.window-circle:focus-visible {
  background: radial-gradient(circle at 35% 25%, #73d9ff, #238ed8 55%, #145994);
  border-color: #85ddff;
  color: #06273f;
  box-shadow:
    inset 0 1px #e4f8ff80,
    0 0 7px #2bbfff60;
  filter: none;
}
.window-circle:active {
  background: #1379b9;
  box-shadow: inset 0 2px 4px #003c68;
}
.window-circle svg {
  display: block;
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.format-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 7px 0;
  border-bottom: 1px solid #34516a;
}
.format-bar button,
.format-bar select {
  width: auto;
  min-width: 0;
  font-size: 11px;
  padding: 4px 6px;
  min-height: 26px;
}
#fmt-size {
  width: 46px;
}
#fmt-presets {
  max-width: 125px;
}
.format-bar {
  padding: 7px;
}
.format-bar select {
  max-width: 145px;
  background: #143047;
  color: #dcefff;
  border: 1px solid #406681;
  border-radius: 3px;
}
.format-bar label {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 0;
}
.format-bar input[type="color"] {
  width: 25px;
  height: 26px;
  padding: 2px;
  border: 1px solid #406681;
  cursor: pointer;
}
.format-bar button[aria-pressed="true"] {
  background: linear-gradient(#2389bd, #17456e);
  border-color: #71d5ff;
}
#gradient-colors {
  display: inline-flex;
  gap: 3px;
}
.gradient-text {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.formatted-text a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #68d5ff;
  text-underline-offset: 3px;
}
.message-person {
  cursor: pointer;
}
.message-person:hover {
  text-decoration: underline;
}
.im-actions {
  display: flex;
  gap: 7px;
  padding: 6px 10px 10px;
  flex-shrink: 0;
}
.im-actions button {
  flex: 1;
  font-size: 11px;
  padding: 6px 4px;
}
.call-panel {
  padding: 8px 12px;
  background: #12354b;
  border-bottom: 1px solid #39728e;
  max-height: 230px;
  overflow: auto;
  flex-shrink: 0;
}
.call-panel strong {
  display: block;
  margin-bottom: 6px;
}
.call-videos {
  display: flex;
  gap: 6px;
}
.call-videos video {
  width: calc(50% - 3px);
  height: 100px;
  object-fit: contain;
  background: #06131e;
}
.call-buttons {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 5px;
}
.call-buttons button {
  font-size: 11px;
  padding: 5px 8px;
}
body[data-view="chat"] .composer {
  flex-shrink: 0;
}
@media (max-height: 500px) {
  body[data-view="chat"] .chat-panel {
    overflow: auto;
  }
  body[data-view="chat"] .messages {
    min-height: 40px;
  }
  .format-bar {
    max-height: 65px;
    overflow: auto;
  }
  .format-preview {
    display: none;
  }
  .composer-tools {
    padding: 3px 0;
  }
  .compose-row textarea {
    min-height: 45px;
    height: 45px;
  }
  .call-panel {
    max-height: 85px;
  }
  .call-videos video {
    height: 55px;
  }
}

/* Native profile pages own their scroll area below the fixed title bar. */
body[data-view="profile"] #profile-editor,
body[data-view="profile"] #profile-dialog {
  position: fixed;
  top: 34px;
  left: 1px;
  right: 1px;
  bottom: 1px;
  width: auto;
  height: auto;
  max-height: none;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-color: #42728f #102437;
}
body[data-view="profile"] #profile-editor form {
  padding: 14px 18px 24px;
}
.appearance-controls {
  margin: 10px 0;
}
.appearance-grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.profile-format {
  gap: 6px;
}

/* Compact AIM transcripts and a dedicated portrait strip for private IMs. */
.chat-workspace {
  display: flex;
  flex: 1;
  min-height: 0;
  min-width: 0;
}
.chat-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
}
.chat-workspace .im-person {
  flex: 0 0 82px;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 12px 6px;
  border-bottom: 0;
  border-right: 1px solid var(--line);
}
.im-participant {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.im-participant .avatar {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}
.im-participant button {
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}
.chat-main .messages {
  background: var(--bg);
  padding: 12px;
}
.message,
.message.mine {
  flex-direction: row;
  gap: 7px;
  margin-bottom: 8px;
  align-items: flex-start;
}
.message .avatar {
  width: 24px;
  height: 24px;
  font-size: 13px;
  flex-shrink: 0;
}
.message .message-main {
  display: block;
  max-width: none;
  flex: 1;
  min-width: 0;
  line-height: 1.65;
}
.message-meta {
  display: inline;
  margin: 0;
  font-size: 12px;
}
.message-meta strong::after {
  content: ": ";
}
.message-meta time {
  float: right;
  margin: 3px 0 0 10px;
}
.message .message-body {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
}
.private-chat .message > .avatar {
  display: none;
}
@media (max-width: 480px) {
  .chat-workspace .im-person {
    flex-basis: 64px;
    padding: 10px 4px;
  }
  .im-participant .avatar {
    width: 48px;
    height: 48px;
  }
}

/* Native editing and selection with a matching, styled text layer. */
.styled-composer {
  position: relative;
  flex: 1;
  min-width: 0;
  background: var(--input, #10263a);
  border-radius: 3px;
}
.styled-composer #message-input,
.composer-ink {
  width: 100%;
  margin: 0;
  padding: 4px;
  border: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: normal;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  tab-size: 8;
  scrollbar-gutter: stable;
}
body .styled-composer #message-input {
  position: relative;
  display: block;
  height: 100%;
  min-height: 76px;
  background: transparent;
  color: transparent;
  caret-color: var(--text);
  -webkit-text-fill-color: transparent;
}
.styled-composer #message-input::placeholder {
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
}
.styled-composer #message-input::selection {
  background: #5887ae66;
}
.composer-ink {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  color: var(--text);
  font-weight: 400;
}

.social-dialog {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100vh - 50px);
  overflow: auto;
}
.social-dialog .titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.social-dialog .titlebar button {
  width: 22px;
  height: 22px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
}
.social-form {
  padding: 14px;
}
.social-form label:first-child {
  margin-top: 0;
}
.social-form select,
.social-form input:not([type="checkbox"]) {
  width: 100%;
}
.social-form fieldset {
  margin: 14px 0;
  border: 1px solid var(--line);
}
.gif-search-row {
  display: flex;
  gap: 8px;
}
.gif-search-row input {
  min-width: 0;
}
#gif-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.gif-result {
  padding: 3px;
  height: 100px;
}
.gif-result img {
  max-width: 100%;
  max-height: 90px;
  object-fit: contain;
}
.gif-draft {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  font-size: 11px;
}
.gif-draft span {
  flex: 1;
  overflow-wrap: anywhere;
}
.chat-gif {
  display: block;
  margin: 6px 0;
  max-width: 240px;
}
.chat-gif > img {
  display: block;
  max-width: 100%;
  max-height: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.gif-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.gif-controls .small {
  font-size: 9px;
}
.gif-controls button {
  padding: 3px 7px;
  font-size: 10px;
}
.im-actions {
  flex-wrap: wrap;
}
#privacy-button {
  margin-right: 8px;
  font-size: 10px;
  padding: 3px 6px;
}
.nudge-message .message-body {
  color: var(--muted);
  font-style: italic;
}
.nudge-shake {
  animation: nudge-shake 0.35s ease-in-out;
}
@keyframes nudge-shake {
  20%,
  60% {
    transform: translateX(-4px);
  }
  40%,
  80% {
    transform: translateX(4px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .nudge-shake {
    animation: none;
  }
}

.buddy-preferences {
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}

.unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 6px;
  border-radius: 9px;
  background: var(--cyan);
  color: var(--bg);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}
.contact.has-unread {
  box-shadow: inset 3px 0 var(--cyan) !important;
}
.category-heading .unread-badge {
  margin-left: auto;
}

.chat-date-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}
.chat-date-divider:first-child {
  margin-top: 2px;
}
.chat-date-divider::before,
.chat-date-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
.chat-date-divider time {
  flex-shrink: 0;
}

.gif-results-viewport {
  max-height: min(48vh, 420px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.gif-page-status {
  text-align: center;
  padding: 8px 0;
  margin: 0;
}

.profile-background-controls {
  margin: 12px 0;
  padding: 10px;
  border: 1px solid var(--line);
}
.profile-background-controls button {
  margin-top: 8px;
}
.custom-profile {
  --text: var(--profile-text);
  color: var(--profile-text);
}
#profile-dialog.custom-profile .profile-card,
#profile-dialog.custom-profile #profile-bio {
  background: transparent;
  color: var(--profile-text);
}
#profile-dialog.custom-profile .profile-hero {
  background: transparent;
}
#profile-dialog.custom-profile
  .profile-hero:not(:has(.profile-banner:not([hidden]))) {
  --text: var(--profile-text);
}
#profile-dialog.custom-profile
  .profile-hero:not(:has(.profile-banner:not([hidden])))
  .profile-identity {
  background: transparent;
}

.preset-actions {
  display: flex;
  gap: 6px;
  margin: 8px 0;
}
.birthday-buddy {
  position: relative;
  isolation: isolate;
}
.birthday-buddy > strong {
  position: relative;
  z-index: 1;
}
.birthday-sparkles {
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: min(164px, calc(100% + 10px));
  height: 44px;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.birthday-sparkles svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.firework-burst {
  transform-origin: 0 0;
  animation: birthday-firework 5.8s cubic-bezier(0.15, 0.6, 0.3, 1) infinite;
  filter: drop-shadow(0 0 1px #c8caff);
}
.developer-badge {
  display: inline-flex;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  vertical-align: -3px;
}
.developer-badge svg {
  width: 100%;
  height: 100%;
}
#birthday-setup {
  max-width: 440px;
}
#birthday-setup form {
  padding: 16px;
}
@keyframes birthday-firework {
  0%,
  4% {
    transform: translateY(5px) scale(0.04);
    opacity: 0;
  }
  9% {
    opacity: 0.85;
  }
  32% {
    transform: translateY(0) scale(0.85);
    opacity: 0.8;
  }
  58% {
    transform: translateY(5px) scale(1.08);
    opacity: 0;
  }
  100% {
    transform: translateY(5px) scale(1.08);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .firework-burst {
    animation: none;
    transform: scale(0.8);
    opacity: 0.45;
  }
}
.profile-age {
  margin: 8px 0;
  font-size: 12px;
}
.preset-actions input {
  min-width: 0;
  flex: 1;
}
.room-mood-editor {
  margin: 12px 0;
  padding: 10px;
  border: 1px solid var(--line);
}
.mood-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  font-size: 20px;
  flex-shrink: 0;
}
.chat-panel.has-room-mood .room-info {
  border-bottom: 3px solid var(--room-accent);
}
.chat-panel.has-room-mood .room-topic strong {
  color: var(--room-accent);
}
.link-preview {
  display: block;
  max-width: 380px;
  margin: 8px 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  color: var(--text);
  font: 12px var(--font);
  white-space: normal;
  text-decoration: none;
}
.link-preview-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.link-preview-heading a {
  color: var(--cyan);
  margin-left: auto;
}
.link-preview iframe {
  display: block;
  width: 100%;
  border: 0;
  background: #fff;
}
.link-preview .embed-video {
  height: 215px;
  min-width: 200px;
}
.link-preview .embed-tall {
  height: 400px;
}
.link-preview p {
  margin: 6px 0 0;
  line-height: 1.4;
}
/* Keep moderation usable inside the compact buddy-list window. */
body[data-view] dialog.moderation-dialog {
  width: min(620px, calc(100vw - 24px));
  overflow: hidden;
}
.moderation-dialog .moderation-body form {
  padding: 0;
  margin: 0;
}
.moderation-dialog .moderation-body label {
  margin: 4px 0;
}
