.portal-current-date {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
  min-width: 0;
  flex-shrink: 0;
}
.portal-current-date strong {
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.portal-current-time {
  padding-right: 10px;
  border-right: 1px solid #bdcfd6;
}
.portal-current-date span {
  display: block;
}
.portal-current-time strong {
  color: #274a64;
}
.portal-service-card {
  font-family: inherit;
  text-align: left;
  width: 100%;
}
.portal-service-card:disabled {
  cursor: progress;
  opacity: 0.65;
}
.portal-notifications {
  color: inherit;
  text-decoration: none;
  transition:
    box-shadow 0.2s,
    background 0.2s;
}
.portal-notifications:hover {
  box-shadow: inset 0 0 0 2px #9eb8c7;
}
.portal-notifications .portal-brief-heading svg:last-child {
  width: 13px;
  margin-left: 4px;
}
.portal-account {
  font-size: 11px;
  line-height: 1.4;
  color: #526b80;
  padding: 0 10px 13px;
  overflow-wrap: anywhere;
}
.portal-signout {
  min-height: 40px;
  font-size: 11px;
  padding-block: 10px;
  margin-top: 6px;
}
.portal-sidebar-bottom {
  position: relative;
}
.portal-side-navigation {
  gap: 6px;
}
.portal-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #28516e;
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-top: 18px;
}
.portal-auth-card {
  position: relative;
  max-width: 500px;
  margin: 34px auto;
  padding: 34px 40px 38px;
  background: linear-gradient(135deg, #fffffff5, #f1f6f9f0);
  border: 1px solid #fff;
  border-radius: 25px;
  box-shadow: 0 16px 40px #748c9d17;
}
.portal-auth-card > img {
  margin-bottom: 15px;
}
.portal-auth-card h2,
.portal-panel > h2 {
  font: 450 23px/1.4 var(--display);
  color: var(--blue);
  letter-spacing: -0.8px;
  margin-bottom: 22px;
}
.portal-auth-card form {
  margin-top: 22px;
}
.portal-panel {
  padding: 28px 30px;
  background: #ffffffed;
  border: 1px solid #fff;
  border-radius: 22px;
  box-shadow: 0 12px 28px #7087950c;
}
.portal-narrow {
  max-width: 720px;
}
.portal-panel > p {
  margin-bottom: 17px;
}
.portal-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  min-width: 0;
}
.portal-field > span {
  font-size: 12px;
  font-weight: 750;
  color: #4b6275;
}
.portal-field input,
.portal-field select,
.portal-field textarea,
.portal-grant-row select,
.portal-admin-toolbar input {
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid #c7d6df;
  border-radius: 10px;
  background: #fafdff;
  color: #243e53;
  font:
    14px/1.5 Manrope,
    sans-serif;
  outline-offset: 3px;
}
.portal-field textarea {
  resize: vertical;
  min-height: 90px;
}
.portal-field input[readonly] {
  background: #edf2f5;
  color: #607788;
}
.portal-field input:focus,
.portal-field select:focus,
.portal-field textarea:focus,
.portal-admin-toolbar input:focus {
  border-color: #6f91a7;
}
.portal-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
.portal-form-help {
  font-size: 12px;
  line-height: 1.7;
  color: #657a8d;
  margin: 10px 0 20px;
  max-width: 760px;
}
.portal-form-error {
  font-size: 13px;
  line-height: 1.6;
  padding: 12px 14px;
  border: 1px solid #d5bcae;
  border-radius: 10px;
  background: #fbf2ed;
  color: #835039;
  margin: 15px 0;
}
.portal-primary,
.portal-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 19px;
  min-height: 44px;
  border-radius: 10px;
  font:
    650 13px/1.4 Manrope,
    sans-serif;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
.portal-primary {
  color: #fff;
  background: #244c67;
  border: 1px solid #244c67;
  box-shadow: 0 4px 12px #214b6312;
}
.portal-primary:hover {
  background: #183c55;
}
.portal-secondary {
  color: #365a74;
  background: #edf3f6;
  border: 1px solid #d2dfe7;
}
.portal-secondary:hover {
  background: #e1ebf1;
}
.portal-primary:disabled,
.portal-secondary:disabled {
  opacity: 0.6;
  cursor: progress;
}
.portal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}
.portal-auth-card .portal-primary {
  width: 100%;
  margin-top: 7px;
}
.portal-loading {
  padding: 45px 24px;
  text-align: center;
  color: #6b8292;
}
.portal-feedback {
  padding: 13px 17px;
  margin-bottom: 18px;
  background: #e9f3ef;
  border: 1px solid #c0d9cb;
  border-radius: 12px;
  font-size: 13px;
  color: #315845;
}
.portal-feedback.is-error {
  background: #fbf2ed;
  border-color: #d5bcae;
  color: #835039;
}
.portal-denial {
  max-width: 770px;
  margin: 25px auto;
  padding: 38px;
  background: linear-gradient(145deg, #ffffffed, #eff5f8f0);
  border: 1px solid #fff;
  border-radius: 24px;
}
.portal-denial .portal-empty-mark {
  margin-bottom: 24px;
}
.portal-overline {
  font-size: 12px;
  color: #5e788d;
  margin-bottom: 9px;
}
.portal-denial h2 {
  font: 450 25px/1.4 var(--display);
  color: #244c67;
  margin-bottom: 15px;
}
.portal-denial-message {
  font-size: 15px;
  line-height: 1.8;
  max-width: 600px;
}
.portal-attempt {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #d2dfe7;
  color: #5c7588;
  font-size: 12px;
}
.portal-attempt strong {
  font: 500 22px/1 var(--display);
  color: #2f526d;
}
.portal-attempt span:last-child {
  margin-left: auto;
}
.portal-notification-list,
.portal-list {
  display: grid;
  gap: 13px;
}
.portal-notification-card,
.portal-list-row,
.portal-request-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 25px;
  border: 1px solid #fff;
  border-radius: 18px;
  background: #ffffffed;
  box-shadow: 0 5px 17px #77909d09;
  min-width: 0;
}
.portal-notification-card > div,
.portal-list-row > div {
  flex: 1;
  min-width: 0;
}
.portal-notification-card h2,
.portal-list-row h2,
.portal-request-card h2 {
  font: 500 15px/1.5 var(--display);
  color: #2b4b62;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.portal-notification-card p,
.portal-list-row p,
.portal-request-card p {
  font-size: 13px;
  line-height: 1.7;
  color: #596f80;
  overflow-wrap: anywhere;
}
.portal-notification-card time,
.portal-list-row small,
.portal-request-card small {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  color: #7b8c9a;
}
.portal-notification-card.is-unread {
  border-left: 3px solid #648aa2;
}
.portal-notification-card .portal-secondary {
  font-size: 12px;
  padding: 10px 15px;
  flex-shrink: 0;
}
.portal-list-row:hover {
  border-color: #c7d9e4;
}
.portal-list-row > svg {
  flex-shrink: 0;
  color: #6e8a9e;
}
.portal-admin-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px solid #ccdae3;
  margin-bottom: 25px;
  padding-bottom: 10px;
}
.portal-admin-tabs a {
  padding: 10px 17px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #5c7588;
}
.portal-admin-tabs a[aria-current="page"] {
  background: #f8fcff;
  color: #224b66;
  box-shadow: 0 3px 10px #516e8110;
  border: 1px solid #d1dfe7;
}
.portal-admin-toolbar {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}
.portal-admin-toolbar input {
  flex: 1;
  min-width: 0;
  background: #ffffffcf;
}
.portal-admin-toolbar > a {
  flex-shrink: 0;
}
.portal-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 20px;
  background: #e8f1ed;
  color: #446754;
  font-size: 11px;
  font-weight: 650;
}
.portal-status.is-blocked {
  background: #eceff2;
  color: #596e80;
}
.portal-grants {
  padding: 0;
  margin: 27px 0;
  border: 0;
}
.portal-grants legend {
  font: 450 16px/1.5 var(--display);
  margin-bottom: 15px;
  color: #355670;
}
.portal-grant-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 20px;
  padding: 13px 0;
  border-top: 1px solid #e1e8ed;
}
.portal-grant-row label {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13px;
  font-weight: 650;
}
.portal-grant-row input[type="checkbox"] {
  width: 19px;
  height: 19px;
  accent-color: #345e79;
  flex-shrink: 0;
}
.portal-grant-row select:disabled {
  opacity: 0.5;
  background: #f0f4f6;
}
.portal-password-reset {
  margin-top: 30px;
  border-top: 1px solid #d6e1e8;
  padding-top: 22px;
}
.portal-password-reset summary {
  cursor: pointer;
  color: #496a81;
  font-size: 13px;
  font-weight: 700;
}
.portal-password-reset form {
  margin-top: 20px;
  max-width: 500px;
}
.portal-request-card {
  display: block;
}
.portal-request-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
.portal-request-card h3 {
  font-size: 14px;
  color: #2d506b;
  margin-bottom: 9px;
}
.portal-request-card form {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #d9e4eb;
  max-width: 650px;
}
.portal-table-wrap {
  overflow: auto;
  border: 1px solid #fff;
  border-radius: 18px;
  background: #ffffffed;
}
.portal-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 680px;
  font-size: 12px;
  text-align: left;
}
.portal-table th {
  padding: 16px 17px;
  background: #eaf0f4;
  color: #486174;
  font-size: 11px;
  font-weight: 800;
}
.portal-table td {
  padding: 17px;
  border-top: 1px solid #e4ebf0;
  vertical-align: top;
  line-height: 1.6;
  color: #4b6275;
}
.portal-table td:first-child {
  white-space: nowrap;
}
.portal-guide-heading h2 {
  font: 500 26px/1.3 var(--display);
  letter-spacing: -0.8px;
  color: var(--blue);
}
.portal-guide-section h3 {
  font: 450 16px/1.5 var(--display);
  margin-bottom: 14px;
  color: #2b4e69;
}
.portal-guide-note {
  margin-top: 16px;
  padding: 13px 15px;
  background: #eef4f7;
  border-radius: 10px;
}
.portal-guide-section p {
  margin-top: 8px;
}
.portal-access-empty > p {
  max-width: 600px;
  margin: 12px auto 0;
  font-size: 14px;
  line-height: 1.7;
  color: #657a8d;
}
.portal-settings-dialog .portal-text-link {
  font-size: 12px;
}
html[data-density="compact"] .portal-card-stage {
  height: 125px;
}
html[data-density="compact"] .portal-external-art {
  height: 110px;
}
@media (max-width: 1100px) {
  .portal-current-date strong {
    font-size: 13px;
  }
  .portal-current-date span {
    display: none;
  }
  .portal-auth-card {
    margin: 20px auto;
    padding: 28px;
  }
  .portal-form-grid {
    gap: 0 18px;
  }
  .portal-list-row {
    padding: 20px;
  }
  .portal-grant-row {
    gap: 13px;
  }
  .portal-panel {
    padding: 25px;
  }
  .portal-admin-toolbar > a {
    font-size: 12px;
    padding-inline: 14px;
  }
}
@media (max-width: 900px) {
  .portal-current-date {
    padding: 7px 10px;
  }
  .portal-current-date strong {
    font-size: 12px;
  }
  .portal-current-time {
    padding-right: 7px;
  }
  .portal-current-date {
    gap: 7px;
  }
  .portal-account {
    font-size: 10px;
    padding-inline: 7px;
  }
  .portal-admin-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .portal-form-grid {
    grid-template-columns: 1fr;
  }
  .portal-request-heading {
    flex-direction: column;
  }
  .portal-notification-card {
    align-items: flex-start;
    flex-direction: column;
  }
  .portal-panel > h2,
  .portal-auth-card h2 {
    font-size: 20px;
  }
  .portal-grant-row {
    grid-template-columns: 1fr;
    gap: 11px;
  }
  .portal-list-row h2 {
    font-size: 13px;
  }
  .portal-status {
    font-size: 10px;
  }
  .portal-list-row {
    gap: 12px;
  }
  .portal-table {
    min-width: 620px;
  }
  .portal-guide-heading h2 {
    font-size: 23px;
  }
}
@media (max-width: 650px) {
  .portal-current-date {
    justify-content: flex-start;
    padding: 0;
    gap: 8px;
  }
  .portal-current-date strong {
    font-size: 12px;
  }
  .portal-current-date span {
    display: block;
    border: 0;
    padding: 0;
    font-size: 10px;
  }
  .portal-current-time {
    padding-right: 8px;
  }
  .portal-account {
    text-align: center;
    font-size: 9px;
    padding: 0 0 10px;
  }
  .portal-signout {
    min-height: 54px;
    font-size: 9px;
    margin-top: 3px;
  }
  .portal-sidebar-bottom {
    padding-top: 18px;
  }
  .portal-side-navigation {
    gap: 4px;
  }
  .portal-auth-card {
    margin: 8px 0;
    padding: 22px 18px;
    border-radius: 20px;
  }
  .portal-auth-card > img {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
  }
  .portal-auth-card h2 {
    font-size: 17px;
    letter-spacing: -0.5px;
  }
  .portal-panel {
    padding: 20px 17px;
    border-radius: 18px;
  }
  .portal-panel > h2 {
    font-size: 17px;
  }
  .portal-field input,
  .portal-field select,
  .portal-field textarea,
  .portal-grant-row select {
    font-size: 13px;
    padding: 11px;
  }
  .portal-field {
    margin-bottom: 15px;
  }
  .portal-field > span {
    font-size: 11px;
  }
  .portal-primary,
  .portal-secondary {
    font-size: 12px;
    padding: 11px 15px;
  }
  .portal-denial {
    margin: 7px 0;
    padding: 24px 18px;
  }
  .portal-denial h2 {
    font-size: 20px;
  }
  .portal-denial-message {
    font-size: 13px;
  }
  .portal-denial .portal-actions > * {
    width: 100%;
  }
  .portal-attempt span:last-child {
    margin-left: 0;
    width: 100%;
  }
  .portal-notification-card,
  .portal-list-row,
  .portal-request-card {
    padding: 19px 16px;
  }
  .portal-notification-card h2,
  .portal-list-row h2,
  .portal-request-card h2 {
    font-size: 13px;
  }
  .portal-list-row {
    flex-wrap: wrap;
  }
  .portal-list-row > div {
    flex-basis: 100%;
  }
  .portal-list-row > svg {
    margin-left: auto;
  }
  .portal-admin-tabs {
    gap: 3px;
    margin-bottom: 18px;
  }
  .portal-admin-tabs a {
    font-size: 11px;
    padding: 9px;
  }
  .portal-status {
    font-size: 10px;
  }
  .portal-admin-toolbar input {
    font-size: 12px;
  }
  .portal-request-card h3 {
    font-size: 13px;
  }
  .portal-request-card p {
    font-size: 12px;
  }
  .portal-form-help {
    font-size: 11px;
  }
  .portal-guide-heading h2 {
    font-size: 19px;
    overflow-wrap: anywhere;
  }
  .portal-guide-section h3 {
    font-size: 14px;
  }
  .portal-grants legend {
    font-size: 14px;
  }
  .portal-grant-row label {
    font-size: 12px;
  }
  .portal-feedback {
    font-size: 12px;
  }
  .portal-text-link {
    font-size: 12px;
  }
  .portal-auth-card form {
    margin-top: 14px;
  }
}
@media (max-width: 370px) {
  .portal-current-date {
    gap: 6px;
  }
  .portal-current-date strong {
    font-size: 11px;
  }
  .portal-current-date span {
    width: 100%;
    display: block;
  }
  .portal-auth-card {
    padding: 19px 14px;
  }
  .portal-auth-card h2 {
    font-size: 15px;
  }
  .portal-panel {
    padding: 18px 14px;
  }
  .portal-admin-tabs a {
    font-size: 10px;
    padding: 8px 6px;
  }
  .portal-list-row h2 {
    font-size: 12px;
  }
  .portal-panel > h2 {
    font-size: 15px;
  }
}
