.contact-body {
  background: #eef4f7;
  color: #12243d;
}

.contact-content-shell {
  align-items: stretch;
}

.contact-page {
  display: grid;
  gap: 18px;
  padding-bottom: 36px;
}

.contact-hero {
  display: grid;
  align-items: center;
  min-height: 44px;
  padding: 8px 0 2px;
}

.contact-hero-copy {
  display: grid;
  justify-items: start;
  gap: 12px;
  text-align: left;
}

.contact-hero h1,
.contact-section-head h2,
.contact-modal-card h2 {
  margin: 0;
  font-family: var(--font-heading);
  letter-spacing: 0;
  color: #102137;
}

.contact-hero h1 {
  font-size: 34px;
  line-height: 1.12;
  text-align: left;
}

.contact-hero p,
.contact-section-head p {
  max-width: 620px;
  margin: 0;
  color: #4b6178;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 750;
}

.contact-support,
.contact-links-section {
  display: grid;
  gap: 14px;
  scroll-margin-top: calc(var(--topbar-dynamic-height) + 24px);
}

.contact-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.contact-section-head h2 {
  font-size: 22px;
  line-height: 1.12;
}

.contact-modal-card h2 {
  font-size: 24px;
  line-height: 1.12;
}

.contact-support-status,
.contact-copy-status,
.contact-modal-status,
.contact-selected-ticket {
  color: #456071;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.contact-support-status.is-error,
.contact-copy-status.is-error,
.contact-modal-status.is-error {
  color: #b42318;
}

.contact-support-auth,
.contact-support-shell,
.contact-link-grid {
  border: 1px solid #bfd1da;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(49, 80, 102, 0.1);
}

.contact-support-auth {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
}

.contact-support-auth[hidden],
.contact-support-shell[hidden],
.contact-file-preview[hidden],
.contact-copy-status[hidden],
.contact-modal[hidden] {
  display: none !important;
}

.contact-support-auth div {
  display: grid;
  gap: 4px;
}

.contact-support-auth strong {
  color: #102137;
  font-size: 16px;
}

.contact-support-auth span {
  color: #52677b;
  font-size: 14px;
  font-weight: 760;
}

.contact-support-shell {
  display: grid;
  grid-template-columns: minmax(270px, 0.92fr) minmax(250px, 0.78fr) minmax(420px, 1.45fr);
  gap: 0;
  overflow: hidden;
}

.contact-support-compose,
.contact-ticket-list-panel,
.contact-chat-panel {
  min-width: 0;
  padding: 18px;
}

.contact-ticket-list-panel,
.contact-chat-panel {
  border-left: 1px solid #d7e2e7;
}

.contact-ticket-list-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.contact-support-compose,
.contact-reply-form {
  display: grid;
  gap: 12px;
}

.contact-support-compose {
  align-content: start;
}

.contact-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  margin-bottom: 12px;
}

.contact-panel-title {
  color: #102137;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 950;
  line-height: 1.2;
}

.contact-field {
  display: grid;
  gap: 6px;
}

.contact-field span {
  color: #425b72;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
}

.contact-field input,
.contact-field textarea,
.contact-reply-form textarea,
.contact-modal-card textarea {
  width: 100%;
  border: 1px solid #c8d7df;
  border-radius: 8px;
  background: #f8fbfc;
  color: #12243d;
  font: inherit;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.45;
  outline: none;
}

.contact-field input {
  min-height: 42px;
  padding: 10px 12px;
}

.contact-field textarea,
.contact-reply-form textarea,
.contact-modal-card textarea {
  min-height: 100px;
  padding: 12px;
  resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus,
.contact-reply-form textarea:focus,
.contact-modal-card textarea:focus {
  border-color: #148f82;
  box-shadow: 0 0 0 3px rgba(20, 143, 130, 0.14);
}

.contact-file-note,
.contact-file-preview {
  color: #5d7080;
  font-size: 12px;
  font-weight: 780;
  line-height: 1.45;
}

.contact-form-actions {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  justify-content: start;
  gap: 10px;
  align-items: center;
}

.contact-fee-note {
  min-width: 0;
  color: #435b72;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.3;
}

.contact-file-preview {
  display: grid;
  gap: 7px;
}

.contact-file-preview-title {
  color: #435b72;
  font-size: 12px;
  font-weight: 950;
}

.contact-file-preview-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: min(100%, 420px);
  border: 1px solid #d3e0e7;
  border-radius: 8px;
  padding: 8px 10px;
  background: #f8fbfc;
}

.contact-file-preview-name {
  min-width: 0;
  color: #3d5368;
  overflow-wrap: anywhere;
}

.contact-file-remove {
  width: 28px;
  height: 28px;
  border: 1px solid #d2dfe6;
  border-radius: 8px;
  background: #ffffff;
  color: #b42318;
  font: inherit;
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
}

.contact-file-picker {
  position: relative;
  display: inline-flex;
  min-height: 42px;
  min-width: 132px;
  align-items: center;
  justify-content: center;
  border: 1px solid #c3d2da;
  border-radius: 8px;
  background: #ffffff;
  color: #14263d;
  font: inherit;
  font-size: 14px;
  font-weight: 920;
  line-height: 1;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}

.contact-file-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-file-picker:hover,
.contact-file-picker:focus-within {
  transform: translateY(-1px);
  border-color: #90a9b6;
  box-shadow: 0 10px 18px rgba(49, 80, 102, 0.1);
}

.contact-btn,
.contact-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c3d2da;
  border-radius: 8px;
  background: #ffffff;
  color: #14263d;
  font: inherit;
  font-size: 14px;
  font-weight: 920;
  line-height: 1;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}

.contact-btn {
  min-height: 42px;
  padding: 0 16px;
  justify-self: start;
}

.contact-btn-primary {
  border-color: #0c7b71;
  background: #0f9f86;
  color: #ffffff;
  box-shadow: 0 12px 22px rgba(15, 159, 134, 0.2);
}

.contact-btn:hover,
.contact-icon-btn:hover {
  transform: translateY(-1px);
  border-color: #90a9b6;
  box-shadow: 0 10px 18px rgba(49, 80, 102, 0.1);
}

.contact-btn:disabled,
.contact-icon-btn:disabled {
  cursor: default;
  opacity: 0.62;
  transform: none;
  box-shadow: none;
}

.contact-icon-btn {
  width: 38px;
  height: 38px;
  padding: 0;
}

.contact-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-ticket-list {
  display: grid;
  align-content: start;
  gap: 8px;
  grid-auto-rows: max-content;
  max-height: 520px;
  overflow: auto;
  padding-right: 2px;
}

.contact-ticket-card {
  display: grid;
  gap: 7px;
  width: 100%;
  min-height: 84px;
  padding: 12px;
  border: 1px solid #d5e1e7;
  border-radius: 8px;
  background: #f9fbfc;
  color: #14263d;
  text-align: left;
  cursor: pointer;
}

.contact-ticket-card.is-active {
  border-color: #0f9f86;
  background: #eefaf6;
}

.contact-ticket-title-row,
.contact-message-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.contact-ticket-title {
  min-width: 0;
  color: #102137;
  font-size: 14px;
  font-weight: 940;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.contact-pill {
  flex: 0 0 auto;
  min-width: 54px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #dff4ef;
  color: #0c6f66;
  font-size: 11px;
  font-weight: 950;
  text-align: center;
}

.contact-pill.is-closed {
  background: #eef1f3;
  color: #5b6b77;
}

.contact-ticket-date {
  color: #667786;
  font-size: 12px;
  font-weight: 780;
}

.contact-chat-panel {
  display: grid;
  grid-template-rows: auto minmax(320px, 1fr) auto;
  gap: 0;
}

.contact-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 320px;
  max-height: 560px;
  overflow: auto;
  border: 1px solid #d9e5eb;
  border-radius: 8px;
  background: #f8fbfc;
  padding: 12px;
}

@media (min-width: 761px) {
  .contact-support-shell {
    height: clamp(520px, calc(100vh - var(--topbar-dynamic-height, 78px) - 172px), 620px);
    min-height: 0;
  }

  .contact-support-compose,
  .contact-ticket-list-panel,
  .contact-chat-panel {
    min-height: 0;
    overflow: hidden;
  }

  .contact-support-compose {
    overflow: auto;
  }

  .contact-ticket-list {
    min-height: 0;
    max-height: none;
    overflow: auto;
  }

  .contact-chat-panel {
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .contact-chat {
    min-height: 0;
    max-height: none;
  }
}

.contact-empty-state {
  display: grid;
  place-items: center;
  min-height: 150px;
  border: 1px dashed #c5d4dc;
  border-radius: 8px;
  color: #607383;
  font-size: 14px;
  font-weight: 850;
  text-align: center;
}

.contact-message {
  position: relative;
  align-self: flex-start;
  max-width: min(520px, 86%);
  padding: 12px;
  border: 1px solid #d4e1e7;
  border-radius: 8px;
  background: #ffffff;
  color: #182b42;
}

.contact-message.is-user {
  align-self: flex-end;
  border-color: #0f9f86;
  background: #0f9f86;
  color: #ffffff;
  padding-right: 84px;
}

.contact-message-meta {
  color: inherit;
  opacity: 0.76;
  font-size: 11px;
  font-weight: 880;
}

.contact-message-body {
  margin-top: 7px;
  white-space: pre-line;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.45;
}

.contact-message-actions {
  display: flex;
  gap: 8px;
  position: absolute;
  top: 10px;
  right: 10px;
}

.contact-message.is-user .contact-icon-btn {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.contact-attachments {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.contact-attachment {
  display: grid;
  gap: 6px;
  color: inherit;
}

.contact-attachment a {
  color: inherit;
  font-size: 13px;
  font-weight: 920;
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.contact-attachment img,
.contact-attachment video {
  display: block;
  width: min(100%, 260px);
  max-width: 260px;
  max-height: 220px;
  height: auto;
  border: 1px solid rgba(16, 33, 55, 0.18);
  border-radius: 8px;
  object-fit: contain;
  background: #ffffff;
}

.contact-attachment-warning {
  font-size: 12px;
  font-weight: 850;
}

.contact-reply-form {
  border-top: 1px solid #d7e2e7;
  padding-top: 14px;
}

.contact-reply-form textarea {
  min-height: 86px;
}

.contact-reply-tools {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  gap: 10px;
  align-items: center;
}

.contact-file-picker-compact {
  min-height: 40px;
}

.contact-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
}

.contact-link-card {
  display: grid;
  gap: 9px;
  min-height: 150px;
  padding: 20px;
  border: 0;
  border-right: 1px solid #d7e2e7;
  background: #ffffff;
  color: #14263d;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.contact-link-card:last-child {
  border-right: 0;
}

.contact-link-card:hover {
  background: #f7fbfc;
}

.contact-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #e4f4f0;
  color: #0c6f66;
  font-size: 18px;
  font-weight: 950;
}


.contact-link-card.is-youtube .contact-link-icon,
.contact-link-card.is-roblox .contact-link-icon {
  background: transparent;
  color: inherit;
}

.contact-link-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-link-card span:not(.contact-link-icon) {
  color: #52677b;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
}

.contact-link-card strong {
  color: #102137;
  font-size: 16px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.contact-link-card.is-mail strong {
  color: #0c6f66;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 33, 55, 0.46);
}

.contact-modal-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: min(520px, 100%);
  padding: 20px;
  border: 1px solid #bfd1da;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 26px 54px rgba(16, 33, 55, 0.22);
}

.contact-modal-card p {
  margin: 0;
  color: #52677b;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.5;
}

.contact-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.contact-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 1120px) {
  .contact-support-shell {
    grid-template-columns: minmax(260px, 0.9fr) minmax(360px, 1.1fr);
  }

  .contact-chat-panel {
    grid-column: 1 / -1;
    border-top: 1px solid #d7e2e7;
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .contact-page {
    gap: 14px;
  }

  .contact-hero,
  .contact-section-head,
  .contact-support-auth,
  .contact-support-shell,
  .contact-link-grid,
  .contact-reply-tools {
    grid-template-columns: 1fr;
  }

  .contact-hero {
    min-height: auto;
    padding: 4px 0 0;
  }

  .contact-hero h1 {
    font-size: 28px;
  }

  .contact-section-head h2 {
    font-size: 20px;
  }

  .contact-section-head,
  .contact-support-auth {
    align-items: start;
    flex-direction: column;
  }

  .contact-support-shell {
    display: grid;
  }

  .contact-ticket-list-panel,
  .contact-chat-panel {
    border-top: 1px solid #d7e2e7;
    border-left: 0;
  }

  .contact-ticket-list,
  .contact-chat {
    max-height: none;
  }

  .contact-link-card {
    min-height: 126px;
    border-right: 0;
    border-bottom: 1px solid #d7e2e7;
  }

  .contact-link-card:last-child {
    border-bottom: 0;
  }

  .contact-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .contact-form-actions,
  .contact-reply-tools {
    grid-template-columns: 1fr 1fr;
  }

  .contact-fee-note {
    grid-column: 1 / -1;
  }

  .contact-form-actions .contact-btn,
  .contact-file-picker,
  .contact-reply-tools .contact-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-btn,
  .contact-icon-btn,
  .contact-file-picker {
    transition: none;
  }
}


