.queue-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-block: 8px;
}
.queue-filter-bar .queue-filter { margin: 0; }
#queueFilterOptions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 4px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}
#queueFilterOptions[data-active] { background: var(--canvas); color: var(--ink); }
#queueFilterOptions .wb-icon { width: 16px; height: 16px; }
#queueFilterOptions:hover { background: var(--canvas); }
body.staff .identity {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 44px;
}
#editConversationMeta:not([hidden]) + #title::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 0 3px 8px;
  border: solid var(--muted);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
#editConversationMeta {
  position: absolute;
  inset: 0;
  width: min(100%, 22ch);
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
}
#editConversationMeta:hover + #title { text-decoration: underline; text-underline-offset: 3px; }
#rows .row { min-height: 68px; align-content: center; }
#rows .queue-row-heading { justify-content: start; }
.queue-row-heading strong { flex: 0 1 auto; }
.queue-row-heading .queue-state { flex: none; white-space: nowrap; }
.queue-row-heading .queue-state::before { display: none; }
.queue-row-heading .queue-state:is([data-stage="pending"], [data-stage="open"]) { color: #77551a; }
.queue-row-heading time { flex: none; margin-inline-start: auto; }
.queue-row-bottom {
  display: flex;
  align-items: baseline;
  min-width: 0;
  gap: 6px;
}
.queue-row-bottom .excerpt { flex: 1; }
.queue-priority, .queue-tag {
  flex: none;
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}
.queue-priority[data-priority="URGENT"] { color: #873b2b; font-weight: 600; }
.queue-priority[data-priority="HIGH"] { color: #735424; font-weight: 600; }
.queue-tag {
  max-width: 6em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.queue-tag::before { content: "#"; margin-inline-end: 1px; }
.queue-row-heading .queue-unread {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ink);
  flex: none;
}
.ops-form { display: grid; gap: 16px; }
.ops-form > label, .ops-period > label {
  display: grid;
  min-width: 0;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
}
.ops-form :is(select, textarea, input:not([type="checkbox"])) {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font: inherit;
  color: var(--ink);
}
.ops-form textarea { resize: vertical; }
.ops-form small { margin-top: -12px; font-size: 12px; color: var(--muted); }
.ops-period {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.ops-period legend { margin-bottom: 4px; font-size: 14px; font-weight: 500; }
.ops-period > label { font-size: 12px; color: var(--muted); }
.ops-form .ops-check {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 36px;
  cursor: pointer;
}
.ops-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--ink); }
.ops-form-notice:empty { display: none; }
.ops-form-notice { margin: 0; color: var(--muted); font-size: 14px; }
.ops-form footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ops-form footer button { min-height: 40px; }
.ops-form footer [type="submit"] { background: var(--ink); color: var(--paper); border-color: transparent; }
.ops-form footer [type="submit"]:disabled { opacity: .45; }
#sheet:is([data-kind="conversation-metadata"],[data-kind="queue-filters"],[data-kind="assignee"]) { width: min(440px, 100%); }
@media (max-width: 700px) {
  #queueFilterOptions, .ops-form footer button { min-height: 44px; }
  .ops-form :is(select, textarea, input:not([type="checkbox"])) { min-height: 44px; font-size: 16px; }
  #sheet:is([data-kind="conversation-metadata"],[data-kind="queue-filters"]) { width: 100%; }
}
