/* Gaya Start Menu terpisah; tidak mengubah stylesheet atau layout halaman lama. */
.portal-start-navigation .linux-brand-wrap {
  min-width: 0;
  gap: 8px;
}
.portal-start-wrap {
  position: relative;
  flex-shrink: 0;
}
.portal-start-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #ddd;
  border-radius: 7px;
  background: #fff;
  color: #555;
  font-size: 11px;
  font-weight: 700;
}
.portal-start-toggle:hover,
.portal-start-toggle[aria-expanded='true'] {
  background: #fff0f1;
  border-color: #ed1c2433;
  color: var(--red, #ed1c24);
}
/* Ikon empat kotak memakai CSS sehingga tidak memerlukan pustaka ikon. */
.portal-start-icon {
  display: grid;
  grid-template-columns: repeat(2, 5px);
  gap: 3px;
}
.portal-start-icon i {
  display: block;
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 1px;
}
.portal-start-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 460px;
  padding: 12px;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  box-shadow: 0 14px 40px #0003;
  max-height: calc(100dvh - var(--header-h, 74px) - 20px);
  overflow-y: auto;
}
.portal-start-panel[hidden] {
  display: none !important;
}
.portal-start-heading {
  font-size: 11px;
  color: #777;
  font-weight: 700;
  padding: 2px 4px 10px;
  border-bottom: 1px solid #eee;
  margin-bottom: 8px;
}
/* Grid ringkas tiga kolom, dengan label menu asli aplikasi. */
.portal-start-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}
.portal-start-grid .nav {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  min-width: 0;
  padding: 10px 8px;
  border-radius: 7px;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 600;
  color: #555;
  background: #fafafa;
  white-space: normal;
}
.portal-start-grid .nav:hover,
.portal-start-grid .nav.active {
  background: #fff0f1;
  color: var(--red, #ed1c24);
}
.portal-start-grid .nav:after {
  display: none;
}
.portal-feature-icon {
  flex-shrink: 0;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  font-size: 18px;
  background: #fff;
}
.portal-start-toggle:focus-visible,
.portal-start-grid .nav:focus-visible {
  outline: 2px solid var(--red, #ed1c24);
  outline-offset: 2px;
}
/* Tetap mengikuti pembatasan role aplikasi lama. */
.team-role .portal-start-grid .admin-only,
.portal-start-grid .role-hidden {
  display: none !important;
}
@media (max-width: 900px) {
  .portal-start-navigation .linux-topbar {
    gap: 8px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .portal-start-navigation .linux-nav {
    justify-content: flex-start;
  }
  .portal-start-panel {
    position: fixed;
    top: calc(var(--header-h, 74px) + 6px);
    left: 10px;
    width: min(460px, calc(100vw - 20px));
  }
}
@media (max-width: 480px) {
  /* Pertahankan tiga kolom pada HP; susun ikon di atas teks agar muat. */
  .portal-start-grid .nav {
    flex-direction: column;
    text-align: center;
    gap: 5px;
    padding: 8px 4px;
    font-size: 10px;
    overflow-wrap: anywhere;
  }
  .portal-start-toggle {
    padding: 0 9px;
  }
  .portal-start-navigation .linux-brand-wrap .brand {
    width: 90px;
    min-width: 90px;
  }
  .portal-start-navigation .linux-brand-wrap .brand img {
    width: 85px;
  }
}
