.platform-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: .8rem;
  margin-block: 1rem;
}
.platform-actions form, .platform-form {
  display: grid;
  gap: .8rem;
}
.platform-form {
  max-width: 45rem;
}
.platform-form label, .platform-actions label {
  display: grid;
  gap: .3rem;
}
.platform-form input:not([type="checkbox"]), .platform-form select, .platform-actions input {
  width: 100%;
  min-height: 2.6rem;
  padding: .6rem .75rem;
  border: 1px solid #bacbde;
  border-radius: .6rem;
  background: #fff;
  font: inherit;
}
.platform-form fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  padding: .85rem;
  border: 1px solid #bacbde;
  border-radius: .6rem;
}
.platform-form fieldset label { display: flex; align-items: center; gap: .4rem; }
.platform-form input[type="checkbox"] { accent-color: #294f73; }
.platform-form .primary-button { justify-self: start; }

/* Keep the brand colours on small accents in the shared shell. */
.profile-kampus .commandbar {
  border-top: 3px solid #173b62;
  border-image: linear-gradient(
    90deg, var(--brand-red) 0 3%, var(--gold-light) 3%,
    var(--gold) 11%, #173b62 11% 100%
  ) 1 0 0;
}
.profile-kampus .sidebar .brand { border-bottom: 1px solid #cfdfed; }
.profile-kampus .sidebar .navigation a:hover,
.profile-kampus .sidebar .navigation a:focus-visible {
  box-shadow: inset 2px 0 #b48d45;
}
.profile-kampus .page h1 { color: #162438; }
.profile-kampus .page .primary-button:hover:not(:disabled) { background: #142e4b; }
.profile-kampus .cf-table thead th { background: #1a3858; color: #f6f9fd; }
.profile-kampus .survey-workspace .survey-badge.is-published {
  border-left: 3px solid #a77935;
}
.mobile-menu-toggle, .mobile-menu-close, .mobile-menu-backdrop { display: none; }

@media (max-width: 760px) {
  .app-body .sidebar {
    width: min(88vw, 320px);
    padding: 22px 18px;
    z-index: 110;
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform 180ms ease, visibility 180ms;
    overflow-y: auto;
  }
  .app-body .sidebar .brand > span:last-child {
    display: block;
    font-size: inherit;
  }
  .app-body .sidebar .navigation a,
  .app-body .sidebar .navigation a:not(:hover) {
    justify-content: start;
    font-size: .92rem;
  }
  .app-body .sidebar .nav-label { display: block; }
  .app-body .sidebar .sidebar-signature span:last-child { display: block; }
  .app-body .sidebar .navigation { overflow: visible; }
  .app-body .app-frame { margin-left: 0; }
  .app-body.menu-open { overflow: hidden; }
  .app-body.menu-open .sidebar { visibility: visible; transform: translateX(0); }
  .mobile-menu-toggle, .mobile-menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid #a6bfd6;
    border-radius: 9px;
    background: #fff;
    color: #193d61;
    font: inherit;
    cursor: pointer;
  }
  .mobile-menu-close { align-self: end; margin-bottom: .75rem; }
  .mobile-menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 100;
    border: 0;
    background: #19171499;
  }
  .mobile-menu-backdrop[hidden] { display: none; }
  .mobile-menu-toggle { margin-right: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .app-body .sidebar { transition: none; }
}
@media print {
  .mobile-menu-toggle, .mobile-menu-close, .mobile-menu-backdrop { display: none !important; }
}
[data-bulk-members] th button {
  display: block;
  margin-top: .3rem;
  padding: .25rem .4rem;
  border: 1px solid #819dbc;
  border-radius: .35rem;
  color: #f6f9fc;
  background: #1b3a5c;
  cursor: pointer;
}
[data-bulk-members] [hidden] { display: none; }

.profile-kampus .nav-group {
  margin-block: .35rem;
  border: 1px solid #d9e4ee;
  border-radius: .65rem;
  background: #fff;
}
.profile-kampus .nav-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  padding: .7rem .75rem;
  list-style: none;
  cursor: pointer;
  color: #203e60;
  font-weight: 750;
  font-size: .87rem;
}
.profile-kampus .nav-group summary::-webkit-details-marker { display: none; }
.profile-kampus .nav-group summary::after {
  content: "";
  flex: 0 0 .42rem;
  height: .42rem;
  margin-right: .15rem;
  border: solid #294f73;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.profile-kampus .nav-group[open] summary::after { border-color: var(--brand-red); transform: rotate(225deg); }
.profile-kampus .nav-group[open] summary {
  background: #eaf2fa;
  box-shadow: inset 2px 0 var(--gold);
  border-radius: .6rem .6rem 0 0;
}
.profile-kampus .nav-group-items { padding: .15rem .25rem .3rem; }
