html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  font-size: 18px;
  background-color: #010117;
  color: white;
  font-family: system-ui, sans-serif;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

#nelu-avatar {
  display: none;
}

.main-header {
  padding: 0.75rem;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  padding: 0;
}

.logo {
  font-size: 1.25rem;
  line-height: 1.2;
}

.button-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  width: 100%;
}

.button-group form {
  display: block !important;
  width: 100%;
}

.back-button,
.logout-button {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 1rem 1rem;
  font-size: 1rem;
  text-align: center;
}

main,
footer.main-footer {
  padding: 1rem 0.75rem;
  max-width: 100%;
  margin: 0;
}

.content-wrapper {
  width: 100%;
}

.category-block {
  max-width: 100%;
  margin: 0 0 1.25rem;
}

.category-title {
  margin: 0 0 0.85rem;
  padding: 0.9rem 1rem;
  font-size: 1.05rem;
  line-height: 1.3;
}

.task-grid,
.panel-icons-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  width: 100%;
  justify-content: stretch;
  margin-top: 0;
  padding: 0;
}

.panel-icon {
  width: 100%;
  min-height: 148px;
  padding: 1.1rem 0.85rem;
  border-radius: 14px;
  justify-content: center;
}

.panel-icon i {
  font-size: 2.1rem;
  margin-bottom: 0.55rem;
}

.panel-icon span {
  font-size: 1rem;
  line-height: 1.25;
  text-align: center;
  word-break: break-word;
}

button,
input,
select,
textarea {
  font-size: 1rem;
  max-width: 100%;
  box-sizing: border-box;
}

input,
select,
textarea {
  min-height: 52px;
}

table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.file-manager-table-wrap {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.file-manager-table-wrap table {
  display: table;
  width: auto;
  min-width: 760px;
}

@media (max-width: 360px) {
  .task-grid,
  .panel-icons-grid {
    grid-template-columns: 1fr;
  }
}
