.support-button { position: relative; }
.support-button svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.support-badge,
.admin-dashboard-dropdown button > b {
  position: absolute;
  min-width: 19px;
  height: 19px;
  border: 2px solid #071d1d;
  border-radius: 10px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  background: #e24b32;
  color: #fff;
  font: 900 10px/1 system-ui;
}
.support-badge { top: -5px; right: -5px; }
.support-badge[hidden],
.admin-dashboard-dropdown button > b[hidden] { display: none; }
.support-screen,
.admin-dashboard-screen {
  height: 100dvh;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}
.support-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px max(14px, env(safe-area-inset-right)) 36px max(14px, env(safe-area-inset-left));
}
.support-shell {
  width: min(100%, 920px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(340px, 1.2fr);
  gap: 14px;
  align-items: start;
}
.support-new,
.support-history {
  border: 1px solid rgba(224, 184, 101, .2);
  border-radius: 18px;
  padding: 16px;
  background: rgba(8, 43, 40, .9);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .2);
}
.support-new h3,
.support-history h3 { margin: 0 0 5px; color: #fff3cf; }
.support-new > p { color: #bfd2ca; }
.support-new form { display: grid; gap: 7px; margin-top: 16px; }
.support-new label,
.support-follow-up label { color: #d7c69f; font-size: 12px; font-weight: 900; }
.support-new input,
.support-new select,
.support-new textarea,
.support-follow-up textarea,
.admin-support-reply textarea {
  width: 100%;
  border: 1px solid rgba(222, 189, 116, .3);
  border-radius: 10px;
  padding: 10px;
  background: #041f1e;
  color: #f8edcf;
}
.support-new textarea { min-height: 150px; resize: vertical; }
.support-new button,
.support-follow-up button,
.admin-support-reply button {
  border: 0;
  border-radius: 11px;
  padding: 11px 14px;
  background: #df8f37;
  color: #17110a;
  font-weight: 900;
  cursor: pointer;
}
.support-new button:disabled,
.support-follow-up button:disabled,
.admin-support-reply button:disabled { opacity: .5; cursor: wait; }
.support-section-title { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.support-section-title small { color: #d6ad66; font-weight: 900; }
.support-section-title > b { color: #f0bd6a; font-size: 22px; }
.support-thread-list { display: grid; gap: 9px; margin-top: 12px; }
.support-thread {
  border: 1px solid rgba(226, 186, 100, .18);
  border-radius: 13px;
  overflow: hidden;
  background: rgba(3, 27, 26, .62);
}
.support-thread.is-unread { border-color: #e6a34e; box-shadow: inset 4px 0 #e6a34e; }
.support-thread > summary {
  padding: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}
.support-thread > summary::-webkit-details-marker { display: none; }
.support-thread > summary span,
.support-thread > summary small,
.support-thread > summary strong { display: block; }
.support-thread > summary small { color: #d6ad66; font-size: 10px; font-weight: 900; }
.support-thread > summary strong { margin-top: 3px; color: #f8e8bd; }
.support-status {
  border-radius: 9px;
  padding: 5px 7px;
  color: #102522;
  font-size: 10px;
}
.support-status.is-open { background: #efb04f; }
.support-status.is-answered { background: #68c89e; }
.support-status.is-closed { background: #8fa29a; }
.support-conversation { padding: 0 12px 12px; display: grid; gap: 8px; }
.support-message { max-width: 88%; border-radius: 12px; padding: 10px; }
.support-message header { display: flex; justify-content: space-between; gap: 9px; }
.support-message header strong { color: #fff1cc; font-size: 11px; }
.support-message header small { color: #9fb5ac; font-size: 10px; }
.support-message p { margin: 6px 0 0; color: #e2ebe6; white-space: pre-wrap; overflow-wrap: anywhere; }
.support-message.is-user { margin-left: auto; background: #174d48; }
.support-message.is-admin { margin-right: auto; background: #70462d; }
.support-follow-up { border-top: 1px solid rgba(226, 186, 100, .15); padding: 12px; display: grid; gap: 7px; }
.support-follow-up textarea { min-height: 90px; resize: vertical; }
.support-closed-copy,
.support-empty,
.support-error { color: #aebfb7; text-align: center; padding: 16px; }

.admin-dashboard-dropdown {
  position: absolute;
  z-index: 145;
  top: 54px;
  left: 48px;
  width: min(270px, calc(100vw - 40px));
  padding: 8px;
  border: 1px solid rgba(226, 184, 99, .42);
  border-radius: 16px;
  display: grid;
  gap: 5px;
  background: rgba(4, 30, 29, .98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .48);
}
.admin-dashboard-dropdown[hidden] { display: none; }
.admin-dashboard-dropdown button {
  position: relative;
  min-height: 46px;
  border: 0;
  border-radius: 11px;
  padding: 8px 12px;
  background: transparent;
  color: #f3e5bf;
  text-align: left;
  font-weight: 850;
  cursor: pointer;
}
.admin-dashboard-dropdown button:hover,
.admin-dashboard-dropdown button:focus-visible { background: rgba(209, 139, 57, .18); }
.admin-dashboard-dropdown button > b { position: static; float: right; border: 0; }
.admin-dashboard-return { display: flex; justify-content: center; padding: 8px 0 max(10px, env(safe-area-inset-bottom)); }
.admin-dashboard-return button {
  min-height: 44px;
  border: 1px solid rgba(226, 184, 99, .36);
  border-radius: 12px;
  padding: 10px 16px;
  background: rgba(8, 43, 40, .9);
  color: #f4e5bf;
  font-weight: 900;
}
.admin-support-threads { display: grid; gap: 10px; }
.admin-support-thread { border: 1px solid rgba(226, 186, 100, .18); border-radius: 14px; padding: 13px; background: rgba(3, 27, 26, .55); }
.admin-support-thread.is-unread { border-color: #e6a34e; }
.admin-support-thread > header { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.admin-support-thread > header strong,
.admin-support-thread > header small { display: block; }
.admin-support-thread > header strong { color: #f8e8bd; }
.admin-support-thread > header small { margin-top: 3px; color: #9fb5ac; }
.admin-support-thread .support-conversation { padding: 12px 0; }
.admin-support-actions { display: grid; grid-template-columns: 1fr auto; gap: 7px; margin-top: 8px; }
.admin-support-actions label,
.admin-support-actions textarea { grid-column: 1 / -1; }
.admin-support-actions label { color: #d7c69f; font-size: 12px; font-weight: 900; }
.admin-support-actions textarea { min-height: 90px; resize: vertical; }
.admin-support-actions button { border: 0; border-radius: 9px; padding: 8px 10px; background: #1d5650; color: #f4e8cb; font-weight: 850; }

@media (max-width: 680px) {
  .support-shell { grid-template-columns: 1fr; }
  .admin-dashboard-dropdown { left: 4px; }
}
@media (max-width: 420px) {
  .support-content { padding-inline: 9px; }
  .support-new,
  .support-history { padding: 13px; }
  .support-thread > summary { align-items: start; }
  .support-message { max-width: 94%; }
}
