.myfiles-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  align-items: start;
}
.myfiles-list-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.myfiles-list-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}
.myfiles-list {
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow-y: auto;
  max-height: 80vh;
}
.myfiles-viewer {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 12px;
  min-height: 200px;
  overflow: hidden;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}
.myfiles-viewer .xlsx-table-wrapper {
  overflow: auto;
  flex: 1;
}
.myfiles-no-preview {
  display: flex;
  align-items: center;
  gap: 12px;
}
.myfiles-no-preview p {
  margin: 0;
}

.myfiles-viewer .vocab-detail {
  flex-shrink: 0;
}
.myfiles-viewer .vocab-detail:not(.collapsed) .vocab-detail-content {
  max-height: 40vh;
  overflow-y: auto;
}
.myfiles-viewer .vocabulary-list {
  border: 1px solid #ddd;
  border-radius: 4px;
  flex: 1;
  overflow: auto;
}
.vocabulary-download {
  margin-bottom: 12px;
}

.myfiles-viewer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.myfiles-msg-banner {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.myfiles-msg-scroll {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.myfiles-msg-text {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: cookieScroll 20s linear 1;
  font-size: 0.85rem;
  color: #222;
}
.myfiles-msg-text.paused {
  animation-play-state: paused;
}
.myfiles-msg-pause,
.myfiles-msg-hide {
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid #0f70d0;
  background: white;
  color: #0f70d0;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.7rem;
  line-height: 18px;
  text-align: center;
  flex-shrink: 0;
}
.myfiles-msg-pause:hover,
.myfiles-msg-hide:hover {
  background: #e8f0fb;
}
.myfiles-msg-toggle {
  margin-left: auto;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid #0f70d0;
  background: white;
  color: #0f70d0;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.7rem;
  line-height: 18px;
  text-align: center;
  flex-shrink: 0;
}
.myfiles-msg-toggle:hover {
  background: #e8f0fb;
}

/* Responsive smartphone */
/* ===================== */
@media (max-width: 768px) {
  .myfiles-layout {
    grid-template-columns: 1fr;
  }
  .myfiles-list {
    max-height: none;
  }
  .myfiles-viewer {
    max-height: none;
    overflow-x: auto;
    overflow-y: visible;
  }

  .myfiles-no-preview {
    flex-direction: column;
    text-align: center;
  }

  .myfiles-msg-text {
    animation: cookieScroll 10s linear 1;
  }
}
