/* R15 approved composition. Shared semantic components; module CSS owns behavior. */
:root {
  --cs-ink: #303944;
  --cs-muted: #626e7d;
  --cs-line: #e0e5eb;
  --cs-wash: #f6f8fa;
  --cs-pale: #eef2fa;
  --cs-radius: 8px;
  --cs-gutter: clamp(20px, 3.2vw, 64px);
  --cs-control: 40px;
  --navy: #171c8f;
  --blue: #0072ce;
}
body {
  font:
    400 15px/1.5 "Mock Lato",
    Arial,
    sans-serif;
  color: var(--cs-ink);
  background: #fff;
}
body :is(button, input, select, textarea) {
  font-family: inherit;
  touch-action: manipulation;
}
body :is(button, a, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
body .wrap {
  width: 100%;
  max-width: none;
  padding-inline: var(--cs-gutter);
}
body :is(.page, .object-page) {
  padding-top: 22px;
  padding-bottom: 38px;
}
body :is(main h1, .page h1) {
  font-size: 32px;
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.6px;
  margin: 0 0 8px;
  color: var(--cs-ink);
}
body :is(main h2, dialog h2, .platform-admin h2, .radar-admin h2) {
  font-size: 21px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.2px;
  color: var(--cs-ink);
  margin: 0 0 12px;
}
body :is(main h3, dialog h3, .platform-admin h3, .radar-admin h3) {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--cs-ink);
  margin: 0 0 8px;
}
body :is(.page-subtitle, .small-note, .pa-note, .sw-note, .sw-section-note, .radar-admin p) {
  font-size: 13px;
  line-height: 1.5;
  color: var(--cs-muted);
}
body .page-title-row {
  gap: 24px;
  margin-bottom: 22px;
  align-items: center;
}
body .page-title-row > div {
  min-width: 0;
}
body h1 {
  overflow-wrap: anywhere;
}
body :is(.breadcrumb, .breadcrumbs) {
  font-size: 12px;
  margin-bottom: 18px;
  color: var(--cs-muted);
}
body .header {
  height: auto;
  background: #fff;
  border-bottom: 1px solid var(--cs-line);
}
body .header-inner {
  height: auto;
  max-width: none;
  width: 100%;
  padding: 16px var(--cs-gutter) 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 26px;
  align-items: start;
}
body .header .brand {
  display: flex;
  align-items: center;
  gap: 26px;
  grid-column: 1;
  grid-row: 1;
  margin: 0;
}
body .header .brand img {
  width: 128px;
  height: 54px;
}
.cs-brand-label {
  border-left: 1px solid var(--cs-line);
  padding-left: 26px;
  font-size: 22px;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: -0.5px;
  line-height: 1.2;
  max-width: 230px;
}
body .header-right {
  display: contents;
}
body .utility {
  grid-column: 2;
  grid-row: 1;
  justify-content: flex-end;
  min-height: 54px;
  gap: 16px;
  padding: 0;
  margin: 0;
}
body .nav {
  height: auto;
  grid-column: 1/-1;
  grid-row: 2;
  display: flex;
  gap: 28px;
  min-height: 46px;
  align-items: center;
  border: 0;
  margin-top: 10px;
  justify-content: flex-start;
}
body .nav a {
  font-size: 14px;
  padding: 12px 0;
  color: var(--cs-muted);
}
body .professional-initials {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--cs-pale);
  color: var(--navy);
}
body #professional-name {
  font-size: 13px;
  font-weight: 400;
}
body #profile-description {
  font-size: 11px;
}
body .reviewbar {
  background: var(--cs-wash);
  border-bottom: 1px solid var(--cs-line);
}
body .tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--cs-line);
  overflow-x: auto;
  scrollbar-width: thin;
  background: transparent;
  padding: 0;
}
body .tabs .tab {
  flex-shrink: 0;
  min-height: 44px;
  font:
    400 14px/1.5 "Mock Lato",
    Arial,
    sans-serif;
  padding: 13px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--cs-muted);
}
body .tabs .tab:is([aria-current="page"], [aria-selected="true"]) {
  border-bottom-color: var(--navy);
  color: var(--navy);
  background: transparent;
}
body :is(.button, .pa-button, .sw-button, .radar-button, .auth-submit) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--cs-control);
  border: 1px solid #cbd2dc;
  border-radius: var(--cs-radius);
  padding: 8px 15px;
  font:
    400 14px/1.4 "Mock Lato",
    Arial,
    sans-serif;
  text-decoration: none;
  white-space: normal;
  color: var(--cs-ink);
  background: #fff;
  box-shadow: none;
  max-width: 100%;
}
body :is(.button:not(.outline), .pa-primary, .sw-button-primary, .auth-submit) {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
body :is(.button, .pa-button, .sw-button, .radar-button):hover {
  background: #f2f5f9;
  color: var(--navy);
  border-color: #aeb9c9;
}
body :is(.pa-primary, .sw-button-primary, .auth-submit):hover {
  background: #242ca0;
  color: #fff;
}
body :is(.title-actions, .pa-actions, .sw-actions, .radar-actions, .ws-actions, .cs-actions) {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
body :is(.pa-form-actions, .sw-form-actions, .ws-actions) {
  gap: 8px;
}
body
  :is(
    .pa-field label,
    .sw-field label,
    .sw-label,
    .radar-field,
    .platform-admin label,
    .ws-form label,
    .toolbar label,
    .auth-form label
  ) {
  font-size: 13px;
  color: #45505d;
  line-height: 1.5;
}
body
  :is(.platform-admin, .sw-admin, .radar-admin, .ws-dialog, main, .auth-body)
  :is(input:not([type="checkbox"]):not([type="hidden"]), select, textarea) {
  min-height: var(--cs-control);
  border: 1px solid #bdc6d1;
  border-radius: 8px;
  padding: 9px 11px;
  background: #fff;
  color: var(--cs-ink);
  font:
    400 14px/1.5 "Mock Lato",
    Arial,
    sans-serif;
  max-width: 100%;
  min-width: 0;
}
body textarea {
  resize: vertical;
}
body input[type="checkbox"] {
  accent-color: var(--navy);
}
body :is(.toolbar, .pa-toolbar) {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
}
body :is(.pa-grid, .sw-grid, .ws-form) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
body :is(.pa-field, .sw-field) {
  min-width: 0;
}
body .cs-field-wide {
  grid-column: 1/-1;
}
body :is(.pa-form-group, .sw-fieldset) {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  column-gap: 36px;
  row-gap: 8px;
  padding: 24px 0;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--cs-line);
  min-width: 0;
  max-width: 1180px;
}
body :is(.pa-form-group, .sw-fieldset) > legend {
  float: left;
  grid-column: 1;
  font-size: 16px;
  font-weight: 400;
  color: var(--cs-ink);
  width: 100%;
  margin: 0;
  padding: 0;
}
body :is(.pa-form-group, .sw-fieldset) > :is(.pa-grid, .sw-grid) {
  grid-column: 2;
  grid-row: 1/4;
}
body :is(.pa-form-group, .sw-fieldset) > p {
  grid-column: 1;
  font-size: 13px;
  max-width: 28ch;
  margin: 0;
  color: var(--cs-muted);
}
body :is(.pa-form-actions, .sw-form-actions) {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid var(--cs-line);
  margin: 20px 0 0;
}
body :is(.table-wrap, .pa-table-wrap, .radar-table, .ws-table) {
  border: 1px solid var(--cs-line);
  border-radius: 8px;
  overflow-x: auto;
  max-width: 100%;
  margin-block: 16px;
}
body table.cs-table {
  width: 100%;
  font-size: 14px;
  border-collapse: collapse;
  table-layout: auto;
}
body table.cs-table th {
  font-size: 12px;
  font-weight: 600;
  color: #586675;
  background: #f7f9fb;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--cs-line);
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
}
body table.cs-table td {
  font-size: 14px;
  line-height: 1.5;
  padding: 16px;
  border: 0;
  border-bottom: 1px solid var(--cs-line);
  vertical-align: middle;
  overflow-wrap: anywhere;
}
body table.cs-table tbody tr:last-child td {
  border-bottom: 0;
}
body table.cs-table td small {
  display: block;
  font-size: 12px;
  color: var(--cs-muted);
  margin-top: 4px;
}
body table.cs-table :is(.button, .pa-button, .sw-button, .radar-button) {
  min-height: 34px;
  font-size: 13px;
  padding: 6px 11px;
  margin: 0;
}
body .cs-person {
  display: flex;
  gap: 11px;
  align-items: center;
}
body .cs-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--cs-pale);
  color: var(--navy);
  font-size: 12px;
}
body .cs-person strong {
  font-weight: 400;
}
body .cs-code {
  display: block;
  font-size: 12px;
  color: var(--cs-muted);
  overflow-wrap: anywhere;
}
body :is(.flat-panel, .person-card, .app-panel, .role-summary, .pa-note, .sw-note, .notice) {
  border: 1px solid var(--cs-line);
  border-radius: 8px;
  background: var(--cs-wash);
  box-shadow: none;
}
body :is(.pa-note, .sw-note, .role-summary) {
  padding: 12px 15px;
}
body .person-card {
  background: #fff;
  padding: 22px;
}
body .initials {
  font-size: 12px;
  color: var(--cs-muted);
}
body :is(.stats-band, .stats-band-wide) {
  border-color: var(--cs-line);
  background: var(--cs-wash);
  border-radius: 8px;
}
body :is(.stat strong, .stat-value) {
  font-size: 25px;
  font-weight: 400;
}
body :is(.radar-admin section, .pa-section) {
  border-color: var(--cs-line);
  padding-block: 22px;
}
body .cs-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--cs-wash);
  border: 1px solid var(--cs-line);
  border-radius: 8px;
  padding: 18px 22px;
  margin-bottom: 24px;
}
body .radar-admin details {
  padding: 16px 0;
}
body summary {
  cursor: pointer;
  color: var(--cs-ink);
  min-height: 40px;
}
body .radar-admin form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
body .radar-admin form > button {
  justify-self: start;
}
body .radar-admin .radar-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
body dialog {
  border: 1px solid var(--cs-line);
  border-radius: 12px;
  color: var(--cs-ink);
  box-shadow: none;
  max-height: 90vh;
}
body dialog::backdrop {
  background: #17253866;
}
body :is(.dialog-header, .pa-dialog-header, .sw-dialog-header) {
  background: #fff;
  border-bottom: 1px solid var(--cs-line);
  color: var(--cs-muted);
}
body :is(.empty-state, .pa-empty, .sw-empty) {
  padding: 32px 24px;
  text-align: center;
  color: var(--cs-muted);
}
body .auth-header-label {
  font-size: 22px;
  font-weight: 400;
  color: var(--navy);
}
body .auth-intro {
  background: var(--cs-wash);
  color: var(--cs-ink);
}
body .auth-intro h1 {
  font-size: 32px;
  font-weight: 300;
}
body .auth-intro-copy > p {
  color: var(--cs-muted);
}
body .auth-tools span {
  border-color: var(--cs-line);
  color: var(--navy);
  background: #fff;
}
body .auth-art {
  opacity: 0.15;
}
body .auth-form-wrap h2 {
  font-size: 21px;
}
@media (min-width: 1800px) {
  body .wrap {
    padding-inline: 48px;
  }
}
@media (max-width: 991px) {
  body .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding-block: 14px;
  }
  body .header .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }
  body .header .menu-toggle {
    grid-column: 2;
    grid-row: 1;
  }
  body .header .header-right {
    grid-column: 1/-1;
    grid-row: 2;
    justify-content: flex-end;
  }
  body .header-right .utility {
    display: flex;
    min-width: 0;
  }
  body .header .professional-identity {
    max-width: 100%;
  }
  body .header .brand img {
    width: 92px;
    height: 39px;
  }
  body .header .brand {
    gap: 12px;
  }
  .cs-brand-label {
    font-size: 20px;
    padding-left: 12px;
    max-width: 190px;
  }
  body .header-right {
    display: flex;
    flex: 0 1 auto;
    min-width: 0;
  }
  body .utility {
    display: none;
  }
  body .nav {
    display: none;
    margin-top: 0;
    top: 100%;
  }
  body .menu-toggle {
    flex-shrink: 0;
  }
  body .nav[data-open="true"] {
    display: flex;
    gap: 8px;
    padding: 16px var(--cs-gutter);
    background: #fff;
  }
  body .nav a {
    min-height: 44px;
  }
  body .utility {
    min-height: 0;
  }
}
@media (max-width: 700px) {
  :root {
    --cs-control: 44px;
  }
  body :is(main h1, .page h1) {
    font-size: 28px;
  }
  body .page-title-row {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
  }
  body :is(.pa-form-group, .sw-fieldset) {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-block: 22px;
  }
  body :is(.pa-form-group, .sw-fieldset) > :is(.pa-grid, .sw-grid) {
    grid-column: 1;
    grid-row: auto;
  }
  body :is(.pa-form-group, .sw-fieldset) > p {
    max-width: none;
  }
  body :is(.pa-grid, .sw-grid, .ws-form, .radar-admin form) {
    grid-template-columns: 1fr;
  }
  body .cs-summary {
    align-items: flex-start;
    flex-direction: column;
  }
  body table.cs-table,
  body table.cs-table tbody {
    display: block;
  }
  body table.cs-table thead {
    display: none;
  }
  body table.cs-table tr {
    display: block;
    border: 1px solid var(--cs-line);
    border-radius: 8px;
    margin: 0 0 12px;
    padding: 12px 16px;
  }
  body table.cs-table td {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px 16px;
    border: 0;
    padding: 8px 0;
    text-align: right;
    width: auto;
    max-width: 100%;
    white-space: normal;
  }
  body table.cs-table td:before {
    content: attr(data-label);
    font-size: 12px;
    color: var(--cs-muted);
    text-align: left;
    flex: 0 0 82px;
  }
  body table.cs-table td:first-child {
    display: block;
    text-align: left;
  }
  body table.cs-table td:first-child:before {
    display: none;
  }
  body table.cs-table td[colspan] {
    display: block;
    text-align: left;
  }
  body table.cs-table :is(.button, .pa-button, .sw-button, .radar-button) {
    min-height: 44px;
  }
  body :is(.table-wrap, .pa-table-wrap, .radar-table, .ws-table) {
    border: 0;
    overflow: visible;
  }
  body table.cs-table td > * {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  body .cs-readable-code {
    flex: 1 1 100%;
    text-align: left;
  }
  body .cs-code {
    flex: 1 1 100%;
    text-align: left;
  }
  body .cs-actions {
    justify-content: flex-end;
  }
  body .cs-brand-label {
    max-width: 155px;
    font-size: 18px;
  }
  body .auth-header-label {
    font-size: 18px;
  }
}
body .pa-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
body .pa-section-heading h2 {
  margin: 0;
}
body .cs-collection {
  padding-block: 8px 20px;
}
body .cs-collection .pa-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
body .cs-collection .search-field {
  flex: 1;
  max-width: 520px;
}
body .cs-collection label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
body .cs-collection .pa-check {
  flex-direction: row;
  align-items: center;
}
body table.cs-table tr[hidden],
body .cs-collection [data-cs-empty][hidden] {
  display: none;
}
body section.sw-context-editor {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
  max-height: none;
  overflow: visible;
}
body .sw-context-editor .sw-dialog-content {
  padding: 0;
}
body .sw-context-editor .sw-form {
  margin: 0;
}
@media (max-width: 700px) {
  body .cs-collection .pa-section-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  body .cs-collection .toolbar > label {
    flex: 1 1 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  body * {
    scroll-behavior: auto;
  }
}

/* R17 — gestão de aplicações, pendências, acessos e infraestrutura.
   Same tokens/typography as R15; layout only, no new brand elements. */
body .cs-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 12px;
  border: 1px solid var(--cs-line);
  border-radius: var(--cs-radius);
  background: var(--cs-wash);
}
body .cs-kpi {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 16px 20px;
  border-left: 1px solid var(--cs-line);
}
body .cs-kpi:first-child {
  border-left: 0;
}
body .cs-kpi-label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cs-muted);
}
body .cs-kpi-value {
  font-size: 26px;
  line-height: 1.15;
  color: var(--navy);
  font-weight: 400;
}
body .cs-kpi.is-alert .cs-kpi-value {
  color: #9b2c2c;
}
body .cs-kpi-note {
  font-size: 12px;
  line-height: 1.45;
  color: var(--cs-muted);
}
body .cs-kpis-more {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--cs-muted);
}
body .cs-kpis-more summary {
  cursor: pointer;
  color: var(--navy);
  width: max-content;
}
body .cs-kpis-more dl {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 10px 0 4px;
}
body .cs-kpis-more dl div {
  display: flex;
  gap: 8px;
  align-items: baseline;
}
body .cs-kpis-more dd {
  margin: 0;
  color: var(--cs-ink);
  font-weight: 700;
}
body .cs-attention {
  margin: 0 0 22px;
  padding: 14px 18px;
  border: 1px solid var(--cs-line);
  border-left: 3px solid #c08a1e;
  border-radius: var(--cs-radius);
  background: #fff;
}
body .cs-attention.is-clear {
  border-left-color: var(--cs-line);
  background: var(--cs-wash);
}
body .cs-attention p {
  margin: 0;
  font-size: 13px;
  color: var(--cs-ink);
}
body .cs-attention-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}
body .cs-attention h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 8px;
}
body .cs-attention-count {
  font-size: 12px;
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 11px;
  background: #fbf1dc;
  color: #6b4b0f;
  text-align: center;
}
body .cs-attention-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
body .cs-attention-chip {
  font: inherit;
  font-size: 13px;
  white-space: nowrap;
  padding: 5px 12px;
  border: 1px solid var(--cs-line);
  border-radius: 16px;
  background: var(--cs-wash);
  color: var(--navy);
  cursor: pointer;
}
body .cs-attention-chip:hover,
body .cs-attention-chip:focus-visible {
  border-color: var(--navy);
}
body .cs-attention details {
  margin-top: 10px;
  font-size: 13px;
}
body .cs-attention summary {
  cursor: pointer;
  color: var(--navy);
  width: max-content;
}
body .cs-attention-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px 24px;
  margin-top: 10px;
}
body .cs-attention-group h3 {
  margin: 0 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cs-muted);
  font-weight: 400;
}
body .cs-attention-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
body .cs-attention-group li {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  padding: 4px 0;
  border-top: 1px solid var(--cs-line);
}
body .cs-attention-group li > * {
  min-width: 0;
  overflow-wrap: anywhere;
}
body .cs-attention-group li span {
  color: var(--cs-muted);
}
body .cs-attention-info {
  margin-top: 10px !important;
  color: var(--cs-muted) !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
body .cs-portfolio :is(.object-row-actions a, .object-row-actions button, .badge) {
  white-space: nowrap;
}
@media (min-width: 700.02px) {
  body .cs-portfolio td[data-label="Ação"] {
    width: 1%;
  }
}
body .cs-access-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding: 16px 20px;
  margin: 8px 0 18px;
  border: 1px solid var(--cs-line);
  border-radius: var(--cs-radius);
  background: var(--cs-wash);
}
body .cs-access-head > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  max-width: 100%;
}
body .cs-access-head strong {
  overflow-wrap: anywhere; /* long unbroken usernames must not widen the page */
  font-size: 18px;
  font-weight: 400;
  color: var(--navy);
}
body .cs-access-head p {
  margin: 0;
  max-width: 60ch;
  font-size: 13px;
  color: var(--cs-muted);
  align-self: center;
}
body .cs-access-table td {
  overflow-wrap: anywhere;
}
body .cs-access-table td:before {
  overflow-wrap: normal;
}
body .cs-access-table td:first-child {
  font-weight: 700;
  color: var(--cs-ink);
}
body .cs-access-decisions {
  margin: 20px 0 8px;
}
body .cs-access-decisions h3 {
  font-size: 15px;
  font-weight: 400;
  margin: 0 0 6px;
}
body .cs-access-decisions ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
}
body .cs-access-decisions .is-off {
  color: var(--cs-muted);
}
body .cs-access-technical {
  margin-top: 16px;
  font-size: 13px;
  color: var(--cs-muted);
}
body .cs-access-technical summary {
  cursor: pointer;
  color: var(--navy);
  width: max-content;
}
body .infra-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
}
body .infra-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--cs-muted);
}
body .infra-toolbar input {
  min-width: min(360px, 100%);
}
body .infra-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 24px;
  margin: 18px 0 14px;
  font-size: 13px;
  color: var(--cs-muted);
}
body .infra-summary strong {
  font-size: 20px;
  font-weight: 400;
  color: var(--navy);
}
body .infra-summary p {
  margin: 0;
  flex-basis: 100%;
}
body .infra-group {
  margin: 0 0 16px;
  border: 1px solid var(--cs-line);
  border-radius: var(--cs-radius);
  background: #fff;
}
body .infra-group h2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  margin: 0;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 400;
  border-bottom: 1px solid var(--cs-line);
  background: var(--cs-wash);
  border-radius: var(--cs-radius) var(--cs-radius) 0 0;
}
body .infra-group h2 span {
  font-size: 12px;
  color: var(--cs-muted);
}
body .infra-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
body .infra-link {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 18px minmax(0, 1.3fr) 18px minmax(0, 1.1fr) 18px minmax(0, 0.8fr);
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid var(--cs-line);
}
body .infra-link:first-child {
  border-top: 0;
}
body .infra-node {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  color: var(--cs-ink);
}
body .infra-node > span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cs-muted);
}
body .infra-node small {
  font-size: 12px;
  color: var(--cs-muted);
}
body a.infra-tool {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}
body .infra-arrow {
  color: var(--cs-muted);
  text-align: center;
}
body .infra-shared {
  font-style: normal;
  font-size: 11px;
  width: max-content;
  max-width: 100%;
  padding: 1px 8px;
  border-radius: 10px;
  background: var(--cs-pale);
  color: var(--navy);
}
body .infra-register {
  margin-top: 14px;
  font-size: 13px;
}
body .infra-register summary {
  cursor: pointer;
  color: var(--navy);
  width: max-content;
}
@media (max-width: 991.98px) {
  body .cs-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body .cs-kpi:nth-child(3) {
    border-left: 0;
  }
  body .cs-kpi:nth-child(n + 3) {
    border-top: 1px solid var(--cs-line);
  }
  body .infra-link {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px 16px;
  }
  body .infra-arrow {
    display: none;
  }
}
@media (max-width: 479.98px) {
  body .cs-kpis {
    grid-template-columns: minmax(0, 1fr);
  }
  body .cs-kpi {
    border-left: 0;
    border-top: 1px solid var(--cs-line);
    padding: 12px 16px;
  }
  body .cs-kpi:first-child {
    border-top: 0;
  }
  body .infra-link {
    grid-template-columns: minmax(0, 1fr);
  }
}

body .cs-abilities {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  list-style: none;
  margin: 8px 0 4px;
  padding: 0;
}
body .cs-abilities li {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--cs-pale);
  color: var(--navy);
}
body .infra-link.is-by-tool {
  grid-template-columns: minmax(0, 1.4fr) 18px minmax(0, 1.2fr) 18px minmax(0, 0.8fr);
}
body .infra-group-title {
  display: flex;
  flex-direction: column;
  font-size: 16px;
  color: var(--cs-ink);
}
body .infra-group-title small {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cs-muted);
}
body .infra-group h2 a {
  font-size: 13px;
  align-self: center;
  color: var(--navy);
}
@media (max-width: 991.98px) {
  body .infra-link.is-by-tool {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
@media (max-width: 479.98px) {
  body .infra-link.is-by-tool {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Group header: the tool name is the title, not the small counter style. */
body .infra-group h2 .infra-group-title {
  font-size: 16px;
  color: var(--cs-ink);
}
body .infra-group h2 .infra-group-title small {
  font-size: 11px;
  color: var(--cs-muted);
}
@media (max-width: 767.98px) {
  /* Gestão filters: one labelled field per half row instead of squeezed inline labels. */
  body [data-page="governance"] .toolbar .filter-field {
    flex: 1 1 calc(50% - 6px);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    min-width: 0;
  }
  body [data-page="governance"] .toolbar .filter-field label {
    white-space: normal;
  }
  body [data-page="governance"] .toolbar select {
    width: 100%;
  }
}
@media (max-width: 700px) {
  body .cs-portfolio td:before {
    flex: 0 0 104px;
    overflow-wrap: normal;
    word-break: normal;
  }
  body .cs-portfolio .object-row-actions {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }
}
/* R17: the own-access link stays reachable where the header hides other session links
   (≤575px it moves to the mobile session actions). */
@media (max-width: 991px) {
  .session-actions a[data-own-access] {
    display: inline;
  }
}

/* Infra resource journey (2026-11-13): saved/unlinked resources stay visible and actionable. */
body .ws-success {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-left: 3px solid var(--navy);
  border-radius: 6px;
  background: var(--cs-pale);
  color: var(--cs-ink);
  font-size: 13px;
}
body .infra-link.is-unlinked {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr) minmax(0, 0.9fr) auto;
}
body .infra-link.is-new {
  background: var(--cs-pale);
}
body .infra-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
body .infra-actions .button {
  white-space: nowrap;
}
body .ws-form [aria-invalid="true"] {
  border-color: #ad4645;
  box-shadow: 0 0 0 1px #ad4645;
}
@media (max-width: 991.98px) {
  body .infra-link.is-unlinked {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  body .infra-link.is-unlinked .infra-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}
@media (max-width: 479.98px) {
  body .infra-link.is-unlinked {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Declared role of an application→resource link (existing link notes; informational). */
body .infra-role {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--cs-ink);
}
body .infra-role > span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cs-muted);
}
body .infra-role details {
  font-size: 12px;
  color: var(--cs-muted);
}
body .infra-role summary {
  cursor: pointer;
  color: var(--navy);
  width: max-content;
  max-width: 100%;
}
body .infra-role details p {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

/* Application Infraestrutura table (scoped): spaced actions; on phones, label above value,
   left-aligned, uniform rhythm (overrides the generic right-aligned card cells only here). */
body .ws-infra-table .ws-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
/* Declared-role disclosure: compact target (≥24px) instead of the generic 40px summary,
   so the next field keeps the same spacing as the others. */
body .infra-role summary {
  min-height: 28px;
  display: list-item;
  padding: 4px 0 0;
}
@media (max-width: 700px) {
  body .ws-infra-table table.cs-table td {
    display: block;
    text-align: left;
    padding: 6px 0;
  }
  body .ws-infra-table table.cs-table td:before {
    display: block;
    margin: 0 0 2px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cs-muted);
  }
  body .ws-infra-table table.cs-table td:first-child {
    padding-top: 0;
  }
  body .ws-infra-table table.cs-table td:first-child:before {
    display: none;
  }
  body .ws-infra-table .infra-role {
    margin-top: 0;
  }
  body .ws-infra-table .ws-row-actions {
    padding-top: 4px;
  }
}
