:root {
  font-family: Tahoma, "MS Sans Serif", Arial, sans-serif;
  font-size: 11px;
  color: #000;
  font-synthesis: none;
  --face: #ece9d8;
  --line: #aca899;
  --blue: #0a246a;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: default;
}
button:disabled {
  color: #858378;
  text-shadow: 1px 1px #fff;
}
button:focus-visible {
  outline: 1px dotted #000;
  outline-offset: -4px;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 1px solid #316ac5;
  outline-offset: -1px;
}
[hidden] {
  display: none !important;
}
button img {
  pointer-events: none;
}
h1,
h2,
p {
  margin: 0 0 12px;
}
h1 {
  font-size: 22px;
}
h2 {
  font-size: 15px;
}
a {
  color: #0000ee;
}
kbd {
  font:
    11px Tahoma,
    sans-serif;
  background: #fff;
  border: 1px solid #bcb8aa;
  padding: 1px 3px;
  line-height: 22px;
}
#desktop {
  height: 100dvh;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #3a6ea5 url("./assets/bliss.jpg") center center/cover no-repeat;
  user-select: none;
}
#desktop.plain-wallpaper {
  background: #3a6ea5;
}
.shortcuts {
  position: absolute;
  top: 18px;
  left: 13px;
  display: grid;
  gap: 21px;
}
.shortcut {
  width: 78px;
  border: 1px solid transparent;
  background: none;
  color: white;
  font-size: 11px;
  text-shadow: 1px 1px 2px #000;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
  line-height: 15px;
}
.shortcut:focus {
  border: 1px dotted #fff;
  background: #245edb66;
}
.shortcut-logo,
.shortcut-history {
  display: grid;
  place-items: center;
  width: 38px;
  height: 37px;
}
.shortcut-logo .icon,
.shortcut-history .icon {
  transform: scale(2);
  image-rendering: pixelated;
}
.icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background-repeat: no-repeat;
  background-position: calc(var(--i, 0) * -16px) 0;
  image-rendering: pixelated;
  vertical-align: middle;
}
.all-icon {
  background-image: url("./assets/qip/allicons.png");
}
.status-icon {
  background-image: url("./assets/qip/clstatus.png");
}
.event-icon {
  background-image: url("./assets/qip/clevent.png");
}
.add-icon {
  background-image: url("./assets/qip/addopt.png");
}
.app-window {
  position: absolute;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 3px solid #7a96df;
  border-top: 0;
  border-radius: 8px 8px 0 0;
  box-shadow: 1px 2px 3px #0006;
  background: var(--face);
  min-width: 420px;
  min-height: 330px;
  resize: both;
}
.app-window.focused {
  border-color: #0054e3;
}
.message-window {
  min-height: 400px;
  left: calc(50% - 395px);
  top: calc(50% - 240px);
  width: 570px;
  height: 475px;
}
.contact-window {
  left: calc(50% + 215px);
  top: calc(50% - 277px);
  width: 205px;
  height: 552px;
  min-width: 185px;
  min-height: 330px;
  resize: both;
}
.titlebar {
  height: 27px;
  min-height: 27px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin: 0 -1px;
  padding: 2px 3px 3px 5px;
  background: linear-gradient(#9bb5ec, #7a96df 15%, #809fe5 85%, #718bcc);
  border-radius: 6px 6px 0 0;
  color: #fff;
  font:
    700 12px Tahoma,
    Arial,
    sans-serif;
  text-shadow: 1px 1px #526fac;
  touch-action: none;
}
.focused > .titlebar,
dialog > .titlebar {
  background: linear-gradient(
    #6ca5fc 0,
    #1874ed 8%,
    #0054e3 25%,
    #0054e3 75%,
    #0467fc 93%,
    #0036aa
  );
  text-shadow: 1px 1px #003a9e;
}
.title-caption {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  white-space: nowrap;
}
.title-caption > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}
.caption-controls {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}
.caption {
  border: 1px solid #fff;
  border-radius: 3px;
  background: linear-gradient(135deg, #bbd6fc, #6195e5 45%, #2b65c6);
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  padding: 0;
  color: white;
  font:
    700 18px/17px Arial,
    sans-serif;
  box-shadow: inset 1px 1px #ffffff66;
  text-shadow: 1px 1px #235bb5;
}
.caption:hover {
  filter: brightness(1.13);
}
.caption:active {
  filter: brightness(0.85);
}
.caption.close {
  background: linear-gradient(135deg, #efaa99, #dc6348 45%, #c43620);
  text-shadow: 1px 1px #902e1d;
}
.caption.minimize {
  padding-bottom: 5px;
}
.caption.maximize {
  font-size: 22px;
}
.caption.pin {
  font-size: 13px;
}
.caption.pin[aria-pressed="true"] {
  background: #ffde6a;
  color: #503912;
}
.contact-title {
  font-size: 11px;
  height: 24px;
  min-height: 24px;
  padding-left: 3px;
}
.contact-title .caption {
  height: 17px;
  width: 17px;
  font-size: 14px;
}
.contact-title .title-caption {
  gap: 2px;
}
.contact-title .title-caption > .icon {
  display: none;
}
.message-window.maximized {
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: calc(100dvh - 30px) !important;
  border-radius: 0;
  resize: none;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 1px;
  min-height: 25px;
  padding: 2px 3px;
  background: var(--face);
  border-bottom: 1px solid #b5b4a7;
}
.tool {
  width: 23px;
  height: 22px;
  padding: 2px;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  background: transparent;
  flex-shrink: 0;
}
.tool:hover,
.tool.pressed {
  border-color: #9d9d92;
  box-shadow: inset 1px 1px #fff;
  background: #f6f5ed;
}
.tool:active,
.tool.pressed:active {
  box-shadow: inset 1px 1px #777;
  background: #d4d0c8;
}
.divider {
  height: 18px;
  border-left: 1px solid #b3b1a8;
  border-right: 1px solid #fff;
  margin: 0 3px;
}
.flex-space {
  flex: 1;
  min-width: 0;
}
.classic {
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 2px 10px;
  border: 1px solid #003c74;
  border-radius: 3px;
  background: linear-gradient(#fff, #f0f0ea 85%, #d5d0bc);
  box-shadow: inset -1px -1px #d6d0be;
  white-space: nowrap;
}
.classic:hover {
  box-shadow: inset 0 0 0 1px #e8bd66;
  background: linear-gradient(#fff, #f5f5e9 85%, #e8c470);
}
.classic:active {
  background: #deddd1;
  box-shadow: inset 1px 1px #9a988f;
}
.classic:disabled {
  border-color: #c9c7ba;
  box-shadow: none;
}
.classic.default-button {
  box-shadow: inset 0 0 0 1px #7cadde;
}
.classic .icon {
  flex-shrink: 0;
}
.chat-tabs {
  position: relative;
  display: flex;
  flex-shrink: 0;
  align-items: end;
  height: 27px;
  padding: 3px 3px 0;
  overflow-x: auto;
  overflow-y: hidden;
  border-bottom: 1px solid #aca899;
  scrollbar-width: none;
  gap: 2px;
  background: var(--face);
}
.chat-tab {
  height: 23px;
  display: flex;
  align-items: center;
  position: relative;
  border: 1px solid #919b9c;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(#fbfcfc, #d6e0e6);
  flex-shrink: 0;
  max-width: 165px;
}
.chat-tab.active {
  height: 25px;
  background: #fff;
  border-top: 2px solid #e6b962;
}
.chat-tab > [role="tab"] {
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 140px;
  min-width: 70px;
  overflow: hidden;
  border: 0;
  background: transparent;
  height: 100%;
  padding: 2px 5px;
}
.chat-tab > [role="tab"] > span:not(.icon) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-tab.active > [role="tab"] {
  font-weight: bold;
}
.chat-tab .tab-close {
  width: 17px;
  height: 18px;
  padding: 0;
  background: transparent;
  border: 1px solid transparent;
  color: #657785;
  font-size: 13px;
  margin-right: 2px;
}
.chat-tab .tab-close:hover {
  background: #f6cac0;
  border-color: #a26c66;
  color: #000;
}
.chat-tab.unread {
  background: #ffe88c;
}
.chat-tab b {
  color: #a33400;
}
.contact-card {
  height: 64px;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 50px 1fr 126px;
  align-items: center;
  gap: 6px;
  padding: 5px;
  background: var(--face);
}
.avatar {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 1px solid #aca899;
}
.identity {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 4px;
  align-items: center;
  min-width: 0;
}
.identity label {
  text-align: right;
}
.identity-field {
  height: 20px;
  border: 1px solid;
  border-color: #aca899 #fff #fff #aca899;
  background: #fff;
  padding: 2px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: text;
  line-height: 14px;
}
.profile-right {
  display: grid;
  grid-template-columns: 1fr 20px;
  gap: 4px;
  min-width: 0;
}
.profile-right .tool {
  width: 20px;
  height: 20px;
}
.profile-right #profileNote {
  grid-column: 1/3;
  color: #58584f;
}
.profile-right #profileUin {
  font-size: 12px;
  text-align: center;
  padding-left: 0;
  padding-right: 0;
}
.conversation {
  flex: 1;
  min-height: 32px;
  overflow: auto;
  background: #fff url("./assets/qip/msgbg.png") repeat-y left top;
  border: 1px solid;
  border-color: #7f9db9 #fff #fff #7f9db9;
  padding: 4px 6px 7px;
  font-size: 12px;
  user-select: text;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.message {
  margin-bottom: 8px;
}
.message-meta {
  display: flex;
  gap: 4px;
  align-items: center;
  color: #d00000;
  font-size: 11px;
  line-height: 18px;
}
.message.outgoing .message-meta {
  color: #0000c8;
}
.message-meta .icon {
  width: 16px;
  height: 16px;
}
.message-text {
  padding: 1px 0;
  white-space: pre-wrap;
}
.smile {
  display: inline-block;
  max-width: 45px;
  max-height: 38px;
  object-fit: contain;
  vertical-align: middle;
}
.message-text .smile {
  vertical-align: middle;
}
.date-divider {
  font-size: 10px;
  color: #888;
  margin: 2px 0 7px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.date-divider:before,
.date-divider:after {
  content: "";
  height: 1px;
  background: #cbd5e1;
  flex: 1;
}
.empty-state {
  color: #737373;
  text-align: center;
  padding: 22px 12px;
  font-size: 11px;
  line-height: 1.7;
}
.splitter {
  height: 5px;
  min-height: 5px;
  cursor: row-resize;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #b5b4a7;
  background: var(--face);
  touch-action: none;
}
.splitter:focus-visible {
  outline: 1px dotted #306ac5;
  outline-offset: -1px;
}
.compose-tools {
  min-height: 25px;
  height: 25px;
  flex-shrink: 0;
  padding: 0 3px;
}
#charCounter {
  width: 36px;
  height: 19px;
  line-height: 15px;
  padding: 1px 4px;
  background: white;
  border: 1px solid;
  border-color: #7f9db9 #ddd #ddd #7f9db9;
  font-size: 10px;
  color: #555;
}
.composer {
  flex: 0 1 110px;
  min-height: 44px;
  overflow: hidden;
}
.composer textarea {
  width: 100%;
  height: 100%;
  padding: 5px 6px;
  border: 1px solid #7f9db9;
  resize: none;
  display: block;
  background: #fff url("./assets/qip/msgbge.png") repeat-y left top;
  font:
    12px/1.4 Tahoma,
    Arial,
    sans-serif;
  user-select: text;
}
.typing-line {
  font-size: 10px;
  color: #58584f;
  height: 16px;
  min-height: 16px;
  padding: 1px 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.message-footer {
  height: 43px;
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  background: var(--face);
  border-top: 1px solid white;
}
.self-avatar {
  width: 34px;
  height: 34px;
  border: 1px solid #9e9c91;
  object-fit: cover;
}
.footer-tools {
  display: flex;
  border: 1px solid;
  border-color: #aca899 #fff #fff #aca899;
  margin-left: 2px;
}
.footer-tools .tool {
  width: 20px;
  height: 21px;
  padding: 1px;
}
.send-options {
  padding: 0;
  min-width: 19px;
  width: 19px;
  margin-right: -3px;
}
.send-button {
  min-width: 92px;
}
.close-chat {
  padding: 2px 6px;
}
.contact-toolbar {
  justify-content: space-between;
  height: 27px;
  flex-shrink: 0;
  padding: 2px;
}
.contact-toolbar .tool {
  width: 23px;
  height: 22px;
}
.roster {
  background: #fff url("./assets/qip/clbg.png") repeat-y left top;
  background-size: 100% auto;
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 3px 2px;
  scrollbar-width: thin;
}
.contact-group {
  margin-bottom: 4px;
}
.group-header {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  border: 0;
  background: none;
  padding: 3px 2px 2px;
  text-align: left;
  color: #004080;
  white-space: nowrap;
  font-size: 11px;
}
.group-toggle {
  height: 9px;
  width: 9px;
  border: 1px solid #7f9db9;
  display: grid;
  place-items: center;
  background: white;
  color: #000;
  font:
    10px/8px Arial,
    sans-serif;
  flex-shrink: 0;
}
.group-count {
  color: #6000ff;
  font-weight: normal;
  font-size: 10px;
}
.contact-row {
  display: flex;
  gap: 4px;
  align-items: center;
  min-height: 21px;
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  padding: 1px 2px 1px 13px;
  text-align: left;
  color: #6000ff;
}
.contact-row.offline {
  color: #f00;
}
.contact-row:hover {
  background: #edf4fc;
  border-color: #bfcbda;
}
.contact-row.selected {
  border: 1px dotted #707a8a;
  background: linear-gradient(90deg, #a6caf0, #fff);
}
.contact-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contact-name small {
  display: block;
  color: #7d7d7d;
  font-size: 10px;
  line-height: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: normal;
}
.contact-row.unread .contact-name {
  font-weight: bold;
}
.unread-count {
  font-size: 10px;
  color: #a73500;
  flex-shrink: 0;
}
.ignored-mark {
  color: #999;
}
.compact .contact-row {
  min-height: 18px;
  padding-top: 0;
  padding-bottom: 0;
}
.roster-total {
  font-size: 10px;
  color: #697887;
  padding: 3px 5px;
  flex-shrink: 0;
  border-top: 1px solid #d1dce5;
  background: #edf5fc;
}
.contact-bottom {
  flex-shrink: 0;
  min-height: 27px;
  padding: 2px;
}
.contact-bottom .tool {
  width: 23px;
}
.qip-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  border: 1px solid #9baab5;
  background: linear-gradient(#fff, #dfe9ef);
  height: 21px;
  padding: 0 5px;
  width: 54px;
}
.qip-menu img {
  image-rendering: pixelated;
  max-width: 27px;
  max-height: 17px;
}
.status-button {
  height: 26px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 0;
  border-top: 1px solid #a3b5c3;
  padding: 3px;
  background: #e4f0fb;
  font-size: 11px;
  text-align: left;
  overflow: hidden;
}
.status-button > span:nth-child(2) {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.status-button .smile {
  width: 18px;
  height: 18px;
  border-left: 1px solid #b8c7d3;
  padding-left: 2px;
  object-fit: contain;
}
.taskbar {
  position: absolute;
  z-index: 500;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(#3f85eb, #245edb 12%, #245edb 87%, #1941a5);
  border-top: 1px solid #3888e9;
  display: flex;
  align-items: center;
  color: white;
  gap: 7px;
}
.start-button {
  height: 29px;
  min-width: 97px;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  border: 0;
  border-radius: 0 12px 12px 0;
  background: linear-gradient(#81c87a, #408d36 18%, #409932 78%, #276826);
  color: #fff;
  font:
    italic bold 17px Tahoma,
    sans-serif;
  text-shadow: 1px 2px #286223;
  box-shadow:
    inset -2px 0 2px #245324,
    inset 0 2px 2px #b7df9e;
}
.start-button:hover {
  filter: brightness(1.12);
}
.windows-logo {
  display: grid;
  grid-template-columns: 8px 8px;
  gap: 1px;
  transform: skewY(-8deg);
  width: 17px;
  height: 17px;
}
.windows-logo i:nth-child(1) {
  background: #f24e20;
}
.windows-logo i:nth-child(2) {
  background: #74ba24;
}
.windows-logo i:nth-child(3) {
  background: #168bdd;
}
.windows-logo i:nth-child(4) {
  background: #f5d430;
}
.task-buttons {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 3px;
  height: 100%;
  padding: 2px 0;
}
.task-button {
  height: 25px;
  width: 162px;
  max-width: 30vw;
  display: flex;
  align-items: center;
  gap: 5px;
  background: #3980ed;
  color: white;
  border: 1px solid #1654bc;
  border-radius: 3px;
  box-shadow: inset 1px 1px #ffffff33;
  padding: 2px 7px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
}
.task-button > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}
.task-button.active {
  background: #174fba;
  box-shadow: inset 1px 1px #123d91;
}
.tray {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px 0 7px;
  background: linear-gradient(#18c0ef, #129ae5 17%, #0a8be2 88%, #0873bd);
  border-left: 1px solid #0d5aba;
  box-shadow: inset 1px 0 #2bd3f5;
}
.tray button {
  background: none;
  border: 0;
  padding: 0;
  display: grid;
  place-items: center;
  min-width: 16px;
  height: 24px;
}
#clock {
  font-size: 11px;
  margin-left: 3px;
}
.has-unread {
  animation: flash 1.1s steps(1) infinite;
}
@keyframes flash {
  50% {
    background-color: #efac32;
    color: #141414;
  }
}
.no-blink .has-unread {
  animation: none;
  background: #efac32;
}
.boss-mode .app-window,
.boss-mode .task-buttons,
.boss-mode #trayQip,
.boss-mode .toast,
.boss-mode .shortcuts {
  visibility: hidden;
}
.popover {
  position: fixed;
  z-index: 800;
  max-width: calc(100vw - 8px);
  max-height: calc(100dvh - 42px);
  overflow: auto;
  border: 1px solid #716f64;
  background: #fff;
  padding: 2px;
  box-shadow: 2px 2px 3px #0005;
  min-width: 185px;
  font-size: 11px;
}
.popover > button {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 23px;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 3px 5px;
  white-space: nowrap;
}
.popover > button:hover,
.popover > button:focus-visible {
  background: #316ac5;
  color: #fff;
  outline: none;
}
.popover > button:disabled:hover {
  background: transparent;
  color: #858378;
}
.popover > button small {
  margin-left: auto;
  color: #888;
}
.menu-check {
  margin-left: auto;
}
.menu-separator {
  height: 1px;
  background: #aca899;
  margin: 3px 2px 3px 24px;
}
.popover-caption {
  font-weight: bold;
  color: #344c67;
  background: #e9f0f7;
  padding: 4px 6px;
  margin: -2px -2px 3px;
  border-bottom: 1px solid #b9c3ce;
}
.smile-grid {
  display: grid;
  grid-template-columns: repeat(7, 36px);
  gap: 1px;
  padding: 2px;
}
.smile-choice {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  background: none;
  padding: 2px;
}
.smile-choice .smile {
  max-width: 32px;
  max-height: 30px;
}
.smile-choice:hover {
  border-color: #316ac5;
  background: #dfebff;
}
#contactTooltip {
  position: fixed;
  z-index: 700;
  background: #ffffe1;
  border: 1px solid #000;
  box-shadow: 2px 2px 2px #0004;
  padding: 7px 9px;
  max-width: 240px;
  pointer-events: none;
  font-size: 11px;
  line-height: 19px;
}
#contactTooltip > b,
#contactTooltip > span,
#contactTooltip > small {
  display: block;
}
#contactTooltip > small {
  border-top: 1px solid #d8d5b8;
  margin-top: 3px;
  color: #777;
}
.toast {
  position: absolute;
  z-index: 510;
  right: 10px;
  bottom: 39px;
  width: 248px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px;
  border: 1px solid #000;
  border-radius: 5px;
  background: #ffffe1;
  box-shadow: 2px 2px 2px #0005;
  text-align: left;
  font-size: 11px;
}
.toast > span {
  min-width: 0;
}
.toast strong,
.toast > span > span {
  display: block;
  overflow-wrap: anywhere;
}
.toast strong {
  margin-bottom: 5px;
}
.link-button {
  border: 0;
  background: none;
  text-decoration: underline;
  color: #00c;
  padding: 2px;
}
/* Native dialog focus management with XP chrome, without darkening the desktop. */
dialog {
  position: fixed;
  padding: 0;
  margin: auto;
  width: 400px;
  max-width: calc(100vw - 16px);
  max-height: calc(100dvh - 46px);
  border: 3px solid #0054e3;
  border-top: 0;
  border-radius: 8px 8px 0 0;
  background: var(--face);
  box-shadow: 2px 3px 4px #0005;
  color: #000;
  font:
    11px Tahoma,
    Arial,
    sans-serif;
  overflow: hidden;
}
dialog::backdrop {
  background: transparent;
}
dialog[open] {
  display: flex;
  flex-direction: column;
}
dialog.wide-dialog {
  width: 610px;
}
dialog > .titlebar {
  height: 28px;
  min-height: 28px;
}
#dialogTitle {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#dialogForm {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
#dialogBody {
  padding: 12px;
  overflow: auto;
  min-height: 0;
  line-height: 1.5;
}
#dialogActions {
  padding: 9px 10px;
  display: flex;
  gap: 7px;
  justify-content: flex-end;
  border-top: 1px solid #fff;
  flex-shrink: 0;
}
#dialogActions .classic {
  min-width: 76px;
}
input:not([type="checkbox"], [type="range"], [type="color"]),
select,
textarea {
  background: #fff;
  border: 1px solid #7f9db9;
  padding: 3px 4px;
  border-radius: 0;
  min-width: 0;
  height: 23px;
}
input[readonly] {
  background: #f4f3ee;
  color: #555;
}
.form-field {
  display: grid;
  grid-template-columns: 115px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}
.form-field > span {
  text-align: right;
}
.form-field input,
.form-field select {
  width: 100%;
}
input[type="color"] {
  width: 62px;
  height: 25px;
  border: 1px solid #7f9db9;
  background: #fff;
  padding: 1px;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 11px;
  line-height: 17px;
}
.checkbox input {
  width: 13px;
  height: 13px;
  accent-color: #477d35;
  margin: 0;
  flex-shrink: 0;
}
.form-error {
  color: #a00;
  margin: 5px 0;
}
.dialog-copy {
  padding: 10px;
  line-height: 1.7;
}
.setting-note {
  color: #66665e;
  font-size: 11px;
  line-height: 1.6;
  margin: 12px 0;
}
.dialog-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid #aaa;
  margin: 0 0 12px;
}
.dialog-tabs button {
  border: 1px solid #919b9c;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  padding: 5px 9px;
  background: #e2e0d4;
}
.dialog-tabs button.selected {
  background: #fff;
  border-top: 2px solid #e6b962;
}
.search-results {
  min-height: 180px;
  max-height: 300px;
  border: 1px solid #7f9db9;
  background: #fff;
  overflow: auto;
}
.search-results button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 30px;
  border: 0;
  background: none;
  padding: 4px 8px;
  text-align: left;
}
.search-results button:hover {
  background: #316ac5;
  color: #fff;
}
.search-results small {
  margin-left: auto;
  color: #77808d;
}
.search-results button:hover small {
  color: #fff;
}
.user-info {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.info-avatar {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border: 1px solid #aaa;
}
.user-info p {
  margin: 0;
}
.details-list {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px;
  margin: 0;
  user-select: text;
}
.details-list dt {
  color: #666;
}
.details-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.history-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 9px;
}
.history-toolbar label {
  display: flex;
  gap: 6px;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.history-toolbar input {
  width: 100%;
  min-width: 0;
}
.history-toolbar .classic {
  padding: 2px 5px;
  color: #000;
  text-decoration: none;
}
.history-toolbar [aria-disabled="true"] {
  color: #858378;
  pointer-events: none;
}
.history-copy-result {
  display: block;
  min-height: 14px;
  margin-top: 4px;
  color: #315a21;
}
.export-text {
  width: 100%;
  height: 260px;
  user-select: text;
}
.history-layout {
  height: 330px;
  display: grid;
  grid-template-columns: 135px 1fr;
  border: 1px solid #7f9db9;
  background: #fff;
}
.history-contacts {
  border-right: 1px solid #aca899;
  overflow: auto;
}
.history-contacts button {
  padding: 5px 4px;
  display: flex;
  gap: 4px;
  align-items: center;
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
}
.history-contacts button.selected {
  background: #316ac5;
  color: #fff;
}
.history-transcript {
  padding: 7px;
  overflow: auto;
  user-select: text;
  overflow-wrap: anywhere;
}
.history-message {
  margin-bottom: 13px;
  white-space: pre-wrap;
}
.history-message b {
  color: #c00;
  font-size: 10px;
}
.history-message.outgoing b {
  color: #00c;
}
.settings-layout {
  display: grid;
  grid-template-columns: 165px 1fr;
  min-height: 315px;
  gap: 10px;
}
.settings-nav {
  border: 1px solid #7f9db9;
  background: #fff;
  padding: 2px;
}
.settings-nav button {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 7px 4px;
  text-align: left;
  border: 0;
  background: none;
  white-space: nowrap;
}
.settings-nav button.selected {
  background: #316ac5;
  color: #fff;
}
.settings-panel {
  min-width: 0;
}
fieldset {
  border: 1px solid #bdbbb0;
  padding: 12px 9px;
  margin: 0;
  min-width: 0;
}
legend {
  color: #0046d5;
  padding: 0 4px;
}
.settings-panel .form-field {
  grid-template-columns: 100px 1fr;
}
.volume-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 18px 0;
}
.volume-label input {
  width: 100%;
  accent-color: #4276b8;
}
.skin-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #fff;
  border: 1px solid #aca899;
}
.private-list {
  max-height: 330px;
  overflow: auto;
}
.xstatus-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-bottom: 14px;
}
.xstatus-grid button {
  height: 38px;
  border: 1px solid transparent;
  background: none;
  padding: 2px;
}
.xstatus-grid button.selected {
  background: #dfebff;
  border-color: #316ac5;
}
.xstatus-grid img {
  max-width: 35px;
  max-height: 32px;
}
.transfer-info {
  display: flex;
  gap: 7px;
  align-items: center;
  overflow-wrap: anywhere;
}
progress {
  width: 100%;
  height: 19px;
  accent-color: #32a128;
}
#transferStatus {
  margin-top: 8px;
}
.about-brand {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 15px 10px;
}
.about-brand > .icon {
  transform: scale(2.5);
  margin: 0 10px;
}
.about-brand h1 {
  color: #568215;
  margin-bottom: 2px;
}
.about-brand p {
  margin: 0;
  font-size: 10px;
  color: #777;
}
::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}
::-webkit-scrollbar-track {
  background: repeating-linear-gradient(45deg, #f5f4ee 0 1px, #e9e8df 1px 2px);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #e7effa, #c3d2e8);
  border: 1px solid #9baac2;
  box-shadow: inset 1px 1px white;
  border-radius: 2px;
}
::-webkit-scrollbar-button {
  background: #d5dfe9;
  border: 1px solid #b0b9c6;
  height: 15px;
  width: 15px;
}
@media (max-width: 1000px) and (min-width: 701px) {
  .message-window {
    left: 18px;
    width: calc(100vw - 263px);
  }
  .contact-window {
    left: auto;
    right: 18px;
    width: 205px;
  }
}
@media (max-height: 650px) and (min-width: 701px) {
  .message-window {
    top: 12px;
    height: calc(100dvh - 60px);
  }
  .contact-window {
    top: 8px;
    height: calc(100dvh - 48px);
  }
}
@media (max-width: 700px) {
  .shortcuts {
    display: none;
  }
  .app-window,
  .app-window.maximized {
    top: 8px !important;
    left: 8px !important;
    width: calc(100% - 16px) !important;
    height: calc(100dvh - 48px) !important;
    min-width: 0 !important;
    min-height: 0;
    resize: none;
  }
  .app-window:not(.focused) {
    display: none;
  }
  .contact-title {
    height: 27px;
    min-height: 27px;
  }
  .contact-title .title-caption > .icon {
    display: inline-block;
  }
  .contact-title .caption {
    width: 21px;
    height: 21px;
    font-size: 17px;
  }
  .contact-title .title-caption {
    gap: 5px;
  }
  .contact-toolbar {
    height: 33px;
    padding: 3px 8px;
    justify-content: flex-start;
    gap: 9px;
  }
  .contact-row {
    min-height: 34px;
    padding-left: 19px;
    font-size: 12px;
  }
  .group-header {
    padding: 7px 4px;
    font-size: 12px;
  }
  .contact-bottom {
    height: 33px;
  }
  .contact-bottom .tool {
    width: 29px;
  }
  .status-button {
    height: 31px;
  }
  .contact-card {
    grid-template-columns: 36px 1fr 99px;
    gap: 4px;
    padding: 4px;
    height: 55px;
  }
  .avatar {
    width: 34px;
    height: 34px;
  }
  .identity {
    grid-template-columns: 29px 1fr;
    gap: 3px;
    font-size: 10px;
  }
  .identity-field {
    height: 19px;
    font-size: 11px;
  }
  .profile-right {
    grid-template-columns: 1fr 17px;
    gap: 3px;
  }
  .profile-right #profileUin {
    font-size: 10px;
  }
  .profile-right .tool {
    width: 17px;
    height: 19px;
  }
  .message-footer {
    gap: 3px;
    height: 38px;
    min-height: 38px;
  }
  .self-avatar {
    width: 27px;
    height: 27px;
  }
  .footer-tools {
    display: none;
  }
  .message-footer .flex-space {
    flex: 1;
  }
  .close-chat {
    padding: 2px 5px;
  }
  .send-button {
    min-width: 87px;
  }
  .compose-tools .tool {
    width: 25px;
  }
  .chat-tabs {
    height: 31px;
  }
  .chat-tab {
    height: 27px;
  }
  .chat-tab.active {
    height: 29px;
  }
  .conversation {
    font-size: 12px;
  }
  .message-meta {
    font-size: 10px;
  }
  .start-button {
    min-width: 69px;
    font-size: 14px;
    gap: 4px;
    padding: 0 7px;
  }
  .taskbar {
    gap: 3px;
  }
  .task-button {
    width: 110px;
    max-width: none;
    min-width: 0;
    flex: 1;
    padding: 2px 4px;
    font-size: 10px;
  }
  .task-buttons {
    gap: 2px;
  }
  .tray {
    gap: 4px;
    padding: 0 5px;
  }
  .tray > [data-command="sound"] {
    display: none;
  }
  #clock {
    font-size: 10px;
    margin: 0;
  }
  .tray .icon {
    width: 16px;
  }
  .settings-layout {
    grid-template-columns: 116px 1fr;
    gap: 6px;
    min-height: 330px;
  }
  .settings-nav button {
    gap: 3px;
    padding: 8px 3px;
    font-size: 10px;
    white-space: normal;
  }
  .settings-panel fieldset {
    padding: 9px 6px;
  }
  .settings-panel .form-field {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .settings-panel .form-field > span {
    text-align: left;
  }
  #dialogBody {
    padding: 9px;
  }
  .history-layout {
    grid-template-columns: 104px 1fr;
    height: 360px;
  }
  .history-toolbar {
    flex-wrap: wrap;
    gap: 6px;
  }
  .history-toolbar label {
    flex-basis: 100%;
  }
  .history-contacts button {
    font-size: 10px;
  }
  .toast {
    right: 8px;
    bottom: 38px;
  }
  .form-field {
    grid-template-columns: 97px 1fr;
  }
  .title-caption {
    font-size: 11px;
  }
  .title-caption .icon {
    display: none;
  }
  .caption.pin,
  .caption.maximize {
    display: none;
  }
  dialog {
    inset: 0 !important;
    margin: auto !important;
  }
  .smile-grid {
    grid-template-columns: repeat(7, 36px);
  }
}
@media (max-height: 450px) {
  .app-window {
    min-height: 0;
    max-height: calc(100dvh - 48px);
  }
  .message-window .contact-card {
    display: none;
  }
  .conversation {
    min-height: 24px;
  }
  .composer {
    min-height: 36px;
  }
  .message-footer {
    height: 32px;
    min-height: 32px;
  }
  .self-avatar {
    width: 24px;
    height: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
