body {
  --text-dark: #fff;
  --text-light: #fff9;
  --chat-box-dark: #1b243b;
  --chat-box-light: #fff;
  --button-text: #fff;
  --toggle-ball: #fff;
  --list-item-active: #e5effb;
  --number-bg: #6895a3;
  --message-box-1: #576c99;
  --message-box-2: #477eff;
  --chat-input: #060415;
  --border-light: #8187a2;
  --info-box-color-1: #004dfc;
  --info-box-color-2: #00ba9d;
  --info-box-color-3: #715fc2;
  --info-box-color-4: #ff562d;
  --info-icon-bg-1: #b1c7fc;
  --info-icon-bg-2: #c6f0ea;
  --info-icon-bg-3: #d9d3ff;
  --info-icon-bg-4: #ffe1d4;
  --app-bg: #060415;
  --box-color: #12172d;
  --box-border: #477eff;
  --button-bg: #477eff;
  --info-box-1: #a0baf280;
  --info-box-2: #a8f0e58c;
  --info-box-3: #c2a8f057;
  --info-box-4: #f0b9a857;
  --toggle-bg: #477eff;
  --toggle-bg-off: #6895a3;
  --logo-path-1: #477eff;
  --logo-path-2: #576c99;
  --box-shadow: #12172d99 0px 8px 24px;
  --scrollbar-thumb: linear-gradient(to bottom, #2b5876cc, #4e4376cc);
}

main {
  padding-right: 1.5rem;
}

.section-container {
  background-color: #272727;
  border-radius: 5px;
  min-width: 952px;
}

.millstone-sub-tab {
  background-color: #1a1a1a;
}

.chat-wrapper {
  overflow: auto;
}

.chat-input {
  background-color: var(--chat-input);
  color: var(--text-dark);
  border: none;
  outline: none;
  flex: 1;
  height: 32px;
  margin-right: 4px;
}

.chat-input::placeholder {
  color: var(--text-light);
  font-size: 12px;
}

.chat-input-wrapper {
  box-shadow: var(--box-shadow);
  background-color: var(--chat-input);
  border-radius: 6px;
  margin-top: auto;
  padding: 12px;
}

.input-wrapper {
  border: 1px solid var(--border-light);
  background-color: var(--chat-input);
  border-radius: 4px;
  flex: 1;
  justify-content: space-between;
  margin: 0 8px;
  padding: 0 6px 0 12px;
  font-size: 12px;
  display: flex;
  overflow: hidden;
}

.emoji-btn {
  color: #ffca3e;
  background-color: #0000;
  border: none;
  justify-content: center;
  align-items: center;
  margin: 0 4px;
  padding: 0;
  display: flex;
}

.chat-send-btn {
  color: #fff;
  background-color: var(--button-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cdefs/%3E%3Cpath fill='%23fff' d='M481.508 210.336L68.414 38.926c-17.403-7.222-37.064-4.045-51.309 8.287C2.86 59.547-3.098 78.551 1.558 96.808L38.327 241h180.026c8.284 0 15.001 6.716 15.001 15.001 0 8.284-6.716 15.001-15.001 15.001H38.327L1.558 415.193c-4.656 18.258 1.301 37.262 15.547 49.595 14.274 12.357 33.937 15.495 51.31 8.287l413.094-171.409C500.317 293.862 512 276.364 512 256.001s-11.683-37.862-30.492-45.665z'/%3E%3C/svg%3E");
  background-position: right 8px center;
  background-repeat: no-repeat;
  background-size: 14px;
  border: none;
  border-radius: 4px;
  height: 32px;
  padding: 0 32px 0 10px;
  font-size: 12px;
  line-height: 16px;
}

.chat-attachment-btn {
  color: var(--text-light);
  background-color: #0000;
  border: none;
  padding: 0;
}

.event-date {
  padding-top: .5rem;
  padding-left: 1.5rem;
}

.event-title {
  font-size: 14px;
}

.event-icon {
  border-radius: 2px;
  display: inline-block;
  overflow: hidden;
}

.event-icon svg, .event-icon img {
  width: 32px;
  height: 32px;
}

.simple-time {
  color: #61666d;
  font-size: 12px;
}

.msg_option_container {
  background-color: #060415;
  width: 188px;
  min-height: 240px;
  padding: .8em .6em;
  font-family: Microsoft YaHei New, 微软雅黑, Microsoft Yahei, Microsoft JhengHei, 宋体, Noto Sans, Helvetica Neue, Helvetica, Arial, sans-serif;
  font-size: 1.3rem;
  box-shadow: 0 0 20px #25282a38;
}

.msg_option-trigger, .msg_option-trigger:hover, .msg_option-trigger.show, .msg_option-trigger:active, .msg_option-trigger.show:focus-visible, .msg_option-trigger.btn:first-child:active {
  cursor: pointer;
  box-sizing: border-box;
  -webkit-user-select: none;
  user-select: none;
  color: #dbdee1;
  box-shadow: none;
  background-color: #2e2e2e;
  border: 1px solid #2e2e2e;
  border-radius: 4px;
  outline: none;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
  height: 28px;
  margin-bottom: 4px;
  padding: 2px 12px;
  font-size: 20px;
  font-weight: 500;
  display: flex;
}

.msg_option .dropstart .dropdown-toggle:before {
  content: none;
}

.msg_option_del {
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
}

.event-header-base {
  float: right;
  border-bottom: 1px solid #efeff0;
  align-items: center;
  min-width: calc(100% - 48px - .5rem);
  min-height: 40px;
  margin-bottom: 0;
  margin-left: .5rem;
  padding: 0;
  display: flex;
}

.event-wrapper label {
  align-items: center;
  padding-left: .5rem;
  display: flex;
}

.event-msg-content {
  border-bottom: 1px solid #efeff01c;
  margin-left: 48px;
  position: relative;
}

.img-message {
  object-fit: scale-down;
  background-color: #2e2e2e9d;
  border-radius: 5px;
  max-width: min(100%, 460px);
  margin-bottom: 1rem;
}

.attachment-message {
  opacity: .7;
  background-color: #2e2e2e9d;
  border-radius: 5px;
  align-items: center;
  max-width: 400px;
  height: 100px;
  margin-bottom: 1rem;
  padding: 2rem;
  display: flex;
  position: relative;
}

.attachment-message i {
  font-size: 50px;
  position: absolute;
  right: 1.5rem;
}

.date-tag:before {
  content: "";
  margin-right: 5px;
}

.date-tag, .date-tag:before {
  color: #757a81;
}

.tag-collapse-ctl:not([aria-expanded="false"]) .date-tag:before {
  content: "";
}

.feed-item-collapse:before {
  content: "";
  margin-right: 5px;
}

.download {
  color: #fff9;
}

.download:hover {
  color: #00ba9d;
}

.chat-image-btn, .emoji-btn i {
  color: #fff9;
  cursor: pointer;
  font-size: 24px;
}

.selection-outer {
  align-items: center;
  display: flex;
}

#chat-input {
  min-height: 50px;
}

.chat-action-wrapper {
  justify-content: space-between;
  padding: 12px;
  display: flex;
}

.chat-action-option {
  flex-direction: row;
  display: flex;
}

.input-file {
  cursor: pointer;
  opacity: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  right: 0;
  overflow: hidden;
}

.chat-input-wrapper {
  flex-grow: 0;
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  right: 0;
}

.chat-btn-container {
  opacity: .6;
  cursor: pointer;
  border-radius: 4px;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  display: flex;
}

.chat-btn-container:hover {
  opacity: 1;
}

.text-preline {
  white-space: pre-line;
}

.attachment-message span {
  white-space: pre-wrap;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  width: 85%;
  max-width: 300px;
  display: -webkit-box;
  overflow: hidden;
}

.text-message {
  word-break: break-all;
  color: #dbdee1;
  font-size: 1rem;
  font-weight: normal;
  line-height: 1.375rem;
}

#imagePreviewModal .image-upload-container, #imagePreviewModal img {
  width: 300px;
  height: auto;
}

.msg_option {
  display: none;
}

.event-wrapper {
  padding-right: .5rem;
}

.event-wrapper:hover .msg_option {
  display: block;
}

.chat-input-wrapper {
  border-radius: 0;
}

#imagePreviewModal .modal-content, #sendBigFileModal .modal-content {
  color: #61666d;
  word-spacing: .5px;
  background-color: #1a1a1a;
  border-radius: 10px;
  padding: 0;
  box-shadow: 0 0 10px #6d757a;
}

#imagePreviewModal .btn-close, #sendBigFileModal .btn-close {
  color: #fff;
  box-shadow: none;
  --bs-btn-close-bg: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20fill%3D%22%23fff%22%20class%3D%22bi%20bi-x-circle%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cpath%20d%3D%22M8%2015A7%207%200%201%201%208%201a7%207%200%200%201%200%2014m0%201A8%208%200%201%200%208%200a8%208%200%200%200%200%2016%22%2F%3E%3Cpath%20d%3D%22M4.646%204.646a.5.5%200%200%201%20.708%200L8%207.293l2.646-2.647a.5.5%200%200%201%20.708.708L8.707%208l2.647%202.646a.5.5%200%200%201-.708.708L8%208.707l-2.646%202.647a.5.5%200%200%201-.708-.708L7.293%208%204.646%205.354a.5.5%200%200%201%200-.708%22%2F%3E%3C%2Fsvg%3E");
  background-color: #343434;
  border: none;
  border-radius: 50%;
  outline: none;
  width: 32px;
  height: 32px;
  padding: 0;
}

#imagePreviewModal .modal-header, #sendBigFileModal .modal-header {
  border-color: #2f2f2f;
}

#imagePreviewModal .modal-footer, #sendBigFileModal .modal-footer {
  background-color: #4e50584d;
  border: none;
}

.msg_option {
  position: absolute;
  top: 0;
  right: 0;
}

@media (width <= 576px) {
  .chat-action-wrapper {
    display: block;
  }

  .chat-send-btn {
    margin-top: 2rem;
    margin-bottom: 2.5rem;
  }

  pt-app content main {
    margin-left: 3%;
    margin-right: 3%;
  }

  .event-date {
    padding-left: 0;
  }

  .img-message {
    max-width: 90%;
    max-height: 200px;
  }

  .attachment-message {
    height: 70px;
  }

  .text-message {
    font-size: 12px;
    line-height: 1.575;
  }

  #imagePreviewModal .modal-body {
    font-size: 10px;
  }

  .event-title {
    font-size: 12px;
  }
}
