/* II title-band standard v42. Geometry/logic/media remain unchanged.
   Match the approved main section title: upper corners only, native orange
   border follows the radius. Do not clip containers: tooltips must remain usable. */
:root { --ii-title-radius: 22px; }
html body main :is(.section-header, .sub-header, .income-person-header,
  .further-income-panel > .panel-heading, .payroll-slip > header) {
  border-top-left-radius: var(--ii-title-radius) !important;
  border-top-right-radius: var(--ii-title-radius) !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}
/* Round the backing surface too, so no square white corner protrudes behind
   an already rounded title. Existing overflow behaviour is deliberately kept. */
html body main :is(.content-card, .media-block, .apartment-card, .unit-finance,
  .exit-panel, .portfolio-table-panel, .person-payroll-comparison,
  .income-person-card, .further-income-panel, .payroll-slip) {
  border-top-left-radius: var(--ii-title-radius) !important;
  border-top-right-radius: var(--ii-title-radius) !important;
}
