.SupportPage {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 20px 40px;
}
.SupportPage__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.SupportPage__title { color: #fff; font-size: 24px; font-weight: 800; }
.SupportPage__sub { margin-top: 4px; color: #ad9f8e; font-size: 13px; }
.SupportPage__staff {
  color: #c1b6a9;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.SupportPage__staff:hover { color: #fff; }

.SupportPage__grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 16px;
  align-items: start;
}
.SupportList {
  padding: 14px;
  background: #1c1610;
  border: 1px solid #2e251b;
  border-radius: 14px;
}
.SupportList__new {
  width: 100%;
  padding: 11px 0;
  border: 0;
  border-radius: 10px;
  background: #ffaf38;
  color: #241707;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.SupportList__new:hover { background: #ffbd5b; }
.SupportList__items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 540px;
  margin-top: 12px;
  overflow-y: auto;
}
.SupportList__item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  background: #17130e;
  border: 1px solid #2a2218;
  border-radius: 10px;
  cursor: pointer;
}
.SupportList__item:hover { border-color: #6b5d4e; }
.SupportList__item.is-active { border-color: #ffaf38; background: #231c14; }
.SupportList__subject {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.SupportList__meta { color: #c1b6a9; font-size: 11px; }
.SupportList__time { color: #9e8d79; font-size: 11px; }
.SupportList__empty { padding: 22px; text-align: center; color: #9e8d79; font-size: 12px; }
.SupportChat {
  min-height: 420px;
  background: #1c1610;
  border: 1px solid #2e251b;
  border-radius: 14px;
}
.SupportChat__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  color: #9e8d79;
  font-size: 13px;
}
.SupportChat__placeholder[hidden] { display: none !important; }
.SupportChat__inner[hidden] { display: none !important; }

.SupportChat__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #2e251b;
}
.SupportChat__subject { color: #fff; font-size: 15px; font-weight: 700; }
.SupportChat__meta { margin-top: 2px; color: #ad9f8e; font-size: 12px; }
.SupportChat__close {
  flex: 0 0 auto;
  padding: 7px 14px;
  border: 1px solid #342a1e;
  border-radius: 10px;
  background: transparent;
  color: #ad9f8e;
  font-size: 12px;
  cursor: pointer;
}
.SupportChat__close:hover { border-color: #ff5a5a; color: #ff5a5a; }
.SupportChat__close[hidden] { display: none !important; }

.SupportChat__log {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 460px;
  padding: 16px 18px;
  overflow-y: auto;
}

.SupportMsg {
  max-width: 78%;
  padding: 10px 13px;
  background: #17130e;
  border: 1px solid #2a2218;
  border-radius: 12px;
}
.SupportMsg_staff {
  align-self: flex-end;
  background: #282017;
  border-color: #403325;
}
.SupportMsg_system {
  align-self: center;
  max-width: 100%;
  padding: 6px 12px;
  background: transparent;
  border: 0;
  color: #9e8d79;
  font-size: 11px;
}
.SupportMsg__who { color: #c1b6a9; font-size: 11px; font-weight: 600; }
.SupportMsg__tag {
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 195, 105, 0.18);
  color: #ffdaa3;
  font-size: 10px;
  text-transform: uppercase;
}
.SupportMsg__time { color: #9e8d79; font-weight: 400; }
.SupportMsg__body { margin-top: 4px; color: #fff3e2; font-size: 13px; line-height: 1.55; word-break: break-word; }
.SupportMsg__files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.SupportMsg__shot img {
  width: 128px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #342a1e;
}
.SupportMsg__media {
  width: 220px;
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid #342a1e;
  background: #120e0a;
}

.SupportChat__form { padding: 14px 18px 16px; border-top: 1px solid #2e251b; }
.SupportChat__form[hidden] { display: none !important; }
.SupportChat__text {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #342a1e;
  border-radius: 10px;
  background: #17130e;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  outline: none;
}
.SupportChat__text:focus { border-color: #ffaf38; }
.SupportChat__tools { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.SupportChat__clip {
  padding: 8px 14px;
  border: 1px solid #342a1e;
  border-radius: 10px;
  color: #c1b6a9;
  font-size: 12px;
  cursor: pointer;
}
.SupportChat__clip:hover { border-color: #6b5d4e; color: #fff; }
.SupportChat__picked {
  flex: 1 1 auto;
  min-width: 0;
  color: #ad9f8e;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.SupportChat__send {
  flex: 0 0 auto;
  padding: 9px 22px;
  border: 0;
  border-radius: 10px;
  background: #ffaf38;
  color: #241707;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.SupportChat__send:hover { background: #ffbd5b; }
.SupportChat__send:disabled { background: #342a1e; color: #9e8d79; cursor: not-allowed; }
.SupportChat__hint { margin-top: 8px; color: #9e8d79; font-size: 11px; }
.SupportChat__error { min-height: 15px; margin-top: 4px; color: #ff5a5a; font-size: 11px; }
.SupportNew {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(11, 9, 7, 0.8);
}
.SupportNew[hidden] { display: none !important; }
.SupportNew__box {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 24px 22px 22px;
  background: #1d1710;
  border: 1px solid #3a2f22;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.SupportNew__x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #ad9f8e;
  cursor: pointer;
}
.SupportNew__x:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.SupportNew__title { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.SupportNew__field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.SupportNew__field span { color: #ad9f8e; font-size: 11px; }
.SupportNew__field input,
.SupportNew__field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #342a1e;
  border-radius: 10px;
  background: #17130e;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  outline: none;
}
.SupportNew__field input:focus,
.SupportNew__field textarea:focus { border-color: #ffaf38; }
.SupportNew__clip {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #342a1e;
  border-radius: 10px;
  color: #c1b6a9;
  font-size: 12px;
  cursor: pointer;
}
.SupportNew__clip:hover { border-color: #6b5d4e; color: #fff; }
.SupportNew__picked { display: block; margin-top: 6px; color: #ad9f8e; font-size: 11px; word-break: break-all; }
.SupportNew__error { min-height: 15px; margin-top: 8px; color: #ff5a5a; font-size: 11px; }
.SupportNew__submit {
  width: 100%;
  margin-top: 6px;
  padding: 12px 0;
  border: 0;
  border-radius: 12px;
  background: #ffaf38;
  color: #241707;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.SupportNew__submit:hover { background: #ffbd5b; }
.SupportNew__submit:disabled { background: #342a1e; color: #9e8d79; cursor: not-allowed; }

@media (max-width: 900px) {
  .SupportPage__grid { grid-template-columns: 1fr; }
  .SupportList__items { max-height: 240px; }
  .SupportMsg { max-width: 92%; }
}
.SupportChat__closedNote {
  margin: 0;
  padding: 14px 16px;
  color: #ac9d8c;
  font-size: 13px;
  border-top: 1px solid #3a2f22;
}
