.qydesk {
  min-width: 0;
  overflow: hidden;
  container-type: inline-size;
  background: #fff;
  border: 1px solid var(--line, #dfe5ef);
  border-radius: 10px;
  color: var(--ink, #18233c);
}

.qydesk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 19px 10px;
}
.qydesk-head h2 { font-size: 16px; line-height: 1.4; font-weight: 665; letter-spacing: 0; }
.qydesk-more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 28px;
  color: #455e94;
  font-size: 13px;
}
.qydesk-more:hover { color: #2848ad; text-decoration: underline; }
.qydesk-more svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; }

.qydesk-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 0 19px;
  border-bottom: 1px solid #e0e6ef;
}
.qydesk-filters button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 35px;
  padding: 1px 1px 7px;
  color: #5c697c;
  font-size: 13px;
  white-space: nowrap;
}
.qydesk-filters button[aria-pressed=true] { color: #314eaa; font-weight: 630; }
.qydesk-filters button[aria-pressed=true]::after {
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  background: currentColor;
  content: '';
}
.qydesk-filters button:hover { color: #314eaa; }
.qydesk-filters button span {
  min-width: 16px;
  padding: 0 3px;
  border-radius: 4px;
  background: #f0f2f6;
  color: #556478;
  font: 500 11px/16px -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  text-align: center;
}
.qydesk-filters button[aria-pressed=true] span { color: #344f9d; background: #e9eefc; }

.qydesk-table { width: 100%; border-collapse: collapse; table-layout: auto; }
.qydesk-table th, .qydesk-table td { text-align: left; }
.qydesk-table thead th {
  padding: 7px 8px;
  background: #f7f9fc;
  color: #657389;
  font-size: 12px;
  font-weight: 510;
  line-height: 1.5;
  white-space: nowrap;
}
.qydesk-table th:first-child { padding-left: 19px; }
.qydesk-table :is(td, th):last-child { padding-right: 19px; }
.qydesk-table tbody tr { position: relative; }
.qydesk-table tbody tr + tr { border-top: 1px solid #e8ecf3; }
.qydesk-table tbody tr:is(:hover,:focus-within) { background: #f7f9fd; }
.qydesk-table tbody :is(td, th) { padding: 12px 8px; }
.qydesk-table .qydesk-subject { width: 51%; padding-left: 19px; font-weight: 500; }
.qydesk-open {
  color: #203555;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 620;
  text-align: left;
  overflow-wrap: anywhere;
}
.qydesk-open::after { position: absolute; inset: 0; content: ''; }
.qydesk-table tbody tr:hover .qydesk-open { color: #3654ac; }
.qydesk-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 7px;
  margin-top: 3px;
  color: #657488;
  font-size: 12px;
  font-weight: 420;
}
.qydesk-meta span + span::before { content: '·'; margin-right: 7px; color: #94a0b2; }
.qydesk-id { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; }
.qydesk-owner, .qydesk-due { color: #46566d; font-size: 13px; white-space: nowrap; }
.qydesk-field { display: none; }
.qydesk-status { white-space: nowrap; }
.qydesk-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 545;
}
.qydesk-pill::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ''; }
.qydesk-stage-0 { color: #96621b; }
.qydesk-stage-1 { color: #4160aa; }
.qydesk-stage-2 { color: #197765; }
.qydesk-empty { display: grid; min-height: 136px; place-items: center; padding: 20px; color: #637287; }

@container (max-width: 535px) {
  .qydesk-head { padding: 13px 14px 7px; }
  .qydesk-filters { gap: 4px 12px; padding: 0 14px; }
  .qydesk-table, .qydesk-table tbody { display: block; }
  .qydesk-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .qydesk-table tbody tr {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 12px;
    padding: 12px 14px;
  }
  .qydesk-table tbody :is(td, th), .qydesk-table tbody .qydesk-subject { width: auto; padding: 0; }
  .qydesk-table tbody .qydesk-subject { grid-row: 1; grid-column: 1 / 3; }
  .qydesk-owner { grid-row: 2; grid-column: 1; }
  .qydesk-due { grid-row: 2; grid-column: 2 / -1; }
  .qydesk-status { grid-row: 1; grid-column: 3; align-self: start; justify-self: end; }
  .qydesk-field { display: inline; color: #6a7689; margin-right: 4px; }
  .qydesk-owner, .qydesk-due { font-size: 12px; }
}
