.sw {
  --sw-blue: #3268e9;
  --sw-ink: #1d2c49;
  --sw-muted: #768399;
  --sw-border: #e7ebf2;
  --sw-bg: #f6f8fc;
  color: var(--sw-ink);
  font:
    14px/1.65 Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
  max-width: 1560px;
  margin: auto;
  min-width: 0;
  padding-bottom: 32px;
}
.sw * {
  box-sizing: border-box;
}
.sw button,
.sw input,
.sw select,
.sw textarea {
  font: inherit;
}
.sw h1,
.sw h2,
.sw h3,
.sw p {
  margin: 0;
}
.sw a {
  color: var(--sw-blue);
  text-decoration: none;
}
.sw button,
.sw a,
.sw input,
.sw select,
.sw textarea {
  outline-offset: 4px;
}
.sw :focus-visible {
  outline: 3px solid #a6c1ff;
}
.sw button {
  cursor: pointer;
}
.sw button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.sw-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 4px 0 26px;
}
.sw-eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--sw-muted);
  margin-bottom: 5px;
}
.sw h1 {
  font-size: 27px;
  letter-spacing: -0.8px;
  font-weight: 650;
  line-height: 1.35;
}
.sw-header p {
  color: var(--sw-muted);
  margin-top: 8px;
}
.sw-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.sw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid #dce3ed;
  border-radius: 9px;
  background: #fff;
  color: var(--sw-ink);
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.sw-btn:hover {
  background: #f5f8ff;
  border-color: #b7c9f4;
}
.sw-btn.primary {
  background: var(--sw-blue);
  border-color: var(--sw-blue);
  color: #fff;
  box-shadow: 0 3px 8px #3268e91a;
}
.sw-btn.primary:hover {
  background: #2457cf;
}
.sw-btn.text {
  border-color: transparent;
  background: transparent;
  color: var(--sw-muted);
  padding: 6px 8px;
}
.sw-btn.danger {
  color: #b74646;
}
.sw svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sw-panel {
  background: #fff;
  border: 1px solid var(--sw-border);
  border-radius: 14px;
  min-width: 0;
  overflow: hidden;
}
.sw-panel-pad {
  padding: 24px;
}
.sw-tabs {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 0 24px;
  border-bottom: 1px solid var(--sw-border);
}
.sw-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  min-height: 58px;
  color: var(--sw-muted);
  padding: 0 2px;
}
.sw-tab[aria-pressed="true"] {
  color: var(--sw-blue);
  border-bottom-color: var(--sw-blue);
  font-weight: 600;
}
.sw-count {
  font-size: 11px;
  padding: 0 6px;
  border-radius: 5px;
  background: #f0f3f8;
  font-variant-numeric: tabular-nums;
}
.sw-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding: 20px 24px;
}
.sw-filter-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.sw-list-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--sw-border);
  background: #fafbfd;
}
.sw-list-toolbar label {
  font-size: 13px;
  font-weight: 600;
}
.sw .sw-list-toolbar select {
  width: 210px;
  flex: 0 1 210px;
  min-width: 190px;
}
.sw .sw-filters > select {
  width: auto;
  flex: 0 1 150px;
  min-width: 128px;
  max-width: 210px;
}
.sw .sw-compose-top > select,
.sw .sw-compose-actions select {
  width: auto;
  min-width: 150px;
  max-width: 100%;
  flex: 0 1 auto;
}
.sw .sw-queue-filters .sw-filters > select {
  width: 100%;
  flex-basis: 100%;
  max-width: none;
}
.sw-search {
  position: relative;
  flex: 1;
  min-width: 190px;
  max-width: 340px;
}
.sw .sw-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #97a2b5;
  pointer-events: none;
}
.sw input,
.sw select,
.sw textarea {
  border: 1px solid #e0e6ef;
  border-radius: 8px;
  background: #fff;
  color: var(--sw-ink);
  padding: 9px 11px;
  min-height: 40px;
  max-width: 100%;
}
.sw .sw-search input {
  width: 100%;
  padding-left: 39px;
  margin: 0;
}
.sw input::placeholder,
.sw textarea::placeholder {
  color: #9aa5b6;
}
.sw textarea {
  width: 100%;
  resize: vertical;
  line-height: 1.7;
}
.sw input[type="checkbox"] {
  min-height: auto;
  accent-color: var(--sw-blue);
  width: 15px;
  height: 15px;
  padding: 0;
}
.sw .sw-checkbox input {
  margin: 0;
}
.sw-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--sw-muted);
}
.sw-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.sw-table th {
  font-size: 12px;
  font-weight: 500;
  color: var(--sw-muted);
  background: #fafbfd;
  padding: 12px 20px;
  border-top: 1px solid var(--sw-border);
  border-bottom: 1px solid var(--sw-border);
}
.sw-table td {
  padding: 18px 20px;
  border-bottom: 1px solid #eef1f6;
  vertical-align: middle;
}
.sw-table tr:last-child td {
  border-bottom: 0;
}
.sw-table tbody tr:hover {
  background: #fbfcff;
}
.sw-title-link {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  color: var(--sw-ink) !important;
  line-height: 1.5;
}
.sw-summary {
  color: var(--sw-muted);
  font-size: 12px;
  margin-top: 5px;
  max-width: 460px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sw-id {
  font-family: ui-monospace, SFMono-Regular, monospace;
  color: #909bad;
  font-size: 11px;
}
.sw-dot {
  width: 6px;
  height: 6px;
  border-radius: 100%;
  background: var(--sw-blue);
  display: inline-block;
  flex-shrink: 0;
}
.sw-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  background: #f0f3f8;
  color: #66758b;
  padding: 3px 9px;
  font-size: 12px;
  white-space: nowrap;
}
.sw-status.in_progress,
.sw-status.resolution_proposed {
  background: #edf3ff;
  color: #3b65b3;
}
.sw-status.waiting_customer {
  background: #fff5e5;
  color: #a36c20;
}
.sw-status.closed {
  background: #f0f2f5;
  color: #929aa7;
}
.sw-status.new {
  background: #f1f1fc;
  color: #7276a2;
}
.sw-status.urgent {
  color: #b95252;
  background: #fff1f1;
}
.sw-sub {
  color: var(--sw-muted);
  font-size: 12px;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.sw-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid var(--sw-border);
  gap: 12px;
}
.sw-empty {
  text-align: center;
  padding: 70px 24px;
  color: var(--sw-muted);
}
.sw-empty svg {
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  color: #9bb2dc;
}
.sw-empty h3 {
  color: var(--sw-ink);
  font-size: 17px;
  margin-bottom: 7px;
}
.sw-empty .sw-btn {
  margin-top: 18px;
}
.sw-loading {
  padding: 60px;
  text-align: center;
  color: var(--sw-muted);
}
.sw-spin {
  display: inline-block;
  width: 17px;
  height: 17px;
  border: 2px solid #dce6ff;
  border-top-color: var(--sw-blue);
  border-radius: 50%;
  animation: sw-spin 1s linear infinite;
  margin-right: 9px;
  vertical-align: middle;
}
@keyframes sw-spin {
  to {
    transform: rotate(360deg);
  }
}
.sw-new-grid {
  display: grid;
  grid-template-columns: minmax(0, 780px) minmax(230px, 290px);
  gap: 24px;
  align-items: start;
  justify-content: center;
}
.sw-form-section + .sw-form-section {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--sw-border);
}
.sw-form-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 18px !important;
}
.sw-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
  min-width: 0;
}
.sw-field label {
  font-weight: 500;
  font-size: 13px;
}
.sw-field label small {
  font-weight: 400;
  color: var(--sw-muted);
  margin-left: 6px;
}
.sw-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.sw-help h3 {
  font-size: 14px;
  margin: 2px 0 12px;
}
.sw-help p,
.sw-help li {
  color: var(--sw-muted);
  font-size: 13px;
}
.sw-help ul {
  padding-left: 19px;
  margin: 10px 0;
}
.sw-help a {
  display: block;
  margin: 12px 0;
}
.sw-help .sw-divider {
  height: 1px;
  background: var(--sw-border);
  margin: 22px 0;
}
.sw-note {
  background: #f5f8fe;
  border: 1px solid #e5edfc;
  color: #627594;
  padding: 12px 15px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.7;
}
.sw-note.warning {
  background: #fff8eb;
  color: #977332;
  border-color: #f4e8cc;
}
.sw-note.error {
  background: #fff3f3;
  color: #b54949;
  border-color: #f4d9d9;
}
.sw-note:empty {
  display: none;
}
.sw [hidden] {
  display: none !important;
}
.sw [aria-busy="true"] {
  cursor: progress;
}
.sw-queue-filters {
  margin-top: 12px;
  font-size: 12px;
}
.sw-queue-filters summary {
  cursor: pointer;
  color: var(--sw-muted);
}
.sw-queue-filters .sw-filters {
  padding: 12px 0 0;
  gap: 8px;
}
.sw-queue-filters .sw-filters > select,
.sw-queue-filters .sw-search,
.sw-queue-filters .sw-filters > details {
  width: 100%;
  min-width: 0;
  max-width: none;
}
.sw-queue-filters input[type="checkbox"] {
  width: 15px;
}
.sw-events p {
  margin: 5px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.sw-metric-details {
  margin-bottom: 18px;
  color: var(--sw-muted);
  font-size: 12px;
}
.sw-metric-details summary {
  cursor: pointer;
}
.sw-metric-details .sw-actions {
  margin-top: 10px;
}
.sw-feedback {
  margin: 12px 0;
}
.sw-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--sw-border);
}
.sw-upload {
  border: 1px dashed #d8e0ec;
  border-radius: 9px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--sw-muted);
  font-size: 12px;
  background: #fcfdff;
}
.sw-upload.dragover {
  border-color: var(--sw-blue);
  background: #f0f5ff;
}
.sw-upload input[type="file"] {
  display: none;
}
.sw-file-list {
  display: grid;
  gap: 8px;
  margin: 10px 0;
}
.sw-file {
  border: 1px solid var(--sw-border);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.sw-file-main {
  flex: 1;
  min-width: 0;
}
.sw-file-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.sw-file progress {
  height: 4px;
  width: 100%;
  accent-color: var(--sw-blue);
  display: block;
  margin-top: 6px;
}
.sw-file button {
  border: 0;
  background: transparent;
  color: var(--sw-muted);
  padding: 4px;
}
.sw-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--sw-muted) !important;
}
.sw-detail-header {
  padding: 22px 24px;
  border-bottom: 1px solid var(--sw-border);
}
.sw-detail-header h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.sw-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  align-items: start;
  gap: 22px;
}
.sw-conversation {
  min-width: 0;
}
.sw-messages {
  padding: 6px 24px;
}
.sw-message {
  display: flex;
  gap: 12px;
  padding: 22px 0;
  border-bottom: 1px solid #eef1f6;
  min-width: 0;
}
.sw-message:last-child {
  border-bottom: 0;
}
.sw-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #f0f2f7;
  color: #7c8ca5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
}
.sw-message.staff .sw-avatar {
  background: #edf3ff;
  color: #4778d4;
}
.sw-message.internal {
  background: #fffcf4;
  padding: 16px;
  border-radius: 10px;
  margin: 10px 0;
}
.sw-message-main {
  min-width: 0;
  flex: 1;
}
.sw-message-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 3px 0 10px;
  font-size: 12px;
}
.sw-message-head time {
  font-size: 11px;
  color: #929daf;
}
.sw-message-body {
  white-space: pre-wrap;
  word-break: break-word;
  color: #46536b;
  line-height: 1.8;
}
.sw-message-body pre {
  white-space: pre-wrap;
  background: #f4f6fa;
  border: 1px solid #e6eaf1;
  border-radius: 8px;
  padding: 12px;
  overflow-x: auto;
  font-size: 12px;
}
.sw-message-body code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.sw-message-body a {
  word-break: break-all;
}
.sw-attachments {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.sw-attachment {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--sw-border);
  border-radius: 8px;
  padding: 9px 12px;
  background: #fafcff;
  font-size: 12px;
  max-width: 100%;
}
.sw-attachment span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 240px;
}
.sw-image-attachment {
  width: 244px;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--sw-border);
  border-radius: 10px;
  background: #fff;
}
.sw .sw-image-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 164px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--sw-border);
  border-radius: 0;
  background: #f3f5f9;
  cursor: zoom-in;
  overflow: hidden;
}
.sw-image-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.sw-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  padding: 18px;
  text-align: center;
  color: var(--sw-muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.sw-image-attachment figcaption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 8px;
  padding: 10px 12px;
}
.sw-image-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.sw-image-actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  grid-column: 1 / -1;
}
.sw-image-actions .sw-btn {
  min-height: 32px;
  padding: 3px 7px;
  font-size: 12px;
}
.sw.sw-image-dialog {
  width: fit-content;
  min-width: min(360px, calc(100vw - 32px));
  max-width: min(1000px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  margin: auto;
  border: 1px solid #dce3ed;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 90px #12234838;
}
.sw-image-dialog::backdrop {
  background: #14223c99;
  backdrop-filter: blur(3px);
}
.sw-image-dialog header,
.sw-image-dialog footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
}
.sw-image-dialog header strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}
.sw-image-dialog .sw-image-view {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  max-height: min(68dvh, 720px);
  min-height: 140px;
  padding: 16px;
  overflow: auto;
  overscroll-behavior: contain;
  background: #f1f4f8;
}
.sw-image-view img {
  display: block;
  max-width: min(936px, calc(100vw - 66px));
  max-height: min(688px, calc(100dvh - 190px));
  width: auto;
  height: auto;
  object-fit: contain;
}
.sw-image-view p {
  padding: 16px;
  color: var(--sw-muted);
  text-align: center;
  overflow-wrap: anywhere;
}
.sw-composer {
  padding: 20px 24px;
  border-top: 1px solid var(--sw-border);
  background: #fbfcfe;
  border-radius: 0 0 14px 14px;
}
.sw-composer textarea {
  min-height: 116px;
  background: #fff;
}
.sw-compose-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.sw-composer.internal {
  background: #fffbef;
}
.sw-composer .sw-upload {
  padding: 9px 12px;
  margin-top: 9px;
}
.sw-compose-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.sw-meta h3 {
  font-size: 14px;
  margin-bottom: 17px;
}
.sw-fact {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 13px 0;
  font-size: 12px;
}
.sw-fact dt {
  color: var(--sw-muted);
  flex-shrink: 0;
}
.sw-fact dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
  color: #41516b;
}
.sw-meta .sw-btn {
  width: 100%;
  margin-top: 9px;
}
.sw-meta details {
  border-top: 1px solid var(--sw-border);
  margin-top: 18px;
  padding-top: 16px;
}
.sw-meta summary {
  cursor: pointer;
  font-size: 12px;
  color: #657897;
}
.sw-events {
  font-size: 11px;
  color: var(--sw-muted);
  padding-left: 17px;
}
.sw-events li {
  padding: 7px 0;
}
.sw-new-messages {
  position: sticky;
  bottom: 14px;
  z-index: 2;
  display: block;
  margin: 12px auto;
  background: #eef4ff;
  color: var(--sw-blue);
  border: 1px solid #c9dafd;
  border-radius: 20px;
  padding: 8px 16px;
  box-shadow: 0 3px 14px #3268e911;
}
.sw-workbench {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.sw-queue {
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 110px);
  overflow: auto;
}
.sw-queue-head {
  padding: 18px 16px;
  border-bottom: 1px solid var(--sw-border);
}
.sw-queue-head select,
.sw-queue-head input {
  width: 100%;
  margin-top: 10px;
}
.sw-queue-head .sw-search {
  margin-top: 10px;
}
.sw-queue-item {
  display: block !important;
  padding: 16px;
  border-bottom: 1px solid #eef1f6;
  color: var(--sw-ink) !important;
  border-left: 3px solid transparent;
}
.sw-queue-item.active {
  background: #f0f5ff;
  border-left-color: var(--sw-blue);
}
.sw-queue-item:hover {
  background: #f6f9ff;
}
.sw-queue-item strong {
  font-size: 13px;
  font-weight: 600;
  display: block;
  overflow-wrap: anywhere;
  margin: 7px 0;
}
.sw-queue-item .sw-summary {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.sw-queue-item .sw-actions {
  justify-content: space-between;
}
.sw-assist {
  margin: 14px 0;
}
.sw-assist h4 {
  font-size: 13px;
  margin: 0 0 6px;
}
.sw-assist ul {
  padding-left: 17px;
  font-size: 12px;
  color: #697b98;
}
.sw-assist cite {
  font-style: normal;
  font-size: 11px;
}
.sw-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.sw-settings-grid .sw-panel-pad {
  padding: 24px;
}
.sw-settings-grid h2 {
  font-size: 17px;
  margin-bottom: 20px;
}
.sw-settings-grid .sw-field-row {
  gap: 14px;
}
.sw-metric-line {
  display: flex;
  gap: 24px;
  font-size: 12px;
  color: var(--sw-muted);
  margin: 0 0 22px;
  flex-wrap: wrap;
}
.sw-metric-line b {
  color: var(--sw-ink);
  font-size: 17px;
  margin-right: 5px;
  font-weight: 600;
}
.sw-dialog {
  border: 1px solid var(--sw-border);
  border-radius: 14px;
  max-width: 520px;
  width: calc(100% - 32px);
  padding: 25px;
  box-shadow: 0 24px 90px #18346333;
  color: var(--sw-ink);
}
.sw-dialog::backdrop {
  background: #18283f55;
  backdrop-filter: blur(2px);
}
.sw-dialog h3 {
  margin: 0 0 12px;
}
.sw-dialog p {
  font-size: 13px;
  color: var(--sw-muted);
}
.sw-dialog .sw-field {
  margin-top: 17px;
}
.sw-dialog .sw-actions {
  justify-content: flex-end;
  margin-top: 20px;
}
.sw-guest-page {
  background: #f6f8fc;
  min-height: 100vh;
  margin: 0;
}
.sw-guest-bar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e7ebf2;
  padding: 0 5vw;
  background: #fff;
}
.sw-wordmark {
  font: 700 23px/1.2 system-ui;
  color: #203654;
  text-decoration: none;
  letter-spacing: -0.8px;
}
.sw-guest-main {
  max-width: 1280px;
  margin: 40px auto;
  padding: 0 28px;
}
.sw-guest-auth {
  max-width: 500px;
  margin: 7vh auto;
  padding: 32px;
}
.sw-guest-auth h1 {
  margin-bottom: 12px;
}
.sw-guest-auth p {
  color: var(--sw-muted);
  font-size: 13px;
  margin-bottom: 26px;
}
.sw-mobile-context {
  display: contents;
}
@media (min-width: 1500px) {
  .sw-admin .sw-detail-grid {
    grid-template-columns: minmax(0, 1fr) 230px;
  }
}
@media (max-width: 1400px) {
  .sw-admin .sw-detail-grid {
    grid-template-columns: 1fr;
  }
  .sw-admin .sw-meta {
    position: static;
  }
  .sw-admin .sw-mobile-context {
    display: block;
  }
  .sw-admin .sw-meta dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 25px;
  }
  .sw-admin .sw-workbench {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}
@media (max-width: 1050px) {
  .sw-new-grid {
    grid-template-columns: minmax(0, 1fr) 240px;
  }
  .sw-table .sw-col-app {
    display: none;
  }
  .sw-detail-grid {
    grid-template-columns: 1fr;
  }
  .sw-meta dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 25px;
  }
  .sw-mobile-context {
    display: block;
  }
  .sw-settings-grid {
    grid-template-columns: 1fr;
  }
  .sw-header {
    align-items: flex-start;
  }
}
@media (max-width: 760px) {
  .sw {
    padding-bottom: 20px;
  }
  .sw h1 {
    font-size: 24px;
  }
  .sw-header {
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  .sw-header p {
    font-size: 12px;
  }
  .sw-header > .sw-actions {
    width: 100%;
  }
  .sw-btn,
  .sw-tab {
    min-height: 44px;
  }
  .sw-tabs {
    gap: 20px;
    padding: 0 16px;
  }
  .sw-filters {
    padding: 16px;
    gap: 9px;
  }
  .sw-search {
    max-width: none;
    width: 100%;
    flex-basis: 100%;
  }
  .sw .sw-filters > select {
    width: 100%;
    flex-basis: 100%;
    max-width: none;
    flex: 1 1 100%;
    min-width: 120px;
  }
  .sw-table thead {
    display: none;
  }
  .sw-table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 16px;
    border-bottom: 1px solid var(--sw-border);
    gap: 10px;
  }
  .sw-table td {
    padding: 0;
    border: 0;
  }
  .sw-table td:first-child {
    grid-column: 1/-1;
  }
  .sw-table .sw-col-category,
  .sw-table .sw-col-app {
    display: none;
  }
  .sw-summary {
    max-width: calc(100vw - 95px);
  }
  .sw-table td:last-child {
    text-align: right;
    font-size: 11px;
    color: var(--sw-muted);
  }
  .sw-table td:nth-last-child(2) .sw-sub {
    display: none;
  }
  .sw-pager {
    padding: 14px 16px;
    font-size: 12px;
    flex-wrap: wrap;
  }
  .sw-new-grid {
    grid-template-columns: 1fr;
  }
  .sw-new-grid > .sw-help {
    order: 2;
  }
  .sw-panel-pad {
    padding: 20px 16px;
  }
  .sw-field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .sw-form-footer {
    flex-wrap: wrap;
  }
  .sw-form-footer > .sw-btn {
    width: 100%;
  }
  .sw-detail-header {
    padding: 18px 16px;
  }
  .sw-detail-header h2 {
    font-size: 18px;
  }
  .sw-messages {
    padding: 0 16px;
  }
  .sw-message {
    gap: 9px;
  }
  .sw-avatar {
    width: 28px;
    height: 28px;
  }
  .sw-message-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
  .sw-composer {
    padding: 16px;
  }
  .sw-composer textarea {
    font-size: 16px;
  }
  .sw-compose-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .sw-compose-actions > .sw-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .sw-meta dl,
  .sw-admin .sw-meta dl {
    display: block;
  }
  .sw-workbench,
  .sw-admin .sw-workbench {
    display: block;
  }
  .sw-admin .sw-queue {
    position: static;
    max-height: none;
    margin-bottom: 16px;
  }
  .sw-admin[data-detail="true"] .sw-queue {
    display: none;
  }
  .sw-list-toolbar {
    padding: 16px;
  }
  .sw .sw-list-toolbar select {
    width: 100%;
    flex-basis: 100%;
    flex: 1 1 100%;
    min-width: 150px;
  }
  .sw .sw-compose-top > select,
  .sw .sw-compose-actions select {
    width: 100%;
    flex-basis: 100%;
  }
  .sw-guest-main {
    padding: 0 16px;
    margin: 24px auto;
  }
  .sw-guest-auth {
    padding: 26px 20px;
  }
  .sw-help .sw-divider {
    margin: 16px 0;
  }
  .sw-attachment span {
    max-width: 190px;
  }
  .sw input,
  .sw select {
    min-height: 44px;
  }
  .sw-detail-grid {
    gap: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sw * {
    animation: none !important;
    transition: none !important;
  }
}
