/* r16 responsive review (2026-11-01). Layout only, loaded last. Identical copy in 10-reskin, nuf-v3 and settings-v1. */

/* 10. Top nav content shares the page container: same side gutters as main.rs > .rs-body (min 40px, content capped at 1500px).
   The white nav background and the breadcrumb bar stay full width. */
@media (min-width: 783px) {
  .proto .ds-topnav { padding-inline: max(40px, calc((100% - 1500px) / 2)); }
  .proto .ds-topnav-actions { margin-inline-end: 0; }
}

/* 6. Status tabs + controls when the toolbar wraps (below 1280): tabs hug their content on row 1 (Rijul, 2026-11-01: no stretch),
   Filters + Search sit left on row 2. The tabs still scroll inside their outline (with shadows) when they cannot fit. */
@media (max-width: 1279px) {
  .proto .rs-toolbar { flex-wrap: wrap; justify-content: flex-start; }
  .proto .rs-toolbar > .ds-seg { flex: 0 1 auto; width: auto; max-width: 100%; }
  .proto .rs-toolbar > .rs-tools { flex: 1 1 100%; margin-inline-start: 0; justify-content: flex-start; }
}
@media (max-width: 782px) {
  .proto .rs-toolbar > .rs-tools { flex: 1 1 100%; width: 100%; }
}

/* 7. Two-line rows (1220 and below): line 1 avatar + quote; line 2 starts under the quote text (not the avatar):
   tags, then status and actions as one right-aligned group, all on one vertical centre. Right-aligned group keeps the
   kebab on one edge down the whole list, so the eye scans the same column in every row. */
@media (max-width: 1220px) {
  .proto .dash-row { --rs-ind: 82px; /* checkbox 16 + 12 + avatar 44 + 10 = the quote's left edge */ gap: 8px; padding: 14px 0 16px; }
  .proto .dash-row .dash-half:first-child { gap: 12px; }
  .proto .dash-row .dash-half.r { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; column-gap: 12px; row-gap: 0; padding-left: var(--rs-ind); min-height: 0; flex-wrap: nowrap; }
  .proto .dash-row .dash-half.r > * { height: auto; min-height: 32px; margin: 0; align-self: center; }
  .proto .dash-row .dash-tag, .proto .dash-row .dash-add, .proto .dash-row .dash-addicon { align-self: center; }
  .proto .dash-row .dash-tags { flex: none; height: auto !important; min-height: 32px !important; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; overflow: visible; }
  .proto .dash-row .dash-status { flex: none; justify-self: end; display: flex; align-items: center; }
  .proto .dash-row .dash-actions { flex: none; justify-self: end; margin: 0; gap: 8px; }
}
@media (max-width: 599px) {
  .proto .dash-row .dash-half.r { padding-left: var(--rs-ind); grid-template-columns: minmax(max-content, 1fr) auto; } /* the status chip never runs under the row buttons */
  .proto .dash-row .dash-tags { grid-column: 1 / -1; }
  .proto .dash-row .dash-status { justify-self: start; }
}

/* 8. Card padding at narrow widths: left and right equal the top (12px) */
@media (max-width: 782px) {
  .proto .wb-card { padding: 12px; }
  .proto .wb-card .rs-toolbar { padding: 0; }
  .proto .wb-card > .dash-card { margin: 0; }
  .proto .wb-card > .rs-bulk { margin-inline: 0; }
}

/* 9. Shortcode rows that wrap: order is thumbnail, name, shortcode field + copy, kebab */
@media (max-width: 760px) {
  .rs-sl .rs-sl__main { flex: 1 1 140px; }
  .rs-sl .rs-chipcode { order: 5; }
  .rs-sl .rs-kebab { order: 6; margin-inline-start: auto; }
}
