/* Students Home — original notification design preserved */
[id^="ntf-panel-"]{
  max-height:min(72vh,620px);
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:#d5ded8 transparent;
}
/* Keep notification header + Clear all accessible while scrolling */
[id^="ntf-panel-"] > [id^="ntm6-"]{
  position:sticky;
  top:0;
  z-index:2;
  background:#fff;
  border-bottom:1px solid #e5e9e3;
}
[id^="ntf-panel-"] .shx-ni{
  display:flex;
  column-gap:12px;
  align-items:flex-start;
  width:100%;
  box-sizing:border-box;
  padding:12px;
  margin:0;
  border:0;
  border-top:1px solid #e5e9e3;
  border-radius:0;
  background:#fff;
  cursor:pointer;
  transition:background .18s;
}
[id^="ntf-panel-"] .shx-ni:hover{background:#f8faf8}
[id^="ntf-panel-"] .shx-ni.is-unread{background:#f7faf6}
[id^="ntf-panel-"] .shx-ni-dot{
  width:8px;
  height:8px;
  flex:0 0 8px;
  border-radius:50%;
  background:#f48c06;
  margin-top:6px;
}
[id^="ntf-panel-"] .shx-ni:not(.is-unread) .shx-ni-dot{background:#cbd4ce}
[id^="ntf-panel-"] .shx-ni-body{
  display:flex;
  flex-direction:column;
  row-gap:6px;
  flex:1 1 0;
  min-width:0;
}
[id^="ntf-panel-"] .shx-tag{
  align-self:flex-start;
  font:700 11px/16px "DM Sans",sans-serif;
  letter-spacing:.03em;
  padding:2px 9px;
  border-radius:99px;
  background:#e5f0e8;
  color:#174d39;
}
[id^="ntf-panel-"] .shx-tag.ai{background:#fdeccf;color:#7a4300}
[id^="ntf-panel-"] .shx-tag.event{background:#fdeccf;color:#7a4300}
[id^="ntf-panel-"] .shx-tag.enquiry{background:#e5f0e8;color:#174d39}
[id^="ntf-panel-"] .shx-tag.account{background:#e5f0e8;color:#174d39}
[id^="ntf-panel-"] .shx-ni-t{
  font:500 14px/1.45 "DM Sans",sans-serif;
  color:#202923;
  margin:0;
}
[id^="ntf-panel-"] .shx-ni-preview{
  font:400 12.5px/1.5 "DM Sans",sans-serif;
  color:#718078;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
[id^="ntf-panel-"] .shx-ni-m{
  font:400 12.5px/1.4 "DM Sans",sans-serif;
  color:#718078;
  margin:0;
}
[id^="ntf-panel-"] .shx-ni-v{
  align-self:flex-start;
  margin-top:4px;
  font:600 13px "DM Sans",sans-serif;
  border-radius:10px;
  padding:5px 14px;
  cursor:pointer;
  background:#fff;
  color:#174d39;
  border:1px solid #174d39;
}
[id^="ntf-panel-"] .shx-ni-v:hover{background:#e5f0e8}
[id^="ntf-panel-"] .shx-ni-x{
  cursor:pointer;
  color:#718078;
  font:400 20px/1 "DM Sans",sans-serif;
  width:28px;
  height:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  flex:0 0 28px;
  border:0;
  background:transparent;
  padding:0;
}
[id^="ntf-panel-"] .shx-ni-x:hover{background:#fdecea;color:#b3261e}
[id^="ntf-empty-"]{padding:18px 12px;color:#718078;font:400 13px "DM Sans",sans-serif}
[id^="ntf-empty-"][hidden]{display:none!important}
#shx-notification-modal{
  display:none;
  position:fixed;
  inset:0;
  z-index:100000;
  background:rgba(23,40,31,.55);
  padding:20px;
  align-items:center;
  justify-content:center;
}
#shx-notification-modal.is-open{display:flex}
.shx-notice-dialog{
  position:relative;
  width:min(100%,500px);
  max-height:85vh;
  overflow-y:auto;
  background:#fff;
  border:1px solid #e5e9e3;
  border-radius:14px;
  padding:26px;
  box-shadow:0 12px 32px rgba(0,0,0,.18);
}
.shx-notice-close{
  position:absolute;
  right:14px;
  top:13px;
  border:0;
  background:#e5f0e8;
  border-radius:8px;
  width:30px;
  height:30px;
  font:400 21px/1 "DM Sans",sans-serif;
  cursor:pointer;
  color:#174d39;
}
.shx-notice-label{
  font:700 11px/16px "DM Sans",sans-serif;
  letter-spacing:.03em;
  color:#174d39;
  background:#e5f0e8;
  border-radius:99px;
  display:inline-block;
  padding:3px 9px;
  margin:3px 40px 14px 0;
}
.shx-notice-title{
  font:800 20px/1.4 "Manrope",sans-serif;
  color:#174d39;
  margin:0 30px 10px 0;
}
.shx-notice-date{
  font:400 12px/1.5 "DM Sans",sans-serif;
  color:#718078;
  margin-bottom:18px;
  padding-bottom:13px;
  border-bottom:1px solid #e5e9e3;
}
.shx-notice-message{
  font:400 14px/1.75 "DM Sans",sans-serif;
  color:#202923;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
.shx-notice-inline-link,
[id^="ntf-panel-"] .shx-ni-preview a{
  color:#087b50;
  text-decoration:underline;
  text-underline-offset:2px;
  overflow-wrap:anywhere;
}
.shx-notice-inline-link:hover,
[id^="ntf-panel-"] .shx-ni-preview a:hover{
  color:#174d39;
}
.shx-notice-link{
  display:inline-block;
  margin-top:20px;
  padding:7px 14px;
  border:1px solid #174d39;
  border-radius:10px;
  background:#fff;
  color:#174d39;
  font:600 13px "DM Sans",sans-serif;
  text-decoration:none;
}
.shx-notice-link:hover{background:#e5f0e8}
@media(max-width:768px){
  /* Mobile: show ~2-3 notification cards at once; keep list scrollable and header accessible */
  [id^="ntf-panel-"]{
    max-height:440px !important;
    max-height:min(440px, calc(100dvh - 96px)) !important;
  }
}
@media(max-width:600px){
  .shx-notice-dialog{padding:22px 18px}
  .shx-notice-title{font-size:18px}
}
