.tr-name-settings-link {
  max-width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font: inherit;
  line-height: inherit;
  text-align: inherit;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.tr-name-settings-link:hover { color: #0f4c81; text-decoration: underline; text-underline-offset: 3px; }
.tr-name-settings-link:focus-visible { outline: 2px solid #7cc4ed; outline-offset: 2px; border-radius: 2px; }
.tr-name-with-settings { overflow-wrap: anywhere; }
.tqs-overlay { position: fixed; inset: 0; z-index: 12000; display: grid; place-items: center; overflow-y: auto; background: rgba(20, 38, 60, .44); padding: 12px; }
.tqs-modal { width: min(640px, 100%); max-height: calc(100dvh - 24px); overflow-y: auto; border-radius: 12px; background: #fff; box-shadow: 0 22px 65px rgba(20, 38, 60, .28); }
.tqs-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; border-bottom: 1px solid #dce5ee; padding: 12px 16px 10px; }
.tqs-head h3 { margin: 0; color: var(--navy); font-size: 16px; }
.tqs-head p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.tqs-close { display: inline-grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border: 0; border-radius: 50%; background: #edf2f7; color: #405a76; padding: 0; font: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.tqs-body { display: grid; gap: 10px; padding: 12px 16px; }
.tqs-section { border: 1px solid #dce5ee; border-radius: 9px; padding: 10px 12px; }
.tqs-section h4 { margin: 0 0 8px; color: #344d66; font-size: 12px; }
.tqs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tqs-field { display: grid; gap: 4px; color: var(--navy); font-size: 11px; font-weight: 700; }
.tqs-field select { min-width: 0; border: 1px solid #cbd9e7; border-radius: 6px; background: #fff; padding: 7px; font: inherit; font-weight: 500; }
.tqs-checks { display: grid; gap: 6px; }
.tqs-priority-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tqs-practice-grid { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.tqs-check { display: flex; align-items: flex-start; gap: 7px; color: #263e55; font-size: 11px; line-height: 1.4; }
.tqs-check input { flex-shrink: 0; margin-top: 1px; }
.tqs-help { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.tqs-work-areas { border: 0; padding: 0; }
.tqs-work-areas summary { color: #263e55; font-size: 11px; font-weight: 700; cursor: pointer; }
.tqs-work-areas[open] summary { margin-bottom: 8px; }
.tqs-work-areas + .tqs-check { margin-top: 8px; }
.tqs-work-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.tqs-work-areas:not([open]) .tqs-work-groups { display: none; }
.tqs-compact-action { padding: 5px 8px; font-size: 11px; }
.tqs-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; border-top: 1px solid #dce5ee; padding: 10px 16px 12px; }
.tqs-actions .tqs-end { margin-left: auto; }
.tqs-error { margin: 0; color: #9b3036; font-size: 11px; }
.tqs-error:empty { display: none; }
.th-cover-warning { display: grid; gap: 10px; margin: 12px 0; border: 1px solid #d7a746; border-radius: 9px; background: #fff9e9; padding: 12px; color: #5b430c; font-size: 12px; line-height: 1.5; }
.th-cover-warning.is-critical { border-color: #d78c92; background: #fff1f2; color: #7c252d; }
.th-cover-warning h4 { margin: 0; font-size: 13px; }
.th-cover-warning p { margin: 0; }
.th-cover-warning ul { margin: 3px 0 0; padding-left: 19px; }
.th-cover-candidates { color: #175d42; font-weight: 700; }
.th-cover-warning.is-critical .th-cover-candidates { color: #7c252d; }
.th-detail-eligible { color: #175d42; font-weight: 650; }
.th-detail-eligible.is-empty { color: #9b3036; }
@media (max-width: 600px) {
  .tqs-overlay { padding: 8px; }
  .tqs-modal { max-height: calc(100dvh - 16px); }
  .tqs-head, .tqs-body, .tqs-actions { padding-left: 13px; padding-right: 13px; }
  .tqs-grid, .tqs-work-groups, .tqs-priority-grid { grid-template-columns: 1fr; }
  .tqs-actions .tqs-end { margin-left: 0; }
}
