.settings .sec-b:has(> .sizes) {
  container: settings-text-size / inline-size;
}

.settings .sec-b .sizes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@container settings-text-size (min-width: 420px) {
  .settings .sec-b .sizes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.settings .sizes .size {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 84px;
  padding: 10px 8px;
  text-align: center;
}

.settings .sizes .size b {
  min-height: 34px;
  display: grid;
  place-items: center;
  line-height: 1.1;
}

.settings .sizes .size span {
  max-width: 100%;
  line-height: 1.35;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.settings .fld .ro { height: auto; min-height: 48px; padding: 8px 14px; }
.settings .ro svg,
.settings .inst svg,
.settings .sec-h .si,
.settings .grp .gi,
.settings .who .av { flex: none; }
.settings .ro span, .settings .who > div { min-width: 0; overflow-wrap: anywhere; }

.settings .bgroup .tags span {
  max-width: 100%;
  height: auto;
  min-height: 24px;
  padding-block: 2px;
  overflow-wrap: anywhere;
}

.settings .row-l { grid-template-columns: minmax(0, 1fr); }
.settings .opts .opt {
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
  row-gap: 2px;
  overflow-wrap: anywhere;
}

#recent-added-panel .field-search {
  flex: 1 1 240px;
  min-width: 0;
  max-width: 100%;
}

.reports-page .tline .trend {
  max-width: 100%;
  height: auto;
  min-height: 24px;
  padding-block: 3px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.reports-page .chart {
  container: report-chart / inline-size;
}

@container report-chart (max-width: 360px) {
  .reports-page .chart .bar { position: static; }
  .reports-page .chart .bar .tip {
    inset-inline: 0;
    transform: none;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
