.sks-card,
.sks-alert {
  box-sizing: border-box;
  color: #18202b;
  font-family: inherit;
}

.sks-card {
  width: 100%;
  margin: 0 0 28px;
  padding: clamp(22px, 4vw, 38px);
  background: #fff;
  border: 1px solid #e5e9ef;
  border-radius: 16px;
  box-shadow: 0 10px 34px rgba(15, 23, 42, .06);
}

.sks-card__header,
.sks-ticket-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.sks-card h2,
.sks-ticket-heading h2 {
  margin: 3px 0 0;
  color: #101827;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
}

.sks-eyebrow {
  display: block;
  color: #637083;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sks-account-context {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 10px;
}

.sks-account-context > div {
  min-width: 0;
  padding: 15px;
  background: #f6f8fb;
  border: 1px solid #e8ecf2;
  border-radius: 10px;
}

.sks-account-context span,
.sks-account-context strong {
  display: block;
}

.sks-account-context span {
  margin-bottom: 4px;
  color: #6b7280;
  font-size: 12px;
}

.sks-account-context strong {
  overflow: hidden;
  color: #1f2937;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sks-context-note {
  margin: 8px 0 24px;
  color: #697586;
  font-size: 13px;
}

.sks-form {
  display: grid;
  gap: 19px;
}

.sks-form label > span {
  display: block;
  margin-bottom: 7px;
  color: #273244;
  font-size: 14px;
  font-weight: 700;
}

.sks-form input[type="text"],
.sks-form textarea,
.sks-form input[type="file"] {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  color: #172033;
  background: #fff;
  border: 1px solid #cfd6e1;
  border-radius: 9px;
  box-shadow: none;
}

.sks-form input[type="text"],
.sks-form textarea {
  padding: 12px 14px;
  font: inherit;
}

.sks-form input:focus,
.sks-form textarea:focus {
  outline: 3px solid rgba(37, 99, 235, .15);
  border-color: #2563eb;
}

.sks-form textarea {
  min-height: 140px;
  resize: vertical;
}

.sks-file input {
  padding: 9px;
}

.sks-file small {
  display: block;
  margin-top: 6px;
  color: #738094;
}

.sks-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 46px;
  padding: 11px 20px;
  color: #fff !important;
  font: inherit;
  font-weight: 750;
  text-decoration: none !important;
  background: #1d4ed8;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}

.sks-button:hover {
  color: #fff;
  background: #173fab;
  transform: translateY(-1px);
}

.sks-alert {
  width: 100%;
  margin: 0 0 20px;
  padding: 14px 16px;
  color: #344054;
  background: #f8fafc;
  border: 1px solid #dbe2ea;
  border-radius: 9px;
}

.sks-alert--success { color: #17603a; background: #effbf4; border-color: #bce7cb; }
.sks-alert--warning { color: #7a4b09; background: #fff8e8; border-color: #f0d79c; }
.sks-alert--error { color: #8a1c1c; background: #fff2f2; border-color: #efc1c1; }

.sks-table-wrap { overflow-x: auto; }
.sks-table { width: 100%; border-collapse: collapse; }
.sks-table th,
.sks-table td { padding: 15px 12px; text-align: left; border-bottom: 1px solid #e8ecf1; }
.sks-table th { color: #667085; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.sks-table td { color: #384355; font-size: 14px; }
.sks-table a { color: #1d4ed8; text-decoration: none; }

.sks-status {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  color: #344054;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  background: #eef2f6;
  border-radius: 999px;
}

.sks-status--open { color: #175cd3; background: #eff8ff; }
.sks-status--answered { color: #067647; background: #ecfdf3; }
.sks-status--waiting_user { color: #93370d; background: #fffaeb; }
.sks-status--closed { color: #475467; background: #f2f4f7; }
.sks-meta { color: #7a8699; font-size: 13px; }
.sks-back { display: inline-block; margin: 0 0 16px; color: #44536a; text-decoration: none; }

.sks-thread {
  display: grid;
  gap: 18px;
  margin: 10px 0 30px;
  padding: 26px 0;
  border-top: 1px solid #e7ebf0;
  border-bottom: 1px solid #e7ebf0;
}

.sks-message {
  width: min(88%, 760px);
  padding: 17px 19px;
  background: #f5f7fa;
  border: 1px solid #e4e9f0;
  border-radius: 4px 13px 13px 13px;
}

.sks-message--admin {
  margin-left: auto;
  background: #eef5ff;
  border-color: #d4e3fb;
  border-radius: 13px 4px 13px 13px;
}

.sks-message__meta { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 9px; color: #596579; font-size: 12px; }
.sks-message__body > :first-child { margin-top: 0; }
.sks-message__body > :last-child { margin-bottom: 0; }
.sks-message__body a { color: #1d4ed8; font-weight: 650; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; overflow-wrap: anywhere; }
.sks-message__body a:hover { color: #173fab; text-decoration-thickness: 2px; }
.sks-message__body ol,
.sks-message__body ul { margin: 10px 0; padding-left: 24px; }
.sks-message__body li { margin-bottom: 6px; }
.sks-message__body blockquote { margin: 12px 0; padding: 2px 0 2px 13px; color: #4b5563; border-left: 3px solid #9fb9d6; }
.sks-message__body code { padding: 2px 5px; background: rgba(255,255,255,.75); border-radius: 4px; }
.sks-message__body h3,
.sks-message__body h4,
.sks-message__body h5,
.sks-message__body h6 { margin: 16px 0 8px; line-height: 1.3; }
.sks-attachment-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.sks-attachment { display: inline-block; margin-top: 13px; padding: 7px 10px; color: #1d4ed8; text-decoration: none; background: rgba(255,255,255,.7); border: 1px solid #dce4ef; border-radius: 7px; }
.sks-attachment-actions .sks-attachment { margin-top: 0; }
.sks-reply-form h3 { margin: 0; }
.sks-empty { padding: 28px; color: #697586; text-align: center; background: #f8fafc; border: 1px dashed #d9e0e8; border-radius: 10px; }

@media (max-width: 900px) {
  .sks-account-context { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .sks-card { padding: 20px 16px; border-radius: 12px; }
  .sks-account-context { grid-template-columns: 1fr; }
  .sks-ticket-heading { align-items: flex-start; flex-direction: column; }
  .sks-message { width: 100%; box-sizing: border-box; }
  .sks-button { width: 100%; }
  .sks-table th:nth-child(4), .sks-table td:nth-child(4) { display: none; }
}
