/* Wint Support Center Pro */

.wsc-page {
  max-width: 1600px;
  margin: 0 auto 72px;
  padding: 0 34px 40px;
}

.wsc-page * {
  box-sizing: border-box;
}

.wsc-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin: 12px 0 22px;
}

.wsc-eyebrow {
  color: #9a9d99;
  font-size: 12px;
  letter-spacing: .12em;
  font-weight: 950;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.wsc-title {
  color: #102f4e;
  font-size: clamp(32px, 2.4vw, 46px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -.045em;
  margin: 0;
}

.wsc-subtitle {
  color: #858b91;
  font-size: 15px;
  line-height: 1.45;
  max-width: 920px;
  margin-top: 9px;
}

.wsc-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.wsc-btn {
  min-height: 42px;
  border: 1px solid #ebe5de;
  background: #ffffff;
  color: #102f4e;
  border-radius: 11px;
  padding: 10px 15px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wsc-btn:hover {
  background: #f8fcfe;
}

.wsc-btn.primary {
  background: #29b6f6;
  border-color: #29b6f6;
  color: #fff;
}

.wsc-btn[disabled],
.wsc-btn.disabled {
  opacity: .45;
  cursor: not-allowed;
}

.wsc-status-note {
  margin: 0 0 18px;
  background: #fff;
  border: 1px solid #ebe5de;
  border-left: 5px solid #29b6f6;
  border-radius: 14px;
  padding: 15px 18px;
  color: #26384a;
  box-shadow: 0 14px 36px rgba(18, 50, 79, .05);
}

.wsc-status-note strong {
  color: #102f4e;
}

.wsc-error {
  margin-bottom: 18px;
  background: #ffe4ec;
  border: 1px solid #ffc7d5;
  border-left: 5px solid #dc3b62;
  color: #991b1b;
  border-radius: 14px;
  padding: 15px 18px;
  font-weight: 750;
}

.wsc-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.wsc-metric {
  background: #fff;
  border: 1px solid #ebe5de;
  border-radius: 15px;
  padding: 16px;
  box-shadow: 0 14px 34px rgba(18, 50, 79, .045);
}

.wsc-metric-label {
  color: #8f928f;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 5px;
}

.wsc-metric-value {
  color: #102f4e;
  font-size: 28px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.04em;
}

.wsc-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(560px, 1.35fr);
  gap: 18px;
  align-items: start;
}

.wsc-panel {
  background: #fff;
  border: 1px solid #ebe5de;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(18, 50, 79, .06);
  overflow: hidden;
  min-width: 0;
}

.wsc-panel-head {
  padding: 18px 20px;
  border-bottom: 1px solid #ebe5de;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.wsc-panel-title {
  color: #102f4e;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.wsc-panel-caption {
  color: #858b91;
  font-size: 13px;
  margin-top: 4px;
}

.wsc-search-row {
  padding: 14px 16px;
  border-bottom: 1px solid #ebe5de;
  background: #fbfaf8;
  display: grid;
  gap: 10px;
}

.wsc-search {
  width: 100%;
  border: 1px solid #ebe5de;
  background: #fff;
  border-radius: 11px;
  min-height: 42px;
  padding: 10px 13px;
  font-size: 14px;
  color: #26384a;
  outline: none;
}

.wsc-search:focus {
  border-color: #29b6f6;
  box-shadow: 0 0 0 3px rgba(41, 182, 246, .14);
}

.wsc-tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.wsc-tab {
  border: 1px solid #ebe5de;
  background: #fff;
  color: #102f4e;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.wsc-tab.active {
  background: #102f4e;
  border-color: #102f4e;
  color: #fff;
}

.wsc-case-list {
  max-height: calc(100vh - 345px);
  overflow-y: auto;
}

.wsc-case {
  display: block;
  padding: 16px 18px;
  border-bottom: 1px solid #ebe5de;
  text-decoration: none;
  color: inherit;
}

.wsc-case:hover {
  background: #f8fcfe;
}

.wsc-case.active {
  background: #eef9ff;
  box-shadow: inset 5px 0 0 #29b6f6;
}

.wsc-case-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.wsc-case-title {
  color: #102f4e;
  font-weight: 950;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.wsc-case-meta {
  color: #7c8792;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
  margin-top: 4px;
}

.wsc-case-preview {
  color: #46586b;
  font-size: 13px;
  line-height: 1.42;
  margin-top: 8px;
}

.wsc-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.wsc-pill.at-wint {
  background: #dff6ff;
  color: #087db8;
}

.wsc-pill.needs-reply {
  background: #fff4cf;
  color: #8a6200;
}

.wsc-pill.closed {
  background: #defbea;
  color: #10844d;
}

.wsc-pill.neutral {
  background: #eef2f6;
  color: #516173;
}

.wsc-pill.unread {
  background: #ffe4ec;
  color: #dc3b62;
}

.wsc-detail-empty {
  min-height: 560px;
  display: grid;
  place-items: center;
  padding: 40px;
  color: #858b91;
  text-align: center;
}

.wsc-detail-empty strong {
  display: block;
  color: #102f4e;
  font-size: 20px;
  margin-bottom: 6px;
}

.wsc-thread {
  padding: 18px;
  max-height: calc(100vh - 300px);
  overflow-y: auto;
}

.wsc-issue-summary {
  border: 1px solid #ebe5de;
  border-radius: 15px;
  padding: 16px;
  margin-bottom: 16px;
  background: #fbfaf8;
}

.wsc-issue-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.wsc-field-label {
  color: #8f928f;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.wsc-field-value {
  color: #26384a;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.wsc-message {
  border: 1px solid #ebe5de;
  border-radius: 15px;
  padding: 15px;
  margin-bottom: 12px;
  background: #fff;
}

.wsc-message.from-wint {
  background: #f8fcfe;
  border-color: #d9f3ff;
}

.wsc-message.from-you {
  background: #fff;
}

.wsc-message-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.wsc-author {
  color: #102f4e;
  font-size: 14px;
  font-weight: 950;
}

.wsc-created {
  color: #858b91;
  font-size: 12px;
  font-weight: 750;
  text-align: right;
}

.wsc-message-body {
  color: #26384a;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.wsc-attachments {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.wsc-attachment {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ebe5de;
  background: #fff;
  color: #102f4e;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 850;
}

.wsc-composer-disabled {
  margin: 18px;
  border: 1px solid #ebe5de;
  border-left: 5px solid #29b6f6;
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  color: #26384a;
  line-height: 1.45;
}

.wsc-composer-disabled strong {
  color: #102f4e;
}

.wsc-empty-list {
  padding: 36px 18px;
  text-align: center;
  color: #858b91;
}

@media (max-width: 1300px) {
  .wsc-layout {
    grid-template-columns: 1fr;
  }

  .wsc-case-list,
  .wsc-thread {
    max-height: none;
  }
}

@media (max-width: 900px) {
  .wsc-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .wsc-header {
    display: block;
  }

  .wsc-actions {
    justify-content: flex-start;
    margin-top: 16px;
  }

  .wsc-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wsc-issue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .wsc-page {
    padding-left: 12px;
    padding-right: 12px;
  }

  .wsc-metrics,
  .wsc-issue-grid {
    grid-template-columns: 1fr;
  }

  .wsc-case-top,
  .wsc-message-head {
    display: grid;
  }

  .wsc-created {
    text-align: left;
  }
}
