.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.feedback-operations-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  padding: 20px;
  overflow: hidden;
  background: #f8fafc;
}

.feedback-operations-header {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.feedback-operations-header h2 {
  margin: 0;
  color: #0f172a;
  font-size: 25px;
  line-height: 1.2;
}

.feedback-operations-subtitle {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.feedback-operations-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feedback-operations-actions button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.feedback-operations-actions svg,
.feedback-operations-search svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feedback-operations-nav-btn {
  display: none !important;
}

.feedback-operations-page button:disabled,
.feedback-operations-dialog button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.feedback-operations-metrics {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.feedback-metric-card {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 14px 16px;
  border: 1px solid #dbe3eb;
  border-left: 4px solid #64748b;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.045);
}

.feedback-metric-card span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.feedback-metric-card strong {
  color: #0f172a;
  font-size: 25px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.feedback-metric-card.is-pending {
  border-left-color: #d97706;
}

.feedback-metric-card.is-completed {
  border-left-color: #0f766e;
}

.feedback-metric-card.is-alert {
  border-left-color: #dc2626;
}

.feedback-operations-toolbar {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(145px, 190px));
  align-items: end;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dbe3eb;
  background: #fff;
}

.feedback-operations-toolbar > label:not(.feedback-operations-search) {
  display: grid;
  gap: 5px;
}

.feedback-operations-toolbar label > span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.feedback-operations-toolbar input,
.feedback-operations-toolbar select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
}

.feedback-operations-search {
  position: relative;
  display: flex;
  align-items: center;
}

.feedback-operations-search svg {
  position: absolute;
  left: 12px;
  color: #64748b;
  pointer-events: none;
}

.feedback-operations-search input {
  padding-left: 40px;
}

.feedback-operations-message {
  flex: 0 0 auto;
  min-height: 0;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.feedback-operations-message:not(:empty) {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid #bae6fd;
  background: #f0f9ff;
  color: #075985;
}

.feedback-operations-message.is-error:not(:empty) {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.feedback-operations-workspace {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(330px, 0.82fr) minmax(460px, 1.18fr);
  overflow: hidden;
  border: 1px solid #dbe3eb;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.055);
}

.feedback-queue {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #dbe3eb;
  background: #f8fafc;
}

.feedback-queue-head {
  flex: 0 0 auto;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #dbe3eb;
  background: #fff;
}

.feedback-queue-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: 15px;
}

.feedback-queue-head span {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 11px;
}

.feedback-queue-list {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 8px;
  overflow: auto;
  list-style: none;
}

.feedback-queue-item + .feedback-queue-item {
  margin-top: 7px;
}

.feedback-queue-card {
  width: 100%;
  min-height: 114px;
  display: grid;
  gap: 9px;
  padding: 13px 14px;
  border: 1px solid #dbe3eb;
  background: #fff;
  color: #0f172a;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.feedback-queue-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.07);
}

.feedback-queue-card[aria-current="true"] {
  border-color: #0f766e;
  background: #f0fdfa;
  box-shadow: inset 3px 0 0 #0f766e;
}

.feedback-queue-card-head,
.feedback-queue-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.feedback-queue-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #334155;
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.feedback-queue-card-foot {
  color: #64748b;
  font-size: 11px;
}

.feedback-status-pill,
.feedback-category-pill,
.feedback-mail-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.feedback-status-pill[data-status="pending"] {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.feedback-status-pill[data-status="completed"] {
  border-color: #99f6e4;
  background: #f0fdfa;
  color: #115e59;
}

.feedback-status-pill[data-status="cancelled"] {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #475569;
}

.feedback-operations-loading,
.feedback-operations-empty,
.feedback-detail-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 28px;
  color: #64748b;
  text-align: center;
}

.feedback-operations-loading {
  display: flex;
  min-height: 72px;
}

.feedback-operations-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #cbd5e1;
  border-top-color: #0f766e;
  border-radius: 50%;
  animation: feedback-operations-spin 800ms linear infinite;
}

@keyframes feedback-operations-spin {
  to { transform: rotate(360deg); }
}

.feedback-operations-empty svg,
.feedback-detail-empty svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: #94a3b8;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feedback-operations-empty strong,
.feedback-detail-empty h3 {
  margin: 0;
  color: #334155;
}

.feedback-detail {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background: #fff;
}

.feedback-detail-empty {
  min-height: 100%;
}

.feedback-detail-empty p {
  max-width: 430px;
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.feedback-detail-content {
  min-height: 100%;
}

.feedback-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid #e2e8f0;
}

.feedback-detail-head h3 {
  margin: 7px 0 0;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.35;
}

.feedback-detail-id {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 10px;
  word-break: break-all;
}

.feedback-detail-section {
  padding: 18px 20px;
  border-bottom: 1px solid #e2e8f0;
}

.feedback-detail-section h4 {
  margin: 0 0 11px;
  color: #0f172a;
  font-size: 13px;
}

.feedback-detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.feedback-detail-meta div {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.feedback-detail-meta span {
  display: block;
  margin-bottom: 4px;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.feedback-detail-meta strong,
.feedback-detail-meta a {
  display: block;
  overflow: hidden;
  color: #1e293b;
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feedback-detail-copy {
  margin: 0;
  color: #334155;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.feedback-screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.feedback-screenshot-link {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 10px;
  text-decoration: none;
}

.feedback-screenshot-link img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
}

.feedback-screenshot-link:focus-visible img,
.feedback-screenshot-link:hover img {
  border-color: #0f766e;
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.16);
}

.feedback-mail-state {
  text-transform: none;
}

.feedback-mail-state.is-success {
  border-color: #99f6e4;
  background: #f0fdfa;
  color: #115e59;
}

.feedback-mail-state.is-error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.feedback-solution-form {
  display: grid;
  gap: 10px;
}

.feedback-solution-form label {
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.feedback-solution-form textarea {
  width: 100%;
  min-height: 150px;
  padding: 12px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  line-height: 1.55;
}

.feedback-solution-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.feedback-solution-actions small {
  color: #64748b;
  line-height: 1.4;
}

.feedback-solution-actions button {
  flex: 0 0 auto;
  min-height: 42px;
}

.feedback-operations-dialog {
  width: min(600px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  overflow: auto;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  color: #0f172a;
  background: #fff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
}

.feedback-operations-dialog::backdrop {
  background: rgba(15, 23, 42, 0.52);
}

.feedback-operations-dialog > form,
.feedback-resolution-dialog {
  padding: 20px;
}

.feedback-operations-dialog > form > p,
.feedback-resolution-dialog > p {
  margin: 0 0 18px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

.feedback-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.feedback-dialog-head h3 {
  margin: 0;
  font-size: 20px;
}

.feedback-dialog-close {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: #f1f5f9;
  color: #475569;
}

.feedback-dialog-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.feedback-dialog-field {
  display: grid;
  gap: 7px;
}

.feedback-dialog-field > span {
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.feedback-dialog-field textarea {
  width: 100%;
  min-height: 150px;
  padding: 11px 12px;
  border: 1px solid #cbd5e1;
  line-height: 1.55;
}

.feedback-dialog-field small {
  color: #64748b;
  font-size: 11px;
}

.feedback-member-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.feedback-member-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid #99f6e4;
  background: #f0fdfa;
  color: #115e59;
  font-size: 11px;
  font-weight: 700;
}

.feedback-dialog-message {
  min-height: 20px;
  margin-top: 10px;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.feedback-dialog-message.is-error {
  color: #b91c1c;
}

.feedback-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.feedback-dialog-actions button {
  min-height: 42px;
}

.feedback-resolution-preview {
  max-height: 260px;
  padding: 14px;
  overflow: auto;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
}

@media (max-width: 1180px) {
  .feedback-operations-toolbar {
    grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(125px, 1fr));
  }

  .feedback-operations-workspace {
    grid-template-columns: minmax(300px, 0.72fr) minmax(400px, 1.28fr);
  }

  .feedback-screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .feedback-operations-page {
    height: auto;
    min-height: 100vh;
    overflow: auto;
  }

  .feedback-operations-header,
  .feedback-solution-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .feedback-operations-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feedback-operations-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feedback-operations-search {
    grid-column: 1 / -1;
  }

  .feedback-operations-workspace {
    min-height: 760px;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(300px, 42vh) minmax(440px, auto);
    overflow: visible;
  }

  .feedback-queue {
    border-right: 0;
    border-bottom: 1px solid #dbe3eb;
  }
}

@media (max-width: 760px) {
  body.feedback-operations-active .page-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  body.feedback-operations-active .admin-side-nav {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1100;
    width: min(300px, 84vw);
    transform: translateX(-102%);
    transition: transform 180ms ease;
  }

  body.feedback-operations-active.feedback-operations-nav-open .admin-side-nav {
    transform: translateX(0);
  }

  body.feedback-operations-active.feedback-operations-nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(15, 23, 42, 0.52);
  }

  .feedback-operations-nav-btn {
    display: inline-flex !important;
  }
}

@media (max-width: 560px) {
  .feedback-operations-page {
    gap: 10px;
    padding: 12px;
  }

  .feedback-operations-actions,
  .feedback-dialog-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .feedback-operations-actions button,
  .feedback-dialog-actions button {
    justify-content: center;
    width: 100%;
  }

  .feedback-operations-toolbar,
  .feedback-operations-metrics,
  .feedback-detail-meta {
    grid-template-columns: 1fr;
  }

  .feedback-operations-search {
    grid-column: auto;
  }

  .feedback-screenshot-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feedback-queue-card {
    transition: none;
  }

  .feedback-operations-spinner {
    animation: none;
  }

  body.feedback-operations-active .admin-side-nav {
    transition: none;
  }
}
