body {
  background: url(../img/bg.webp);
  background-size: cover;
  margin: 0;
  font-family: pt-mono, monospace;
  letter-spacing: -1px;
  font-style: normal;
  font-weight: 400;
}
::-webkit-scrollbar {
  width: 16px;
  height: 16px;
  background-color: #ffffff;
  background-image: url('data:image/gif;base64,R0lGODlhAgACAJEAAAAAAP///8zMzP///yH5BAEAAAMALAAAAAACAAIAAAID1CYFADs=');
}
::-webkit-scrollbar-track {
  position: relative;
}
::-webkit-scrollbar-thumb {
  background: #bbc3c4;
  box-shadow: inset -1px -1px 0px #808088, inset 1px 1px 0px 0px #ffffff;
  border: 1px solid #0c0c0c;
  border-top: 1px solid #bbc3c4;
  border-left: 1px solid #bbc3c4;
}
::-webkit-scrollbar-button {
  background: #bbc3c4;
  box-shadow: inset -1px -1px 0px #808088, inset 1px 1px 0px 0px #ffffff;
  border: 1px solid #0c0c0c;
  border-top: 1px solid #bbc3c4;
  border-left: 1px solid #bbc3c4;
}
::-webkit-scrollbar-button:start:decrement,
::-webkit-scrollbar-button:end:increment {
  height: 16px;
  width: 16px;
  display: block;
  background-repeat: no-repeat;
  background-color: #bbc3c4;
}
::-webkit-scrollbar-button:start:decrement:active,
::-webkit-scrollbar-button:end:increment:active {
  border: 1px solid #808088;
  box-shadow: none;
  background-color: #bbc3c4;
}
::-webkit-scrollbar-button:horizontal:decrement {
  background-image: url('data:image/gif;base64,R0lGODlhBAAHAJEAAAAAAP///////wAAACH5BAEAAAIALAAAAAAEAAcAAAIIlHEIy7ppBCgAOw==');
  background-position: 4px 3px;
}
::-webkit-scrollbar-button:horizontal:decrement:active {
  background-position: 5px 4px;
}
::-webkit-scrollbar-button:horizontal:increment {
  background-image: url('data:image/gif;base64,R0lGODlhBAAHAJEAAAAAAP///////wAAACH5BAEAAAIALAAAAAAEAAcAAAIIhA4maeyrlCgAOw==');
  background-position: 5px 3px;
}
::-webkit-scrollbar-button:horizontal:increment:active {
  background-position: 6px 4px;
}
::-webkit-scrollbar-button:vertical:decrement {
  background-image: url('data:image/gif;base64,R0lGODlhBwAEAJEAAAAAAP///////wAAACH5BAEAAAIALAAAAAAHAAQAAAIHlGEJq8sOCwA7');
  background-position: 3px 5px;
}
::-webkit-scrollbar-button:vertical:decrement:active {
  background-position: 4px 6px;
}
::-webkit-scrollbar-button:vertical:increment {
  background-image: url('data:image/gif;base64,R0lGODlhBwAEAJEAAAAAAP///////wAAACH5BAEAAAIALAAAAAAHAAQAAAIIhA+CKWoNmSgAOw==');
  background-position: 3px 5px;
}
::-webkit-scrollbar-button:vertical:increment:active {
  background-position: 4px 6px;
}
::-webkit-scrollbar-corner {
  background-color: #bbc3c4;
}

button {
  border: 0;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
  background-color: transparent;
  padding: 0;
}

#quill-canvas {
  position: absolute;
  left: -999em;
  top:0;
}
.button {
  min-width: 48px;
  outline-width: 1px;
  outline-offset: -5px;
  padding: 5px 16px;
  box-shadow: rgb(12, 12, 12) -1px -1px 0px inset, rgb(255, 255, 255) 1px 1px 0px inset, rgb(128, 128, 136) -2px -2px 0px inset, rgb(187, 195, 196) 2px 2px 0px inset;
  border: 0px solid transparent;
  background-color: rgb(187, 195, 196);
  position: relative;
  user-select: none;
  font: inherit;
  appearance: none;

  &:disabled {
    color: revert;
  }

  &:focus {
    outline: rgb(0, 0, 0) dotted 1px;
    outline-offset: -4px;
  }
}

.window {
 position: absolute;
 display: flex;
  flex-direction: column;
  padding: 3px;
  background-color: rgb(192, 192, 192);
  box-shadow: rgb(12, 12, 12) -1px -1px 0px inset, rgb(187, 195, 196) 1px 1px 0px inset, rgb(128, 128, 136) -2px -2px 0px inset, rgb(255, 255, 255) 2px 2px 0px inset;
  border: 1px solid rgba(0, 0, 0, 0.5);
  font-size: 10px;
  width: 100%;
}

.window__title {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  /* max-width: 200px; */
}

#buddy .window__title {
  max-width: 150px;
}

#away-message .window__title {
  max-width: 200px;
}

#signon.window__body {
  padding: 3px 6px 6px;
}

.banner__title {
  display: flex;
  gap: .2rem;
}

.banner ul {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-size: 11px;
  height: 20px;
  list-style: none;
  margin: 0px 0px 1px;
  display: flex;
  background: linear-gradient(to right, rgb(140, 140, 140), rgb(171, 171, 171));
  font-weight: bold;
  color: rgb(171, 171, 171);
  padding: 0px 1px 0px 3px;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  justify-content: space-between;
  letter-spacing: 1px;
  cursor: default;
  
}

.window.window--focused {
  z-index: 999;
}
.window.window--focused .banner ul {
  background: linear-gradient(to right, rgb(0, 0, 162), rgb(18, 111, 194));
  background: linear-gradient(to right, #4e0107, #d92433);
  color: rgb(255, 255, 255);
}

.window--max {
  width: 100% !important;
  max-inline-size: none !important;
  height: calc(100% - 26px) !important;
  transform: none !important;
  top: 0 !important;
}

.window--min {
  display: none;
}

.banner ul li:last-child {
  display: flex;
}

.banner button {
  background-color: rgb(187, 195, 196);
  background-color: rgb(255 255 255 / 50%);
  position: relative;
  user-select: none;
  box-shadow: rgb(12, 12, 12) -1px -1px 0px inset, rgb(255, 255, 255) 1px 1px 0px inset, rgb(128, 128, 136) -2px -2px 0px inset, rgb(187, 195, 196) 2px 2px 0px inset;
  padding: 0px;
  min-width: initial;
  width: 16px;
  height: 14px;
  margin-left: 1px;
  image-rendering: pixelated;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-position: 1px 1px;
  outline: 0px;
  border: 0px;
  cursor: pointer;
}

.banner__button {
  background-color: rgb(187, 195, 196);
  position: relative;
  user-select: none;
  box-shadow: rgb(12, 12, 12) -1px -1px 0px inset, rgb(255, 255, 255) 1px 1px 0px inset, rgb(128, 128, 136) -2px -2px 0px inset, rgb(187, 195, 196) 2px 2px 0px inset;
  padding: 0px;
  min-width: initial;
  width: 16px;
  height: 14px;
  margin-left: 1px;
  image-rendering: pixelated;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-position: 1px 1px;
  outline: 0px;
  border: 0px;
  text-indent: -999em;
  
  &:focus {
    padding: 2px 8px 1px 4px;
    background-position: 2px 2px;
    box-shadow: rgb(255, 255, 255) -1px -1px 0px inset, rgb(12, 12, 12) 1px 1px 0px inset, rgb(187, 195, 196) -2px -2px 0px inset, rgb(128, 128, 136) 2px 2px 0px inset;
  }
}
.button--min {
  background-image:  url("data:image/gif;base64,R0lGODlhDQALAJEAAAAAAP///////wAAACH5BAEAAAIALAAAAAANAAsAAAIOlI+py+0PozSg2mXvFAUAOw==");
}
.button--max {
  background-image:  url("data:image/gif;base64,R0lGODlhDQALAJEAAAAAAP///////wAAACH5BAEAAAIALAAAAAANAAsAAAIXlI8Jy4wNXzJAznqwsjtPoYFfCDXfWQAAOw==");
}
.button--max--active {
  background-image: url(../img/max--active.svg);
  background-position: center !important;
}

.button--close {
  background-image:  url("data:image/gif;base64,R0lGODlhDQALAJEAAAAAAP///////wAAACH5BAEAAAIALAAAAAANAAsAAAIUlI+pKwDoVGxvucmwvblqo33MqBQAOw==");
}

#chat-output {
  margin-top: 6px;
}

.chat__input-output {
  position: relative;
  height: 102px !important;
  background-color: rgb(255, 255, 255);
  box-shadow: rgb(0, 0, 0) 2px 2px 1px inset;
  resize: none;
  font-style: inherit;
  font-variant: inherit;
  font-weight: inherit;
  font-stretch: inherit;
  line-height: inherit;
  font-optical-sizing: inherit;
  font-kerning: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  appearance: none;
  padding: 6px;
  border: 0px;
  border-radius: 0px;
  font-size: 16px;
  overflow-y: auto;
  -webkit-box-flex: 1;
  flex-grow: 1;

  & p {
    margin: 0;
    word-break: break-word;
  }
}

.ql-editor {
  padding: 0;
  height: 100%;

  &:focus {
    outline: none;
  }

  & .ql-size-large {
    font-size: 2em;
  }
  & .ql-size-small {
    font-size: .8em;
  }
  & p {
    margin-top: 0;
  }
}

.chat__input-output img,
.ql-editor img {
  display: inline-block;
}

#root {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#signon {
  max-inline-size: 204px;
}

#buddy {
  max-inline-size: 220px;
}

#chat {
  max-inline-size: 400px;
}

.chat__body {
  display: flex;
  padding: 0px 10px;
}

.chat__buddy-icon {
  padding-top: 7px;
  padding-right: 10px;
  display: grid;
  grid-template-rows: 137px 48px;
}

.chat__wrapper {
  flex: 1;
}

.chat__commands {
  display: flex;
  -webkit-box-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  align-items: center;
  height: 53px;
  box-shadow: rgb(223, 223, 223) -1px -1px inset, grey 1px 1px inset;
  margin: 5px 0px 2px;
  padding: 0px 5px;
}

.chat__commands__center {
  webkit-box-flex: 1;
  flex-grow: 1;
  display: flex;
  height: 100%;
  justify-content: space-evenly;
}

.chat__commands__left {
  display: flex;
  -webkit-box-pack: center;
  justify-content: center;

  & button {
    padding-inline: 5px;
  }
}

.window__menu {
  margin: 0px;
  padding: 0px;
  display: flex;
  list-style: none;
  position: relative;
}

.window__menu button {
  appearance: none;
  margin: 0px;
  padding: 5px 7px;
  background-color: transparent;
  font: inherit;

  &:focus {
    box-shadow: rgb(255, 255, 255) -1px -1px 0px inset, rgb(12, 12, 12) 1px 1px 0px inset, rgb(187, 195, 196) -2px -2px 0px inset, rgb(128, 128, 136) 2px 2px 0px inset;
  }

  &:focus + .subnav,
&:active + subnav {
    display: block;
  }
}

.subnav {
  list-style-type: none;
  padding: 0;
  background-color: rgb(192, 192, 192);
  z-index: 99999;
  padding: 4px;
  box-shadow: rgb(12, 12, 12) -1px -1px 0px inset, rgb(187, 195, 196) 1px 1px 0px inset, rgb(128, 128, 136) -2px -2px 0px inset, rgb(255, 255, 255) 2px 2px 0px inset;
  border: 1px solid rgba(0, 0, 0, 0.5);
  position: absolute;
  left: 0px;
  top: 100%;
  display: none;

  & button {
    position: relative;
    display: block;
    width: 100%;
    padding: 4px 20px;
    margin: 0px;
    border: 0px;
    background-color: transparent;
    appearance: none;
    text-align: left;

    &:hover {
      background-color: rgb(5, 2, 131);
      color: rgb(255, 255, 255);
    }
  }

  &::before {
    content: '';
    display: block;
    width: 45px;
    height: 25px;
    top: -25px;
    position: absolute;
  }

  &:hover {
    display: block;
  }
  
  & button svg {
    width: 8px;
    height: 8px;
    position: absolute;
    right: 4px;
    top: calc(50% - 1px);
    transform: translateY(-50%);
    fill: currentcolor;
  }

  & > li {
    position: relative;

    &:hover > ul {
      display: block;
    }
  }
  
  & > li > ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    list-style-type: none;
    padding: 0;
    background-color: rgb(192, 192, 192);
    z-index: 99999;
    padding: 4px;
    box-shadow: rgb(12, 12, 12) -1px -1px 0px inset, rgb(187, 195, 196) 1px 1px 0px inset, rgb(128, 128, 136) -2px -2px 0px inset, rgb(255, 255, 255) 2px 2px 0px inset;
    border: 1px solid rgba(0, 0, 0, 0.5);
    position: absolute;
    left: 100%;
    top: 0;
    width: 130px;
    display: none;
    min-width: 150px;

    &:hover {
      display: block;
    }

    & li {
      /* width: 110%; */
    }
  }
}

.divider {
  height: 2px;
  border-top: 1px solid rgb(132, 132, 132);
  border-left: 1px solid rgb(132, 132, 132);
  border-bottom: 1px solid rgb(255, 255, 255);
  margin: 0px;
}

.divider--vertical {
  width: 2px;
  border-left: 1px solid rgb(132, 132, 132);
  border-right: 1px solid rgb(255, 255, 255);
  height: calc(100% - 2px);
  margin: 0px 3px;
  align-self: flex-end;
}
.send-bar {
  display: flex;
  width: 48px;
  height: 8px;
  border-width: 1px;
  border-style: solid;
  border-color: rgb(160, 160, 160) rgb(255, 255, 255) rgb(255, 255, 255) rgb(160, 160, 160);
  margin-top: 4px;
  background: black;
  padding: 1px;
}

.bar + .bar {
  margin-left: 1px;
}

.bar--red {
  width: 2px;
  height: 100%;
  background-color: red;
}

.bar--yellow {
  width: 2px;
  height: 100%;
  background-color: yellow;
}

.bar--green {
  width: 2px;
  height: 100%;
  background-color: green;
}

.signon__header {
  width: 180px;
  height: 143px;
  display: block;
  margin: auto;
  background: #d72231;
}

.signon__wrapper {
  padding-inline: 10px;
}
.signon__body {
  padding: 3px 6px 6px;
}

.input {
  position: relative;
  padding: 4px;
  font-size: 11px;
  border: none;
  box-shadow: rgb(255, 255, 255) -1px -1px 0px inset, rgb(128, 128, 136) 1px 1px 0px 0px inset, rgb(187, 195, 196) -2px -2px 0px inset, rgb(12, 12, 12) 2px 2px 0px 0px inset;
  width: 100%;
  font-family: inherit;
  outline: 0px;
  margin: 0px;
  border-radius: 0px;
}

.screenname__wrapper {
  position: relative;
}
input[type="text"] ~ label {
  display: block;
}
.screenname--dropdown {
  padding: 0px;
  position: absolute;
  box-shadow: rgb(12, 12, 12) -1px -1px 0px inset, rgb(187, 195, 196) 1px 1px 0px inset, rgb(128, 128, 136) -2px -2px 0px inset, rgb(255, 255, 255) 2px 2px 0px inset;
  height: 16px;
  width: 16px;
  left: calc(100% - 18px);
  top: 2px;
  background-color: rgb(187, 195, 196);
  background-repeat: no-repeat;
  background-position: center center;
  background-image: url("data:image/gif;base64,R0lGODlhBwAEAJEAAAAAAP///////wAAACH5BAEAAAIALAAAAAAHAAQAAAIIhA+CKWoNmSgAOw==");
}

.buddy__body {
  margin: 0px 3px;
  display: flex;
  flex-direction: column;
  -webkit-box-flex: 1;
  flex-grow: 1;
}

.buddy__tabs ul {
  display: flex;
  align-items: flex-end;
  margin: 0px;
  padding: 0px;
  list-style: none;

  & button {
    position: relative;
    appearance: none;
    padding: 4px 8px;
    margin: 0px;
    background: transparent;
    font: inherit;
    border-radius: 4px 0px 0px;
    border-width: 1px 1px 0px;
    border-top-style: solid;
    border-right-style: solid;
    border-left-style: solid;
    border-top-color: rgb(249, 245, 242);
    border-right-color: rgb(249, 245, 242);
    border-left-color: rgb(249, 245, 242);
    border-image: initial;
    border-bottom-style: initial;
    border-bottom-color: initial;
    box-shadow: rgb(3, 3, 0) 1px 1px 1px;

    &.active {
      border-bottom-color: transparent;
      font-weight: bold;
      border-right: 0px;
      z-index: 1;
      position: relative;
      background: rgb(192, 192, 192);
      padding: 5px 8px;

      &:after {
        content: "";
        position: absolute;
        left: 0px;
        top: calc(100% - 2px);
        width: 100%;
        height: 5px;
        background: rgb(192, 192, 192);
        z-index: 1;
      }
    }
  }
}

.buddy__wrapper {
  border: 1px solid rgb(249, 245, 242);
  position: relative;
  background-color: rgb(192, 192, 192);
  padding-top: 4px;
  box-shadow: rgb(3, 3, 0) 1px 1px 1px;
  margin-bottom: 4px;
  display: flex;
  flex-direction: column;
  -webkit-box-flex: 1;
  flex-grow: 1;
}

.buddy__list {
  position: relative;
  min-height: 300px;
  height: 100%;
  background-color: rgb(255, 255, 255);
  margin: 3px;
  box-shadow: rgb(0, 0, 0) 2px 2px 1px inset;

  & > ul {
    padding-top: 4px;
    padding-left: 2px;
    margin: 0;
    list-style: none;
  }
}

.buddy-category {
  appearance: none;
  background-color: transparent;
  font-style: inherit;
  font-variant: inherit;
  font-stretch: inherit;
  font-size: inherit;
  line-height: inherit;
  font-family: inherit;
  font-optical-sizing: inherit;
  font-kerning: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  position: relative;
  padding: 3px 4px 3px 18px;
  font-weight: bold;

  &.buddy-category--open::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 6px;
    width: 0px;
    height: 0px;
    border-width: 4px;
    border-style: solid;
    border-color: transparent transparent transparent rgb(47, 47, 47);
  }
  

  &.buddy-category--open::before {
    left: 4px;
    border-width: 5px 4px 0px;
    border-left-style: solid;
    border-left-color: transparent;
    border-right-style: solid;
    border-right-color: transparent;
    border-bottom-style: initial;
    border-bottom-color: initial;
    border-top-style: solid;
    border-top-color: rgb(47, 47, 47);
  }

  &::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 6px;
    width: 0px;
    height: 0px;
    border-width: 4px;
    border-style: solid;
    border-color: transparent transparent transparent rgb(47, 47, 47);
  }

  & span {
    padding: 2px;
  }
  
  &:focus span {
    background-color: yellow;
    outline: rgb(1, 1, 1) dotted 1px;
  }
}

.buddy-screenname {
  appearance: none;
  margin: 0px 0px 0px 20px;
  background-color: transparent;
  border: 0px;
  font: inherit;
  padding: 2px 4px 2px 15px;

  &:focus {
    background-color: yellow;
    outline: rgb(1, 1, 1) dotted 1px;
  }
}

.buddy__toolbar {
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  position: relative;
  padding: 4px;
  height: 31px;

  & button {
    margin-inline: 4px;
  }
}

.buddy__hero {
  display: block;
  max-width: 100%;
  margin: 3px auto;
  background: #d72231;
  width: 100px;
  height: 60px;
}

.send__wrapper {
  display: flex;
  flex-direction: column;
  -webkit-box-align: center;
  align-items: center;
}
/* Utilities */
.flex {
  display: flex;
}
.align-center {
  align-items: center;
}
.align-end {
  align-items: flex-end;
}
.justify-between {
  justify-content: space-between;
}
.flex-col {
  flex-direction: column;
}
.gap-2 {
  gap: .5rem;
}
.mt-0 {
  margin-top: 0;
}


.checkbox {
  opacity: 0;
  display: none;
  cursor: pointer;
}
.checkbox + label {
  position: relative;
  padding: 1px 0px 1px 16px;

  &::before {
    content: "";
    position: absolute;
    left: 0px;
    top: 1px;
    background-repeat: no-repeat;
    width: 13px;
    height: 13px;
    background-color: rgb(255, 255, 255);
    box-shadow: rgb(255, 255, 255) -1px -1px 0px inset, rgb(128, 128, 136) 1px 1px 0px 0px inset, rgb(187, 195, 196) -2px -2px 0px inset, rgb(12, 12, 12) 2px 2px 0px 0px inset;
  }
}

.checkbox:checked + label::before {
  ontent: "";
  position: absolute;
  left: 0px;
  top: 1px;
  background-repeat: no-repeat;
  width: 13px;
  height: 13px;
  background-color: rgb(255, 255, 255);
  box-shadow: rgb(255, 255, 255) -1px -1px 0px inset, rgb(128, 128, 136) 1px 1px 0px 0px inset, rgb(187, 195, 196) -2px -2px 0px inset, rgb(12, 12, 12) 2px 2px 0px 0px inset;
  background-image: url(data:image/gif;base64,R0lGODlhBwAHAJEAAAAAAP///////wAAACH5BAEAAAIALAAAAAAHAAcAAAIMlA9nwMj9xGuLIlUAADs=);
  background-position: center center;
  background-size: 8px;
}

.checkbox:disabled+label {
  color: #808088;

  &::before {
    background-color: #bbc3c4;
  }
}
.user-message {
  display: block;
  & > div {
    display: inline;
  }
  & .user-screenname {
    color: rgb(147, 51, 48);
    font-family: 'Times New Roman', serif;
    font-weight: 700;
    letter-spacing: 0px;
 }
  &.user-message--cc .user-screenname {
    color: rgb(0, 120, 215);
  }
  & p:first-child {
    display: inline;
  }
}



.toolbar {
  display: flex;
  -webkit-box-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  align-items: center;
  height: 20px;
  box-shadow: rgb(223, 223, 223) -1px -1px inset, grey 1px 1px inset;
  margin: 5px 0px 2px;
  & button:not(.smiley) {
    appearance: none;
    margin: 0px;
    background: transparent;
    border-width: 1px 0px 0px 1px;
    border-right-style: initial;
    border-bottom-style: initial;
    border-right-color: initial;
    border-bottom-color: initial;
    border-image: initial;
    border-top-style: solid;
    border-top-color: transparent;
    border-left-style: solid;
    border-left-color: transparent;
    padding: 0px 5px;
    height: 80%;

    &:hover, &:focus {
      border-color: rgb(255, 255, 255);
      box-shadow: rgb(160, 160, 160) 1px 1px 1px 0px, rgb(160, 160, 160) 2px 2px 1px 0px;
    }

    &.ql-active {
      appearance: none;
      margin: 0px;
      background: transparent;
      border-width: 1px 0px 0px 1px;
      border-right-style: initial;
      border-bottom-style: initial;
      border-right-color: initial;
      border-bottom-color: initial;
      border-image: initial;
      border-top-style: solid;
      border-top-color: transparent;
      border-left-style: solid;
      border-left-color: transparent;
      padding: 0px 5px;
      box-shadow: rgb(255, 255, 255) -1px -1px inset, rgb(10, 10, 10) 1px 1px inset, rgb(223, 223, 223) -1px -1px inset, rgb(128, 128, 128) 1px 1px inset;
    }
  }
}

#color-picker {
  max-inline-size: 236px;
}

.color-picker {
  & fieldset {
    width: 200px;
    padding: 5px;
    margin: 8px 8px 8px;
  }
}

.color-picker__buttons {
  width: 100%;
  display: flex;
  margin: 0px 8px;

  & button {
    margin: 0px 4px 8px;
    min-width: 48px;
    outline-width: 1px;
    outline-offset: -5px;
    padding: 5px 1px;
    box-shadow: rgb(12, 12, 12) -1px -1px 0px inset, rgb(255, 255, 255) 1px 1px 0px inset, rgb(128, 128, 136) -2px -2px 0px inset, rgb(187, 195, 196) 2px 2px 0px inset;
    border: 0px solid transparent;
    background-color: rgb(187, 195, 196);
    position: relative;
    user-select: none;
    font: inherit;
    appearance: none;
  }
}

.colors {
  display: flex;
  flex-wrap: wrap;
  width: 200px;
        
  & input {
    display: none;
  }
  
  & input + label {
    display: block;
    width: 19px;
    height: 19px;
    margin: 3px;
    padding: 0px;
    border: 0px;
    appearance: none;
  }

  & input:checked + label {
    outline: rgb(0, 0, 0) dotted 1px;
    outline-offset: 1px;
  }
}

#set-away-message {
  max-inline-size: 350px;
}

.away-message__body {
  padding: 12px 16px;

}

.away-message__label {
  display: flex;
  -webkit-box-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  align-items: center;
}

.away-message__content-label {
  display: block;
  margin: 15px 24px 12px 0px;
}

.away-message__chars {
  & p {
    margin-top: 2px;
  }
}

.away-message__checkbox {
  width: 42%;
  display: flex;
  align-items: flex-end;
}

.away-message__actions {
  width: 100%;
  display: flex;
  -webkit-box-pack: center;
  justify-content: center;
  margin: 0px 8px;

  & button {
    margin: 0px 10px;
    min-width: 48px;
    outline-width: 1px;
    outline-offset: -5px;
    padding: 5px 16px;
    box-shadow: rgb(12, 12, 12) -1px -1px 0px inset, rgb(255, 255, 255) 1px 1px 0px inset, rgb(128, 128, 136) -2px -2px 0px inset, rgb(187, 195, 196) 2px 2px 0px inset;
    border: 0px solid transparent;
    background-color: rgb(187, 195, 196);
    position: relative;
    user-select: none;
    font: inherit;
    appearance: none;
  }
}

#preferences {
  max-inline-size: 565px;
  width: 565px;
}

.preferences__category {
  display: flex;
  flex-direction: column;
  -webkit-box-align: center;
  align-items: center;
  margin-right: 11px;
}
.preferences__category__items {
  width: 80px;
  height: 375px;
}

.option-box {
  position: relative;
  width: 100%;
  background-color: #fff;
  padding: 2px;

  &:after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 0 #808088, inset -2px -2px 0 #bbc3c4, inset 2px 2px 0 0 #0c0c0c;
    pointer-events: none;
    content: "";
  }

  & button {
    isplay: block;
    outline: none;
    background: transparent;
    border: none;
    white-space: nowrap;
    overflow: hidden;
    color: #0c0c0c;
    width: 100%;
    text-align: left;
    padding: 4px;

    &.active {
      background-color: #0000a2;
      color: #fff;
      outline-offset: -1px;
      outline: 1px dotted #fff;
    }
  }
}

.preferences__icon-options {
  width: 188px;
  margin-right: 8px;
}

.preferences__my-icons {
  width: 170px;
  height: 75px;
  overflow-y: scroll;
}

.preferences__icons__inner {
  position: relative;
  background-color: rgb(255, 255, 255);
  background-color: #bbc3c4;
  margin: 27px 3px 3px;
  box-shadow: rgb(0, 0, 0) 2px 2px 1px inset;
  width: 252px;
  height: 339px;
  padding: 0px;
  overflow-y: auto;
}

.preferences__icons__wrapper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0px, 1fr));
  padding: 2px 0px 0px 2px;
  gap: 0px;
}

.preferences__actions {
  width: 100%;
  display: flex;
  -webkit-box-pack: end;
  justify-content: flex-end;
  margin: 0px;
  gap: 8px;
}

.details {
  position: relative;
  border: 1px solid #fff;
  outline: 1px solid #808088;
  padding: 5px;
  margin: 16px 8px 8px;
}

.details__title {
  position: absolute;
  top: -10px;
  padding: 2px 4px;
  background-color: #bbc3c4;
}

.button--icon {
  &:hover img {
    filter: saturate(1.4)
  }
}
.button--buddy-icon {
  border: 0 solid transparent;
  background-color: #bbc3c4;
  position: relative;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  min-width: 48px;
  outline-width: 1px;
  outline-offset: -5px;
  padding: 5px 1px;
  box-shadow: inset -1px -1px 0 #0c0c0c, inset 1px 1px 0 #fff, inset -2px -2px 0 #808088, inset 2px 2px 0 #bbc3c4;
  font: inherit;
}

.radio {
  & input[type="radio"] {
    opacity: 0;
    display: none;
    cursor: pointer;

    &+label {
      position: relative;
      padding: 1px 0 1px 16px;

      &::before {
        content: "";
        position: absolute;
        left: 0;
        top: 1px;
        width: 20px;
        height: 12px;
        background-repeat: no-repeat;
        background-image: url(data:image/gif;base64,R0lGODlhDAAMAKIAAAAAAP///8zMzJmZmf///wAAAAAAAAAAACH5BAEAAAQALAAAAAAMAAwAAAMqSErTs6uBCVqcIQesBtCaEDAfGAaeeaZqILKqyLQyI4hhTWT3nUEKECQBADs=);
      }
    }
    
    &:checked+label {
      border-bottom-left-radius: 2px;
      border-bottom-right-radius: 2px;

      &::before {
        background-image: url(data:image/gif;base64,R0lGODlhDAAMAKIAAAAAAP///8zMzJmZmf///wAAAAAAAAAAACH5BAEAAAQALAAAAAAMAAwAAAMtSErTs6uBCVqcIQesBtCaEDBfhmWiZ1JooG5skJZwOA6g3QliKC4oXg+iAEESADs=);
      }
    }
  }
  
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

#taskbar {
  position: fixed;
  background-color: #bbc3c4;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  z-index: 10;
  box-shadow: 0 -1px 0 #fff;
  padding: 2px 0;
  display: flex;
}

.taskbar__windows {
  display: flex;
  flex-grow: 1;
  flex-shrink: 1;
  flex-wrap: nowrap;
  margin-right: 4px;
  min-width: 42px;
}

.button--window {
  flex: 1 1;
  margin: 0 1px;
  height: 22px;
  max-width: 140px;
  min-width: 40px;
  display: inline-block;
  width: 100%;
  padding-top: 1px;
  padding-left: 22px;
  padding-right: 3px;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  background-repeat: no-repeat;
  background-position: 4px 3px;
  box-shadow: inset -1px -1px 0 #0c0c0c, inset 1px 1px 0 #fff, inset -2px -2px 0 #808088, inset 2px 2px 0 #bbc3c4;
  &:before {
    content: '';
    width: 15px;
    height: 15px;
    background: url(../img/icons/webp/banner_logo.webp) center center;
    background-size: contain;
    position: absolute;
    left: 5px;
    top: 4px;
  }
}

.button--window--chat {
  &:before {
    background-image: url(../img/icons/webp/banner_chat_logo.webp);
  }
}

.button--active {
  font-weight: 700;
  background-position: 5px 5px;
  box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 #0c0c0c, inset -2px -2px 0 #bbc3c4, inset 2px 2px 0 #808088;
  padding-top: 3px;
  padding-left: 23px;
  padding-right: 2px;
}

.button--start {
  height: 22px;
  display: flex;
  align-content: center;
  width: 54px;
  padding-block: .2rem;
  font-size: 10px;
  padding-right: 6px;
  box-shadow: inset -1px -1px 0 #0c0c0c, inset 1px 1px 0 #fff, inset -2px -2px 0 #808088, inset 2px 2px 0 #bbc3c4;
}

#taskbar button {
  padding-block: .2rem;
  font-size: 10px;  
}

.taskbar__time {
  background-color: #bbc3c4;
  display: flex;
  flex: none;
  margin-left: auto;
  align-items: center;
  height: 22px;
  padding: 0 8px 0 4px;
  box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 #808088;
}

.smiley-wrapper {
  position: relative;
}

.smileys {
  position: absolute;
  top: 0px;
  left: 50%;
  transform: translateY(-100%) translateX(-50%);
  background: rgb(192, 192, 192);
  padding: 4px;
  width: 138px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0px, 1fr));
  box-shadow: rgb(12, 12, 12) -1px -1px 0px inset, rgb(187, 195, 196) 1px 1px 0px inset, rgb(128, 128, 136) -2px -2px 0px inset, rgb(255, 255, 255) 2px 2px 0px inset;
  border: 1px solid rgba(0, 0, 0, 0.5);
  display: none;

  &:hover {
    display: grid;
  }
}

.button--smileys:focus + .smileys {
  display: grid;
}

.smiley {
  padding: 2px;
  display: flex;
  justify-content: center;

  &:hover {
    background-color: rgb(0, 120, 215);
  }
}

#away-message {
  max-inline-size: 300px;
}

.am__body {
  padding: 0px 6px;
}
.am__text-wrapper {
  position: relative;
  background-color: rgb(192, 192, 192);
  box-shadow: rgb(3, 3, 0) 1px 1px 1px;
  margin-top: 6px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  -webkit-box-flex: 1;
}

.am__text-inner {
  position: relative;
  height: 102px;
  min-width: 275px;
  background-color: rgb(255, 255, 255);
  box-shadow: rgb(0, 0, 0) 2px 2px 1px inset;
  resize: none;
  font-style: inherit;
  font-variant: inherit;
  font-weight: inherit;
  font-stretch: inherit;
  line-height: inherit;
  font-optical-sizing: inherit;
  font-kerning: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  appearance: none;
  padding: 6px;
  border: 0px;
  border-radius: 0px;
  font-size: 16px;
  overflow-y: auto;
  -webkit-box-flex: 1;
  flex-grow: 1;
}

.am__responses {
  position: relative;
  background-color: rgb(192, 192, 192);
  box-shadow: rgb(3, 3, 0) 1px 1px 1px;
  margin-top: 6px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  -webkit-box-flex: 1;
}

.am__responses__inner {
  position: relative;
  min-width: 275px;
  background-color: rgb(255, 255, 255);
  box-shadow: rgb(0, 0, 0) 2px 2px 1px inset;
  resize: none;
  font-style: inherit;
  font-variant: inherit;
  font-weight: inherit;
  font-stretch: inherit;
  line-height: inherit;
  font-optical-sizing: inherit;
  font-kerning: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  appearance: none;
  padding: 6px;
  border: 0px;
  border-radius: 0px;
  font-size: 16px;
  -webkit-box-flex: 1;
  flex-grow: 1;
  overflow-y: scroll;
  height: 50px;
}

.am__footer {
  display: flex;
  flex-direction: column;
  margin: 20px 0px 6px;
}
